aws_sdk_ec2/client/modify_vpc_tenancy.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 [`ModifyVpcTenancy`](crate::operation::modify_vpc_tenancy::builders::ModifyVpcTenancyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`vpc_id(impl Into<String>)`](crate::operation::modify_vpc_tenancy::builders::ModifyVpcTenancyFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::modify_vpc_tenancy::builders::ModifyVpcTenancyFluentBuilder::set_vpc_id):<br>required: **true**<br><p>The ID of the VPC.</p><br>
7 /// - [`instance_tenancy(VpcTenancy)`](crate::operation::modify_vpc_tenancy::builders::ModifyVpcTenancyFluentBuilder::instance_tenancy) / [`set_instance_tenancy(Option<VpcTenancy>)`](crate::operation::modify_vpc_tenancy::builders::ModifyVpcTenancyFluentBuilder::set_instance_tenancy):<br>required: **true**<br><p>The instance tenancy attribute for the VPC.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::modify_vpc_tenancy::builders::ModifyVpcTenancyFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::modify_vpc_tenancy::builders::ModifyVpcTenancyFluentBuilder::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>
9 /// - On success, responds with [`ModifyVpcTenancyOutput`](crate::operation::modify_vpc_tenancy::ModifyVpcTenancyOutput) with field(s):
10 /// - [`return_value(Option<bool>)`](crate::operation::modify_vpc_tenancy::ModifyVpcTenancyOutput::return_value): <p>Returns <code>true</code> if the request succeeds; otherwise, returns an error.</p>
11 /// - On failure, responds with [`SdkError<ModifyVpcTenancyError>`](crate::operation::modify_vpc_tenancy::ModifyVpcTenancyError)
12 pub fn modify_vpc_tenancy(&self) -> crate::operation::modify_vpc_tenancy::builders::ModifyVpcTenancyFluentBuilder {
13 crate::operation::modify_vpc_tenancy::builders::ModifyVpcTenancyFluentBuilder::new(self.handle.clone())
14 }
15}