Skip to main content

connect_attachments

Creates, updates, deletes or gets a connect_attachment resource or lists connect_attachments in a region

Overview

Nameconnect_attachments
TypeResource
DescriptionAWS::NetworkManager::ConnectAttachment Resource Type Definition
Idaws.networkmanager.connect_attachments

Fields

NameDatatypeDescription
core_network_idstringID of the CoreNetwork that the attachment will be attached to.
core_network_arnstringThe ARN of a core network.
attachment_idstringThe ID of the attachment.
owner_account_idstringThe ID of the attachment account owner.
attachment_typestringThe type of attachment.
statestringState of the attachment.
edge_locationstringEdge location of the attachment.
resource_arnstringThe attachment resource ARN.
attachment_policy_rule_numberintegerThe policy rule number associated with the attachment.
segment_namestringThe name of the segment attachment.
proposed_segment_changeobjectThe attachment to move from one segment to another.
tagsarrayTags for the attachment.
created_atstringCreation time of the attachment.
updated_atstringLast update time of the attachment.
transport_attachment_idstringId of transport attachment
optionsobjectProtocol options for connect attachment
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTCoreNetworkId, EdgeLocation, TransportAttachmentId, Options, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all connect_attachments in a region.

SELECT
region,
core_network_id,
core_network_arn,
attachment_id,
owner_account_id,
attachment_type,
state,
edge_location,
resource_arn,
attachment_policy_rule_number,
segment_name,
proposed_segment_change,
tags,
created_at,
updated_at,
transport_attachment_id,
options
FROM aws.networkmanager.connect_attachments
WHERE region = 'us-east-1';

Gets all properties from an individual connect_attachment.

SELECT
region,
core_network_id,
core_network_arn,
attachment_id,
owner_account_id,
attachment_type,
state,
edge_location,
resource_arn,
attachment_policy_rule_number,
segment_name,
proposed_segment_change,
tags,
created_at,
updated_at,
transport_attachment_id,
options
FROM aws.networkmanager.connect_attachments
WHERE region = 'us-east-1' AND data__Identifier = '<AttachmentId>';

INSERT example

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

/*+ create */
INSERT INTO aws.networkmanager.connect_attachments (
CoreNetworkId,
EdgeLocation,
TransportAttachmentId,
Options,
region
)
SELECT
'{{ CoreNetworkId }}',
'{{ EdgeLocation }}',
'{{ TransportAttachmentId }}',
'{{ Options }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.networkmanager.connect_attachments
WHERE data__Identifier = '<AttachmentId>'
AND region = 'us-east-1';

Permissions

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

Create

networkmanager:GetConnectAttachment,
networkmanager:CreateConnectAttachment,
networkmanager:TagResource,
ec2:DescribeRegions

Read

networkmanager:GetConnectAttachment

Update

networkmanager:GetConnectAttachment,
networkmanager:ListTagsForResource,
networkmanager:TagResource,
networkmanager:UntagResource,
ec2:DescribeRegions

Delete

networkmanager:GetConnectAttachment,
networkmanager:DeleteAttachment,
ec2:DescribeRegions

List

networkmanager:ListAttachments