pub struct Builder { /* private fields */ }
Expand description

Implementations§

Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives an IPv6 address).

If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an IPv6 address if it's created using version 2016-11-15 or later of the Amazon EC2 API.

Examples found in repository?
src/client.rs (line 67765)
67761
67762
67763
67764
67765
67766
67767
        pub fn assign_ipv6_address_on_creation(
            mut self,
            input: crate::model::AttributeBooleanValue,
        ) -> Self {
            self.inner = self.inner.assign_ipv6_address_on_creation(input);
            self
        }

Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives an IPv6 address).

If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an IPv6 address if it's created using version 2016-11-15 or later of the Amazon EC2 API.

Examples found in repository?
src/client.rs (line 67774)
67770
67771
67772
67773
67774
67775
67776
        pub fn set_assign_ipv6_address_on_creation(
            mut self,
            input: std::option::Option<crate::model::AttributeBooleanValue>,
        ) -> Self {
            self.inner = self.inner.set_assign_ipv6_address_on_creation(input);
            self
        }

Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address.

Examples found in repository?
src/client.rs (line 67782)
67778
67779
67780
67781
67782
67783
67784
        pub fn map_public_ip_on_launch(
            mut self,
            input: crate::model::AttributeBooleanValue,
        ) -> Self {
            self.inner = self.inner.map_public_ip_on_launch(input);
            self
        }

Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address.

Examples found in repository?
src/client.rs (line 67790)
67786
67787
67788
67789
67790
67791
67792
        pub fn set_map_public_ip_on_launch(
            mut self,
            input: std::option::Option<crate::model::AttributeBooleanValue>,
        ) -> Self {
            self.inner = self.inner.set_map_public_ip_on_launch(input);
            self
        }

The ID of the subnet.

Examples found in repository?
src/client.rs (line 67795)
67794
67795
67796
67797
        pub fn subnet_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.subnet_id(input.into());
            self
        }

The ID of the subnet.

Examples found in repository?
src/client.rs (line 67800)
67799
67800
67801
67802
        pub fn set_subnet_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_subnet_id(input);
            self
        }

Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a customer-owned IPv4 address.

When this value is true, you must specify the customer-owned IP pool using CustomerOwnedIpv4Pool.

Examples found in repository?
src/client.rs (line 67809)
67805
67806
67807
67808
67809
67810
67811
        pub fn map_customer_owned_ip_on_launch(
            mut self,
            input: crate::model::AttributeBooleanValue,
        ) -> Self {
            self.inner = self.inner.map_customer_owned_ip_on_launch(input);
            self
        }

Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a customer-owned IPv4 address.

When this value is true, you must specify the customer-owned IP pool using CustomerOwnedIpv4Pool.

Examples found in repository?
src/client.rs (line 67818)
67814
67815
67816
67817
67818
67819
67820
        pub fn set_map_customer_owned_ip_on_launch(
            mut self,
            input: std::option::Option<crate::model::AttributeBooleanValue>,
        ) -> Self {
            self.inner = self.inner.set_map_customer_owned_ip_on_launch(input);
            self
        }

The customer-owned IPv4 address pool associated with the subnet.

You must set this value when you specify true for MapCustomerOwnedIpOnLaunch.

Examples found in repository?
src/client.rs (line 67824)
67823
67824
67825
67826
        pub fn customer_owned_ipv4_pool(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.customer_owned_ipv4_pool(input.into());
            self
        }

The customer-owned IPv4 address pool associated with the subnet.

You must set this value when you specify true for MapCustomerOwnedIpOnLaunch.

Examples found in repository?
src/client.rs (line 67833)
67829
67830
67831
67832
67833
67834
67835
        pub fn set_customer_owned_ipv4_pool(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_customer_owned_ipv4_pool(input);
            self
        }

Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.

Examples found in repository?
src/client.rs (line 67838)
67837
67838
67839
67840
        pub fn enable_dns64(mut self, input: crate::model::AttributeBooleanValue) -> Self {
            self.inner = self.inner.enable_dns64(input);
            self
        }

Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.

Examples found in repository?
src/client.rs (line 67846)
67842
67843
67844
67845
67846
67847
67848
        pub fn set_enable_dns64(
            mut self,
            input: std::option::Option<crate::model::AttributeBooleanValue>,
        ) -> Self {
            self.inner = self.inner.set_enable_dns64(input);
            self
        }

The type of hostname to assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS name can be based on the instance IPv4 address (ip-name) or the instance ID (resource-name). For IPv6 only subnets, an instance DNS name must be based on the instance ID (resource-name).

