Struct aws_sdk_ec2::input::DescribeImageAttributeInput
source · #[non_exhaustive]pub struct DescribeImageAttributeInput { /* private fields */ }
Expand description
Contains the parameters for DescribeImageAttribute.
Implementations§
source§impl DescribeImageAttributeInput
impl DescribeImageAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeImageAttribute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeImageAttribute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeImageAttribute
>
Examples found in repository?
src/client.rs (line 37887)
37873 37874 37875 37876 37877 37878 37879 37880 37881 37882 37883 37884 37885 37886 37887 37888 37889 37890 37891 37892 37893 37894 37895 37896 37897 37898 37899 37900 37901 37902 37903 37904 37905 37906 37907 37908 37909 37910 37911 37912 37913 37914 37915
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeImageAttribute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeImageAttributeError>,
> {
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::DescribeImageAttributeOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeImageAttributeError>,
> {
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
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DescribeImageAttributeInput
.
source§impl DescribeImageAttributeInput
impl DescribeImageAttributeInput
sourcepub fn attribute(&self) -> Option<&ImageAttributeName>
pub fn attribute(&self) -> Option<&ImageAttributeName>
The AMI attribute.
Note: The blockDeviceMapping
attribute is deprecated. Using this attribute returns the Client.AuthFailure
error. To get information about the block device mappings for an AMI, use the DescribeImages
action.
Trait Implementations§
source§impl Clone for DescribeImageAttributeInput
impl Clone for DescribeImageAttributeInput
source§fn clone(&self) -> DescribeImageAttributeInput
fn clone(&self) -> DescribeImageAttributeInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more