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 [`CreateDefaultSubnet`](crate::operation::create_default_subnet::builders::CreateDefaultSubnetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`availability_zone(impl Into<String>)`](crate::operation::create_default_subnet::builders::CreateDefaultSubnetFluentBuilder::availability_zone) / [`set_availability_zone(Option<String>)`](crate::operation::create_default_subnet::builders::CreateDefaultSubnetFluentBuilder::set_availability_zone):<br>required: **true**<br><p>The Availability Zone in which to create the default subnet.</p><br>
    ///   - [`dry_run(bool)`](crate::operation::create_default_subnet::builders::CreateDefaultSubnetFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_default_subnet::builders::CreateDefaultSubnetFluentBuilder::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>
    ///   - [`ipv6_native(bool)`](crate::operation::create_default_subnet::builders::CreateDefaultSubnetFluentBuilder::ipv6_native) / [`set_ipv6_native(Option<bool>)`](crate::operation::create_default_subnet::builders::CreateDefaultSubnetFluentBuilder::set_ipv6_native):<br>required: **false**<br><p>Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.</p><br>
    /// - On success, responds with [`CreateDefaultSubnetOutput`](crate::operation::create_default_subnet::CreateDefaultSubnetOutput) with field(s):
    ///   - [`subnet(Option<Subnet>)`](crate::operation::create_default_subnet::CreateDefaultSubnetOutput::subnet): <p>Information about the subnet.</p>
    /// - On failure, responds with [`SdkError<CreateDefaultSubnetError>`](crate::operation::create_default_subnet::CreateDefaultSubnetError)
    pub fn create_default_subnet(&self) -> crate::operation::create_default_subnet::builders::CreateDefaultSubnetFluentBuilder {
        crate::operation::create_default_subnet::builders::CreateDefaultSubnetFluentBuilder::new(self.handle.clone())
    }
}