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 | aws.networkmanager.connect_attachments |
Fields
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. |
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. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | CoreNetworkId, EdgeLocation, TransportAttachmentId, Options, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.networkmanager.connect_attachments (
CoreNetworkId,
EdgeLocation,
TransportAttachmentId,
Options,
region
)
SELECT
'{{ CoreNetworkId }}',
'{{ EdgeLocation }}',
'{{ TransportAttachmentId }}',
'{{ Options }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.networkmanager.connect_attachments (
CoreNetworkId,
EdgeLocation,
ProposedSegmentChange,
Tags,
TransportAttachmentId,
Options,
region
)
SELECT
'{{ CoreNetworkId }}',
'{{ EdgeLocation }}',
'{{ ProposedSegmentChange }}',
'{{ Tags }}',
'{{ TransportAttachmentId }}',
'{{ 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: CoreNetworkId
value: '{{ CoreNetworkId }}'
- name: EdgeLocation
value: '{{ EdgeLocation }}'
- name: ProposedSegmentChange
value:
Tags:
- Key: '{{ Key }}'
Value: '{{ Value }}'
AttachmentPolicyRuleNumber: '{{ AttachmentPolicyRuleNumber }}'
SegmentName: '{{ SegmentName }}'
- name: Tags
value:
- null
- name: TransportAttachmentId
value: '{{ TransportAttachmentId }}'
- name: Options
value:
Protocol: '{{ Protocol }}'
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