Skip to main content

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

Nametransit_gateway_multicast_domain_associations
TypeResource
DescriptionThe AWS::EC2::TransitGatewayMulticastDomainAssociation type
Idaws.ec2.transit_gateway_multicast_domain_associations

Fields

NameDatatypeDescription
transit_gateway_multicast_domain_idstringThe ID of the transit gateway multicast domain.
transit_gateway_attachment_idstringThe ID of the transit gateway attachment.
resource_idstringThe ID of the resource.
resource_typestringThe type of resource, for example a VPC attachment.
statestringThe state of the subnet association.
subnet_idstringThe IDs of the subnets to associate with the transit gateway multicast domain.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTTransitGatewayMulticastDomainId, TransitGatewayAttachmentId, SubnetId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.ec2.transit_gateway_multicast_domain_associations (
TransitGatewayMulticastDomainId,
TransitGatewayAttachmentId,
SubnetId,
region
)
SELECT
'{{ TransitGatewayMulticastDomainId }}',
'{{ TransitGatewayAttachmentId }}',
'{{ SubnetId }}',
'{{ region }}';

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