aws_sdk_ec2/client/modify_transit_gateway_vpc_attachment.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ModifyTransitGatewayVpcAttachment`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`transit_gateway_attachment_id(impl Into<String>)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::transit_gateway_attachment_id) / [`set_transit_gateway_attachment_id(Option<String>)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::set_transit_gateway_attachment_id):<br>required: **true**<br><p>The ID of the attachment.</p><br>
7 /// - [`add_subnet_ids(impl Into<String>)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::add_subnet_ids) / [`set_add_subnet_ids(Option<Vec::<String>>)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::set_add_subnet_ids):<br>required: **false**<br><p>The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.</p><br>
8 /// - [`remove_subnet_ids(impl Into<String>)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::remove_subnet_ids) / [`set_remove_subnet_ids(Option<Vec::<String>>)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::set_remove_subnet_ids):<br>required: **false**<br><p>The IDs of one or more subnets to remove.</p><br>
9 /// - [`options(ModifyTransitGatewayVpcAttachmentRequestOptions)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::options) / [`set_options(Option<ModifyTransitGatewayVpcAttachmentRequestOptions>)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::set_options):<br>required: **false**<br><p>The new VPC attachment options.</p><br>
10 /// - [`dry_run(bool)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
11 /// - On success, responds with [`ModifyTransitGatewayVpcAttachmentOutput`](crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentOutput) with field(s):
12 /// - [`transit_gateway_vpc_attachment(Option<TransitGatewayVpcAttachment>)`](crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentOutput::transit_gateway_vpc_attachment): <p>Information about the modified attachment.</p>
13 /// - On failure, responds with [`SdkError<ModifyTransitGatewayVpcAttachmentError>`](crate::operation::modify_transit_gateway_vpc_attachment::ModifyTransitGatewayVpcAttachmentError)
14 pub fn modify_transit_gateway_vpc_attachment(
15 &self,
16 ) -> crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder {
17 crate::operation::modify_transit_gateway_vpc_attachment::builders::ModifyTransitGatewayVpcAttachmentFluentBuilder::new(self.handle.clone())
18 }
19}