Skip to main content

transit_gateway_multicast_domains

Creates, updates, deletes, gets or lists a transit_gateway_multicast_domains resource.

Overview

Nametransit_gateway_multicast_domains
TypeResource
Idaws.ec2.transit_gateway_multicast_domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestringThe time the transit gateway multicast domain was created.
optionsstringThe options for the transit gateway multicast domain.
owner_idstringThe ID of the Amazon Web Services account that owns the transit gateway multicast domain.
statestringThe state of the transit gateway multicast domain.
tagsstringThe tags for the transit gateway multicast domain.
transit_gateway_idstringThe ID of the transit gateway.
transit_gateway_multicast_domain_arnstringThe Amazon Resource Name (ARN) of the transit gateway multicast domain.
transit_gateway_multicast_domain_idstringThe ID of the transit gateway multicast domain.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_transit_gateway_multicast_domainsselectregionTransitGatewayMulticastDomainIds, Filter, MaxResults, NextToken, DryRunDescribes one or more transit gateway multicast domains.
create_transit_gateway_multicast_domaininsertTransitGatewayId, regionOptions, TagSpecification, DryRunCreates a multicast domain using the specified transit gateway. The transit gateway must be in the available state before you create a domain. Use DescribeTransitGateways to see the state of transit gateway.
associate_transit_gateway_multicast_domainupdateTransitGatewayMulticastDomainId, TransitGatewayAttachmentId, SubnetIds, regionDryRunAssociates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain. The transit gateway attachment must be in the available state before you can add a resource. Use DescribeTransitGatewayAttachments to see the state of the attachment.
delete_transit_gateway_multicast_domaindeleteTransitGatewayMulticastDomainId, regionDryRunDeletes the specified transit gateway multicast domain.
disassociate_transit_gateway_multicast_domainexecTransitGatewayMulticastDomainId, TransitGatewayAttachmentId, SubnetIds, regionDryRunDisassociates the specified subnets from the transit gateway multicast domain.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
SubnetIdsarrayThe IDs of the subnets;
TransitGatewayAttachmentIdstringThe ID of the attachment.
TransitGatewayIdstringThe ID of the transit gateway.
TransitGatewayMulticastDomainIdstringThe ID of the transit gateway multicast domain.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayOne or more filters. The possible values are: state - The state of the transit gateway multicast domain. Valid values are pending | available | deleting | deleted. transit-gateway-id - The ID of the transit gateway. transit-gateway-multicast-domain-id - The ID of the transit gateway multicast domain.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.
OptionsobjectThe options for the transit gateway multicast domain.
TagSpecificationarrayThe tags for the transit gateway multicast domain.
TransitGatewayMulticastDomainIdsarrayThe ID of the transit gateway multicast domain.

SELECT examples

Describes one or more transit gateway multicast domains.

SELECT
creation_time,
options,
owner_id,
state,
tags,
transit_gateway_id,
transit_gateway_multicast_domain_arn,
transit_gateway_multicast_domain_id
FROM aws.ec2.transit_gateway_multicast_domains
WHERE region = '{{ region }}' -- required
AND TransitGatewayMulticastDomainIds = '{{ TransitGatewayMulticastDomainIds }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Creates a multicast domain using the specified transit gateway. The transit gateway must be in the available state before you create a domain. Use DescribeTransitGateways to see the state of transit gateway.

INSERT INTO aws.ec2.transit_gateway_multicast_domains (
TransitGatewayId,
region,
Options,
TagSpecification,
DryRun
)
SELECT
'{{ TransitGatewayId }}',
'{{ region }}',
'{{ Options }}',
'{{ TagSpecification }}',
'{{ DryRun }}'
RETURNING
creation_time,
options,
owner_id,
state,
tags,
transit_gateway_id,
transit_gateway_multicast_domain_arn,
transit_gateway_multicast_domain_id
;

UPDATE examples

Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain. The transit gateway attachment must be in the available state before you can add a resource. Use DescribeTransitGatewayAttachments to see the state of the attachment.

UPDATE aws.ec2.transit_gateway_multicast_domains
SET
-- No updatable properties
WHERE
TransitGatewayMulticastDomainId = '{{ TransitGatewayMulticastDomainId }}' --required
AND TransitGatewayAttachmentId = '{{ TransitGatewayAttachmentId }}' --required
AND SubnetIds = '{{ SubnetIds }}' --required
AND region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
RETURNING
resource_id,
resource_owner_id,
resource_type,
subnets,
transit_gateway_attachment_id,
transit_gateway_multicast_domain_id;

DELETE examples

Deletes the specified transit gateway multicast domain.

DELETE FROM aws.ec2.transit_gateway_multicast_domains
WHERE TransitGatewayMulticastDomainId = '{{ TransitGatewayMulticastDomainId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;

Lifecycle Methods

Disassociates the specified subnets from the transit gateway multicast domain.

EXEC aws.ec2.transit_gateway_multicast_domains.disassociate_transit_gateway_multicast_domain
@TransitGatewayMulticastDomainId='{{ TransitGatewayMulticastDomainId }}' --required,
@TransitGatewayAttachmentId='{{ TransitGatewayAttachmentId }}' --required,
@SubnetIds='{{ SubnetIds }}' --required,
@region='{{ region }}' --required,
@DryRun={{ DryRun }}
;