Examples found in repository?
src/client.rs (line 67854)
67850
67851
67852
67853
67854
67855
67856
        pub fn private_dns_hostname_type_on_launch(
            mut self,
            input: crate::model::HostnameType,
        ) -> Self {
            self.inner = self.inner.private_dns_hostname_type_on_launch(input);
            self
        }

The type of hostname to assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS name can be based on the instance IPv4 address (ip-name) or the instance ID (resource-name). For IPv6 only subnets, an instance DNS name must be based on the instance ID (resource-name).

Examples found in repository?
src/client.rs (line 67862)
67858
67859
67860
67861
67862
67863
67864
        pub fn set_private_dns_hostname_type_on_launch(
            mut self,
            input: std::option::Option<crate::model::HostnameType>,
        ) -> Self {
            self.inner = self.inner.set_private_dns_hostname_type_on_launch(input);
            self
        }

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

Examples found in repository?
src/client.rs (line 67872)
67866
67867
67868
67869
67870
67871
67872
67873
67874
        pub fn enable_resource_name_dns_a_record_on_launch(
            mut self,
            input: crate::model::AttributeBooleanValue,
        ) -> Self {
            self.inner = self
                .inner
                .enable_resource_name_dns_a_record_on_launch(input);
            self
        }

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

Examples found in repository?
src/client.rs (line 67882)
67876
67877
67878
67879
67880
67881
67882
67883
67884
        pub fn set_enable_resource_name_dns_a_record_on_launch(
            mut self,
            input: std::option::Option<crate::model::AttributeBooleanValue>,
        ) -> Self {
            self.inner = self
                .inner
                .set_enable_resource_name_dns_a_record_on_launch(input);
            self
        }

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

Examples found in repository?
src/client.rs (line 67892)
67886
67887
67888
67889
67890
67891
67892
67893
67894
        pub fn enable_resource_name_dns_aaaa_record_on_launch(
            mut self,
            input: crate::model::AttributeBooleanValue,
        ) -> Self {
            self.inner = self
                .inner
                .enable_resource_name_dns_aaaa_record_on_launch(input);
            self
        }

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

Examples found in repository?
src/client.rs (line 67902)
67896
67897
67898
67899
67900
67901
67902
67903
67904
        pub fn set_enable_resource_name_dns_aaaa_record_on_launch(
            mut self,
            input: std::option::Option<crate::model::AttributeBooleanValue>,
        ) -> Self {
            self.inner = self
                .inner
                .set_enable_resource_name_dns_aaaa_record_on_launch(input);
            self
        }

Indicates the device position for local network interfaces in this subnet. For example, 1 indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0).

Examples found in repository?
src/client.rs (line 67907)
67906
67907
67908
67909
        pub fn enable_lni_at_device_index(mut self, input: i32) -> Self {
            self.inner = self.inner.enable_lni_at_device_index(input);
            self
        }

Indicates the device position for local network interfaces in this subnet. For example, 1 indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0).

Examples found in repository?
src/client.rs (line 67912)
67911
67912
67913
67914
        pub fn set_enable_lni_at_device_index(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_enable_lni_at_device_index(input);
            self
        }

Specify true to indicate that local network interfaces at the current position should be disabled.

Examples found in repository?
src/client.rs (line 67920)
67916
67917
67918
67919
67920
67921
67922
        pub fn disable_lni_at_device_index(
            mut self,
            input: crate::model::AttributeBooleanValue,
        ) -> Self {
            self.inner = self.inner.disable_lni_at_device_index(input);
            self
        }

Specify true to indicate that local network interfaces at the current position should be disabled.

Examples found in repository?
src/client.rs (line 67928)
67924
67925
67926
67927
67928
67929
67930
        pub fn set_disable_lni_at_device_index(
            mut self,
            input: std::option::Option<crate::model::AttributeBooleanValue>,
        ) -> Self {
            self.inner = self.inner.set_disable_lni_at_device_index(input);
            self
        }

Consumes the builder and constructs a ModifySubnetAttributeInput.

Examples found in repository?
src/client.rs (line 67728)
67716
67717
67718
67719
67720
67721
67722
67723
67724
67725
67726
67727
67728
67729
67730
67731
67732
67733
67734
67735
67736
67737
67738
67739
67740
67741
67742
67743
67744
67745
67746
67747
67748
67749
67750
67751
67752
67753
67754
67755
67756
67757
67758
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::ModifySubnetAttribute,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::ModifySubnetAttributeError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::ModifySubnetAttributeOutput,
            aws_smithy_http::result::SdkError<crate::error::ModifySubnetAttributeError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more