modify_transit_gateway_vpc_attachment
async
¶
modify_transit_gateway_vpc_attachment(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
transit_gateway_attachment_id: Optional[TransitGatewayAttachmentId] = None,
add_subnet_ids: Optional[TransitGatewaySubnetIdList] = None,
remove_subnet_ids: Optional[TransitGatewaySubnetIdList] = None,
options: Optional[ModifyTransitGatewayVpcAttachmentRequestOptions] = None,
dry_run: Optional[Boolean] = None,
) -> ModifyTransitGatewayVpcAttachmentResult
Modifies the specified VPC attachment.
Parameters:
-
transit_gateway_attachment_id(Optional[TransitGatewayAttachmentId], default:None) –The ID of the attachment.
-
add_subnet_ids(Optional[TransitGatewaySubnetIdList], default:None) –The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.
-
remove_subnet_ids(Optional[TransitGatewaySubnetIdList], default:None) –The IDs of one or more subnets to remove.
-
options(Optional[ModifyTransitGatewayVpcAttachmentRequestOptions], default:None) –The new VPC attachment options.
-
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
53934 53935 53936 53937 53938 53939 53940 53941 53942 53943 53944 53945 53946 53947 53948 53949 53950 53951 53952 53953 53954 53955 53956 53957 53958 53959 53960 53961 53962 53963 53964 53965 53966 53967 53968 53969 53970 53971 53972 53973 53974 53975 53976 53977 53978 53979 53980 53981 53982 53983 53984 53985 53986 53987 53988 53989 53990 53991 53992 53993 53994 53995 53996 53997 53998 53999 54000 54001 | |