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

A builder for ModifyIpamInput.

Implementations§

A check for 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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 65867)
65866
65867
65868
65869
        pub fn dry_run(mut self, input: bool) -> Self {
            self.inner = self.inner.dry_run(input);
            self
        }

A check for 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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 65872)
65871
65872
65873
65874
        pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_dry_run(input);
            self
        }

The ID of the IPAM you want to modify.

Examples found in repository?
src/client.rs (line 65877)
65876
65877
65878
65879
        pub fn ipam_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.ipam_id(input.into());
            self
        }

The ID of the IPAM you want to modify.

Examples found in repository?
src/client.rs (line 65882)
65881
65882
65883
65884
        pub fn set_ipam_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_ipam_id(input);
            self
        }

The description of the IPAM you want to modify.

Examples found in repository?
src/client.rs (line 65887)
65886
65887
65888
65889
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.description(input.into());
            self
        }

The description of the IPAM you want to modify.

Examples found in repository?
src/client.rs (line 65892)
65891
65892
65893
65894
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_description(input);
            self
        }

Appends an item to add_operating_regions.

To override the contents of this collection use set_add_operating_regions.

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.

For more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide.

Examples found in repository?
src/client.rs (line 65905)
65901
65902
65903
65904
65905
65906
65907
        pub fn add_operating_regions(
            mut self,
            input: crate::model::AddIpamOperatingRegion,
        ) -> Self {
            self.inner = self.inner.add_operating_regions(input);
            self
        }

Choose the operating Regions for the IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.

For more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide.

Examples found in repository?
src/client.rs (line 65914)
65910
65911
65912
65913
65914
65915
65916
        pub fn set_add_operating_regions(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::AddIpamOperatingRegion>>,
        ) -> Self {
            self.inner = self.inner.set_add_operating_regions(input);
            self
        }

Appends an item to remove_operating_regions.

To override the contents of this collection use set_remove_operating_regions.

The operating Regions to remove.

Examples found in repository?
src/client.rs (line 65926)
65922
65923
65924
65925
65926
65927
65928
        pub fn remove_operating_regions(
            mut self,
            input: crate::model::RemoveIpamOperatingRegion,
        ) -> Self {
            self.inner = self.inner.remove_operating_regions(input);
            self
        }

The operating Regions to remove.

Examples found in repository?
src/client.rs (line 65934)
65930
65931
65932
65933
65934
65935
65936
        pub fn set_remove_operating_regions(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::RemoveIpamOperatingRegion>>,
        ) -> Self {
            self.inner = self.inner.set_remove_operating_regions(input);
            self
        }

Consumes the builder and constructs a ModifyIpamInput.

Examples found in repository?
src/client.rs (line 65834)
65822
65823
65824
65825
65826
65827
65828
65829
65830
65831
65832
65833
65834
65835
65836
65837
65838
65839
65840
65841
65842
65843
65844
65845
65846
65847
65848
65849
65850
65851
65852
65853
65854
65855
65856
65857
65858
65859
65860
65861
65862
65863
65864
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::ModifyIpam,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::ModifyIpamError>,
        > {
            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::ModifyIpamOutput,
            aws_smithy_http::result::SdkError<crate::error::ModifyIpamError>,
        > {
            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