Struct aws_sdk_ec2::input::GetEbsDefaultKmsKeyIdInput
source · #[non_exhaustive]pub struct GetEbsDefaultKmsKeyIdInput { /* private fields */ }
Implementations§
source§impl GetEbsDefaultKmsKeyIdInput
impl GetEbsDefaultKmsKeyIdInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetEbsDefaultKmsKeyId, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetEbsDefaultKmsKeyId, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetEbsDefaultKmsKeyId
>
Examples found in repository?
src/client.rs (line 57875)
57861 57862 57863 57864 57865 57866 57867 57868 57869 57870 57871 57872 57873 57874 57875 57876 57877 57878 57879 57880 57881 57882 57883 57884 57885 57886 57887 57888 57889 57890 57891 57892 57893 57894 57895 57896 57897 57898 57899 57900 57901 57902 57903
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetEbsDefaultKmsKeyId,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetEbsDefaultKmsKeyIdError>,
> {
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::GetEbsDefaultKmsKeyIdOutput,
aws_smithy_http::result::SdkError<crate::error::GetEbsDefaultKmsKeyIdError>,
> {
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 GetEbsDefaultKmsKeyIdInput
.
Trait Implementations§
source§impl Clone for GetEbsDefaultKmsKeyIdInput
impl Clone for GetEbsDefaultKmsKeyIdInput
source§fn clone(&self) -> GetEbsDefaultKmsKeyIdInput
fn clone(&self) -> GetEbsDefaultKmsKeyIdInput
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