transit_gateway_multicast_domain_associations
Creates, updates, deletes or gets a transit_gateway_multicast_domain_association
resource or lists transit_gateway_multicast_domain_associations
in a region
Overview
Name | transit_gateway_multicast_domain_associations |
Type | Resource |
Description | The AWS::EC2::TransitGatewayMulticastDomainAssociation type |
Id | aws.ec2.transit_gateway_multicast_domain_associations |
Fields
Name | Datatype | Description |
---|---|---|
transit_gateway_multicast_domain_id | string | The ID of the transit gateway multicast domain. |
transit_gateway_attachment_id | string | The ID of the transit gateway attachment. |
resource_id | string | The ID of the resource. |
resource_type | string | The type of resource, for example a VPC attachment. |
state | string | The state of the subnet association. |
subnet_id | string | The IDs of the subnets to associate with the transit gateway multicast domain. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | TransitGatewayMulticastDomainId, TransitGatewayAttachmentId, SubnetId, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all transit_gateway_multicast_domain_associations
in a region.
SELECT
region,
transit_gateway_multicast_domain_id,
transit_gateway_attachment_id,
resource_id,
resource_type,
state,
subnet_id
FROM aws.ec2.transit_gateway_multicast_domain_associations
WHERE region = 'us-east-1';
Gets all properties from an individual transit_gateway_multicast_domain_association
.
SELECT
region,
transit_gateway_multicast_domain_id,
transit_gateway_attachment_id,
resource_id,
resource_type,
state,
subnet_id
FROM aws.ec2.transit_gateway_multicast_domain_associations
WHERE region = 'us-east-1' AND data__Identifier = '<TransitGatewayMulticastDomainId>|<TransitGatewayAttachmentId>|<SubnetId>';
INSERT
example
Use the following StackQL query and manifest file to create a new transit_gateway_multicast_domain_association
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.transit_gateway_multicast_domain_associations (
TransitGatewayMulticastDomainId,
TransitGatewayAttachmentId,
SubnetId,
region
)
SELECT
'{{ TransitGatewayMulticastDomainId }}',
'{{ TransitGatewayAttachmentId }}',
'{{ SubnetId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.transit_gateway_multicast_domain_associations (
TransitGatewayMulticastDomainId,
TransitGatewayAttachmentId,
SubnetId,
region
)
SELECT
'{{ TransitGatewayMulticastDomainId }}',
'{{ TransitGatewayAttachmentId }}',
'{{ SubnetId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: transit_gateway_multicast_domain_association
props:
- name: TransitGatewayMulticastDomainId
value: '{{ TransitGatewayMulticastDomainId }}'
- name: TransitGatewayAttachmentId
value: '{{ TransitGatewayAttachmentId }}'
- name: SubnetId
value: '{{ SubnetId }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ec2.transit_gateway_multicast_domain_associations
WHERE data__Identifier = '<TransitGatewayMulticastDomainId|TransitGatewayAttachmentId|SubnetId>'
AND region = 'us-east-1';
Permissions
To operate on the transit_gateway_multicast_domain_associations
resource, the following permissions are required:
Create
ec2:AssociateTransitGatewayMulticastDomain,
ec2:GetTransitGatewayMulticastDomainAssociations
Read
ec2:GetTransitGatewayMulticastDomainAssociations
Delete
ec2:DisassociateTransitGatewayMulticastDomain,
ec2:GetTransitGatewayMulticastDomainAssociations
List
ec2:GetTransitGatewayMulticastDomainAssociations