modify_transit_gateway_vpc_attachment
¶
modify_transit_gateway_vpc_attachment(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
53194 53195 53196 53197 53198 53199 53200 53201 53202 53203 53204 53205 53206 53207 53208 53209 53210 53211 53212 53213 53214 53215 53216 53217 53218 53219 53220 53221 53222 53223 53224 53225 53226 53227 53228 53229 53230 53231 53232 53233 53234 53235 53236 53237 53238 53239 53240 53241 53242 53243 53244 53245 53246 53247 53248 53249 53250 53251 53252 53253 53254 53255 53256 53257 53258 53259 53260 | |