Struct aws_sdk_ec2::input::GetEbsEncryptionByDefaultInput
source · #[non_exhaustive]pub struct GetEbsEncryptionByDefaultInput { /* private fields */ }
Implementations§
source§impl GetEbsEncryptionByDefaultInput
impl GetEbsEncryptionByDefaultInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetEbsEncryptionByDefault, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetEbsEncryptionByDefault, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetEbsEncryptionByDefault
>
Examples found in repository?
src/client.rs (line 57949)
57935 57936 57937 57938 57939 57940 57941 57942 57943 57944 57945 57946 57947 57948 57949 57950 57951 57952 57953 57954 57955 57956 57957 57958 57959 57960 57961 57962 57963 57964 57965 57966 57967 57968 57969 57970 57971 57972 57973 57974 57975 57976 57977
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetEbsEncryptionByDefault,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetEbsEncryptionByDefaultError>,
> {
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::GetEbsEncryptionByDefaultOutput,
aws_smithy_http::result::SdkError<crate::error::GetEbsEncryptionByDefaultError>,
> {
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 GetEbsEncryptionByDefaultInput
.
Trait Implementations§
source§impl Clone for GetEbsEncryptionByDefaultInput
impl Clone for GetEbsEncryptionByDefaultInput
source§fn clone(&self) -> GetEbsEncryptionByDefaultInput
fn clone(&self) -> GetEbsEncryptionByDefaultInput
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