aws ec2 disassociate-transit-gateway-multicast-domain
Disassociates the specified subnets from the transit gateway multicast domain. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To disassociate subnets from a multicast domain
The following disassociate-transit-gateway-multicast-domain example disassociates a subnet from the specified multicast domain.
aws ec2 disassociate-transit-gateway-multicast-domain --transit-gateway-attachment-id tgw-attach-070e571cd1EXAMPLE --subnet-ids subnet-000de86e3bEXAMPLE --transit-gateway-multicast-domain-id tgw-mcast-domain-0c4905cef7EXAMPLEIdentify--transit-gateway-attachment-idThe ID of the attachment.--subnet-idsThe IDs of the subnets;--transit-gateway-multicast-domain-idThe ID of the transit gateway multicast domain.Its output
{
"Associations": {
"TransitGatewayMulticastDomainId": "tgw-mcast-domain-0c4905cef7EXAMPLE",
"TransitGatewayAttachmentId": "tgw-attach-070e571cd1EXAMPLE",
"ResourceId": "vpc-7EXAMPLE",
"ResourceType": "vpc",
"Subnets": [
{
"SubnetId": "subnet-000de86e3bEXAMPLE",
"State": "disassociating"
}
]
}
}For more information, see Multicast domains in the Transit Gateways Guide.
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--subnet-idsThe IDs of the subnets;--transit-gateway-attachment-idThe ID of the attachment.--transit-gateway-multicast-domain-idThe ID of the transit gateway multicast domain.