associate_transit_gateway_multicast_domain
async
¶
associate_transit_gateway_multicast_domain(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
transit_gateway_multicast_domain_id: Optional[
TransitGatewayMulticastDomainId
] = None,
transit_gateway_attachment_id: Optional[TransitGatewayAttachmentId] = None,
subnet_ids: Optional[TransitGatewaySubnetIdList] = None,
dry_run: Optional[Boolean] = None,
) -> AssociateTransitGatewayMulticastDomainResult
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.
Parameters:
-
transit_gateway_multicast_domain_id(Optional[TransitGatewayMulticastDomainId], default:None) –The ID of the transit gateway multicast domain.
-
transit_gateway_attachment_id(Optional[TransitGatewayAttachmentId], default:None) –The ID of the transit gateway attachment to associate with the transit gateway multicast domain.
-
subnet_ids(Optional[TransitGatewaySubnetIdList], default:None) –The IDs of the subnets to associate with the transit gateway multicast domain.
-
dry_run(Optional[Boolean], default:None) –Checks 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 isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 | |