aws_sdk_ec2/client/
detach_classic_link_vpc.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 [`DetachClassicLinkVpc`](crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`dry_run(bool)`](crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder::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>
7    ///   - [`instance_id(impl Into<String>)`](crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder::set_instance_id):<br>required: **true**<br><p>The ID of the instance to unlink from the VPC.</p><br>
8    ///   - [`vpc_id(impl Into<String>)`](crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder::set_vpc_id):<br>required: **true**<br><p>The ID of the VPC to which the instance is linked.</p><br>
9    /// - On success, responds with [`DetachClassicLinkVpcOutput`](crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcOutput) with field(s):
10    ///   - [`r#return(Option<bool>)`](crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcOutput::return): <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an error.</p>
11    /// - On failure, responds with [`SdkError<DetachClassicLinkVpcError>`](crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError)
12    pub fn detach_classic_link_vpc(&self) -> crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder {
13        crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder::new(self.handle.clone())
14    }
15}