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

Implementations§

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

Examples found in repository?
src/client.rs (line 63917)
63916
63917
63918
63919
        pub fn dry_run(mut self, input: bool) -> Self {
            self.inner = self.inner.dry_run(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 63922)
63921
63922
63923
63924
        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 AFI.

Examples found in repository?
src/client.rs (line 63927)
63926
63927
63928
63929
        pub fn fpga_image_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.fpga_image_id(input.into());
            self
        }

The ID of the AFI.

Examples found in repository?
src/client.rs (line 63935)
63931
63932
63933
63934
63935
63936
63937
        pub fn set_fpga_image_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_fpga_image_id(input);
            self
        }

The name of the attribute.

Examples found in repository?
src/client.rs (line 63940)
63939
63940
63941
63942
        pub fn attribute(mut self, input: crate::model::FpgaImageAttributeName) -> Self {
            self.inner = self.inner.attribute(input);
            self
        }

The name of the attribute.

Examples found in repository?
src/client.rs (line 63948)
63944
63945
63946
63947
63948
63949
63950
        pub fn set_attribute(
            mut self,
            input: std::option::Option<crate::model::FpgaImageAttributeName>,
        ) -> Self {
            self.inner = self.inner.set_attribute(input);
            self
        }

The operation type.

Examples found in repository?
src/client.rs (line 63953)
63952
63953
63954
63955
        pub fn operation_type(mut self, input: crate::model::OperationType) -> Self {
            self.inner = self.inner.operation_type(input);
            self
        }

The operation type.

Examples found in repository?
src/client.rs (line 63961)
63957
63958
63959
63960
63961
63962
63963
        pub fn set_operation_type(
            mut self,
            input: std::option::Option<crate::model::OperationType>,
        ) -> Self {
            self.inner = self.inner.set_operation_type(input);
            self
        }

Appends an item to user_ids.

To override the contents of this collection use set_user_ids.

The Amazon Web Services account IDs. This parameter is valid only when modifying the loadPermission attribute.

Examples found in repository?
src/client.rs (line 63970)
63969
63970
63971
63972
        pub fn user_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.user_ids(input.into());
            self
        }

The Amazon Web Services account IDs. This parameter is valid only when modifying the loadPermission attribute.

Examples found in repository?
src/client.rs (line 63978)
63974
63975
63976
63977
63978
63979
63980
        pub fn set_user_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_user_ids(input);
            self
        }

Appends an item to user_groups.

To override the contents of this collection use set_user_groups.

The user groups. This parameter is valid only when modifying the loadPermission attribute.

Examples found in repository?
src/client.rs (line 63987)
63986
63987
63988
63989
        pub fn user_groups(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.user_groups(input.into());
            self
        }

The user groups. This parameter is valid only when modifying the loadPermission attribute.

Examples found in repository?
src/client.rs (line 63995)
63991
63992
63993
63994
63995
63996
63997
        pub fn set_user_groups(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_user_groups(input);
            self
        }

Appends an item to product_codes.

To override the contents of this collection use set_product_codes.

The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the productCodes attribute.

Examples found in repository?
src/client.rs (line 64004)
64003
64004
64005
64006
        pub fn product_codes(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.product_codes(input.into());
            self
        }

The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the productCodes attribute.

Examples found in repository?
src/client.rs (line 64012)
64008
64009
64010
64011
64012
64013
64014
        pub fn set_product_codes(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_product_codes(input);
            self
        }

The load permission for the AFI.

Examples found in repository?
src/client.rs (line 64017)
64016
64017
64018
64019
        pub fn load_permission(mut self, input: crate::model::LoadPermissionModifications) -> Self {
            self.inner = self.inner.load_permission(input);
            self
        }

The load permission for the AFI.

Examples found in repository?
src/client.rs (line 64025)
64021
64022
64023
64024
64025
64026
64027
        pub fn set_load_permission(
            mut self,
            input: std::option::Option<crate::model::LoadPermissionModifications>,
        ) -> Self {
            self.inner = self.inner.set_load_permission(input);
            self
        }

A description for the AFI.

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

A description for the AFI.

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

A name for the AFI.

Examples found in repository?
src/client.rs (line 64040)
64039
64040
64041
64042
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.name(input.into());
            self
        }

A name for the AFI.

Examples found in repository?
src/client.rs (line 64045)
64044
64045
64046
64047
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_name(input);
            self
        }

Consumes the builder and constructs a ModifyFpgaImageAttributeInput.

Examples found in repository?
src/client.rs (line 63884)
63872
63873
63874
63875
63876
63877
63878
63879
63880
63881
63882
63883
63884
63885
63886
63887
63888
63889
63890
63891
63892
63893
63894
63895
63896
63897
63898
63899
63900
63901
63902
63903
63904
63905
63906
63907
63908
63909
63910
63911
63912
63913
63914
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::ModifyFpgaImageAttribute,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::ModifyFpgaImageAttributeError>,
        > {
            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::ModifyFpgaImageAttributeOutput,
            aws_smithy_http::result::SdkError<crate::error::ModifyFpgaImageAttributeError>,
        > {
            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