1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DetachClassicLinkVpc`](crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`DetachClassicLinkVpcOutput`](crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcOutput) with field(s):
    ///   - [`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>
    /// - On failure, responds with [`SdkError<DetachClassicLinkVpcError>`](crate::operation::detach_classic_link_vpc::DetachClassicLinkVpcError)
    pub fn detach_classic_link_vpc(&self) -> crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder {
        crate::operation::detach_classic_link_vpc::builders::DetachClassicLinkVpcFluentBuilder::new(self.handle.clone())
    }
}