connect_attachments
Creates, updates, deletes or gets a connect_attachment resource or lists connect_attachments in a region
Overview
| Name | connect_attachments |
| Type | Resource |
| Description | AWS::NetworkManager::ConnectAttachment Resource Type Definition |
| Id | awscc.networkmanager.connect_attachments |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
core_network_id | string | ID of the CoreNetwork that the attachment will be attached to. |
core_network_arn | string | The ARN of a core network. |
attachment_id | string | The ID of the attachment. |
owner_account_id | string | The ID of the attachment account owner. |
attachment_type | string | The type of attachment. |
state | string | State of the attachment. |
edge_location | string | Edge location of the attachment. |
resource_arn | string | The attachment resource ARN. |
attachment_policy_rule_number | integer | The policy rule number associated with the attachment. |
segment_name | string | The name of the segment attachment. |
proposed_segment_change | object | The attachment to move from one segment to another. |
network_function_group_name | string | The name of the network function group attachment. |
proposed_network_function_group_change | object | The attachment to move from one network function group to another. |
tags | array | Tags for the attachment. |
created_at | string | Creation time of the attachment. |
updated_at | string | Last update time of the attachment. |
transport_attachment_id | string | Id of transport attachment |
options | object | Protocol options for connect attachment |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
attachment_id | string | The ID of the attachment. |
region | string | AWS region. |
For more information, see AWS::NetworkManager::ConnectAttachment.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | connect_attachments | INSERT | CoreNetworkId, EdgeLocation, TransportAttachmentId, Options, region |
delete_resource | connect_attachments | DELETE | Identifier, region |
update_resource | connect_attachments | UPDATE | Identifier, PatchDocument, region |
list_resources | connect_attachments_list_only | SELECT | region |
get_resource | connect_attachments | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all connect_attachments in a region.
SELECT
region,
attachment_id
FROM awscc.networkmanager.connect_attachments_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new connect_attachment resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.networkmanager.connect_attachments (
CoreNetworkId,
EdgeLocation,
TransportAttachmentId,
Options,
region
)
SELECT
'{{ core_network_id }}',
'{{ edge_location }}',
'{{ transport_attachment_id }}',
'{{ options }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.networkmanager.connect_attachments (
CoreNetworkId,
EdgeLocation,
ProposedSegmentChange,
NetworkFunctionGroupName,
ProposedNetworkFunctionGroupChange,
Tags,
TransportAttachmentId,
Options,
region
)
SELECT
'{{ core_network_id }}',
'{{ edge_location }}',
'{{ proposed_segment_change }}',
'{{ network_function_group_name }}',
'{{ proposed_network_function_group_change }}',
'{{ tags }}',
'{{ transport_attachment_id }}',
'{{ options }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: connect_attachment
props:
- name: core_network_id
value: '{{ core_network_id }}'
- name: edge_location
value: '{{ edge_location }}'
- name: proposed_segment_change
value:
tags:
- key: '{{ key }}'
value: '{{ value }}'
attachment_policy_rule_number: '{{ attachment_policy_rule_number }}'
segment_name: '{{ segment_name }}'
- name: network_function_group_name
value: '{{ network_function_group_name }}'
- name: proposed_network_function_group_change
value:
tags:
- null
attachment_policy_rule_number: '{{ attachment_policy_rule_number }}'
network_function_group_name: '{{ network_function_group_name }}'
- name: tags
value:
- null
- name: transport_attachment_id
value: '{{ transport_attachment_id }}'
- name: options
value:
protocol: '{{ protocol }}'
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:
- Create
- Read
- Update
- Delete
- List
networkmanager:GetConnectAttachment,
networkmanager:CreateConnectAttachment,
networkmanager:TagResource,
ec2:DescribeRegions
networkmanager:GetConnectAttachment
networkmanager:GetConnectAttachment,
networkmanager:ListTagsForResource,
networkmanager:TagResource,
networkmanager:UntagResource,
ec2:DescribeRegions
networkmanager:GetConnectAttachment,
networkmanager:DeleteAttachment,
ec2:DescribeRegions
networkmanager:ListAttachments