Skip to main content

cross_account_attachments

Creates, updates, deletes or gets a cross_account_attachment resource or lists cross_account_attachments in a region

Overview

Namecross_account_attachments
TypeResource
DescriptionResource Type definition for AWS::GlobalAccelerator::CrossAccountAttachment
Idaws.globalaccelerator.cross_account_attachments

Fields

NameDatatypeDescription
namestringThe Friendly identifier of the attachment.
attachment_arnstringThe Amazon Resource Name (ARN) of the attachment.
principalsarrayPrincipals to share the resources with.
resourcesarrayResources shared using the attachment.
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all cross_account_attachments in a region.

SELECT
region,
name,
attachment_arn,
principals,
resources,
tags
FROM aws.globalaccelerator.cross_account_attachments
;

Gets all properties from an individual cross_account_attachment.

SELECT
region,
name,
attachment_arn,
principals,
resources,
tags
FROM aws.globalaccelerator.cross_account_attachments
WHERE data__Identifier = '<AttachmentArn>';

INSERT example

Use the following StackQL query and manifest file to create a new cross_account_attachment resource, using stack-deploy.

/*+ create */
INSERT INTO aws.globalaccelerator.cross_account_attachments (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.globalaccelerator.cross_account_attachments
WHERE data__Identifier = '<AttachmentArn>'
AND region = 'us-east-1';

Permissions

To operate on the cross_account_attachments resource, the following permissions are required:

Create

globalaccelerator:DescribeCrossAccountAttachment,
globalaccelerator:CreateCrossAccountAttachment,
globalaccelerator:TagResource

Read

globalaccelerator:DescribeCrossAccountAttachment

Update

globalaccelerator:UpdateCrossAccountAttachment,
globalaccelerator:DescribeCrossAccountAttachment,
globalaccelerator:TagResource,
globalaccelerator:UntagResource

Delete

globalaccelerator:DescribeCrossAccountAttachment,
globalaccelerator:DeleteCrossAccountAttachment

List

globalaccelerator:ListCrossAccountAttachments