1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteSubnet`](crate::operation::delete_subnet::builders::DeleteSubnetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`subnet_id(impl ::std::convert::Into<String>)`](crate::operation::delete_subnet::builders::DeleteSubnetFluentBuilder::subnet_id) / [`set_subnet_id(Option<String>)`](crate::operation::delete_subnet::builders::DeleteSubnetFluentBuilder::set_subnet_id): <p>The ID of the subnet.</p>
    ///   - [`dry_run(bool)`](crate::operation::delete_subnet::builders::DeleteSubnetFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_subnet::builders::DeleteSubnetFluentBuilder::set_dry_run): <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>
    /// - On success, responds with [`DeleteSubnetOutput`](crate::operation::delete_subnet::DeleteSubnetOutput)
    /// - On failure, responds with [`SdkError<DeleteSubnetError>`](crate::operation::delete_subnet::DeleteSubnetError)
    pub fn delete_subnet(
        &self,
    ) -> crate::operation::delete_subnet::builders::DeleteSubnetFluentBuilder {
        crate::operation::delete_subnet::builders::DeleteSubnetFluentBuilder::new(
            self.handle.clone(),
        )
    }
}