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
Idawscc.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.
network_function_group_namestringThe name of the network function group attachment.
proposed_network_function_group_changeobjectThe attachment to move from one network function group 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.

For more information, see AWS::NetworkManager::ConnectAttachment.

Methods

NameResourceAccessible byRequired Params
create_resourceconnect_attachmentsINSERTCoreNetworkId, EdgeLocation, TransportAttachmentId, Options, region
delete_resourceconnect_attachmentsDELETEIdentifier, region
update_resourceconnect_attachmentsUPDATEIdentifier, PatchDocument, region
list_resourcesconnect_attachments_list_onlySELECTregion
get_resourceconnect_attachmentsSELECTIdentifier, region

SELECT examples

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,
network_function_group_name,
proposed_network_function_group_change,
tags,
created_at,
updated_at,
transport_attachment_id,
options
FROM awscc.networkmanager.connect_attachments
WHERE
region = 'us-east-1' AND
Identifier = '{{ attachment_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.networkmanager.connect_attachments (
CoreNetworkId,
EdgeLocation,
TransportAttachmentId,
Options,
region
)
SELECT
'{{ core_network_id }}',
'{{ edge_location }}',
'{{ transport_attachment_id }}',
'{{ options }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.networkmanager.connect_attachments
SET PatchDocument = string('{{ {
"ProposedSegmentChange": proposed_segment_change,
"NetworkFunctionGroupName": network_function_group_name,
"ProposedNetworkFunctionGroupChange": proposed_network_function_group_change,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ attachment_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.networkmanager.connect_attachments
WHERE
Identifier = '{{ attachment_id }}' AND
region = 'us-east-1';

Permissions

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

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