Struct aws_sdk_ec2::input::EnableImageDeprecationInput
source · #[non_exhaustive]pub struct EnableImageDeprecationInput { /* private fields */ }
Implementations§
source§impl EnableImageDeprecationInput
impl EnableImageDeprecationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableImageDeprecation, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableImageDeprecation, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<EnableImageDeprecation
>
Examples found in repository?
src/client.rs (line 55943)
55929 55930 55931 55932 55933 55934 55935 55936 55937 55938 55939 55940 55941 55942 55943 55944 55945 55946 55947 55948 55949 55950 55951 55952 55953 55954 55955 55956 55957 55958 55959 55960 55961 55962 55963 55964 55965 55966 55967 55968 55969 55970 55971
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::EnableImageDeprecation,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::EnableImageDeprecationError>,
> {
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::EnableImageDeprecationOutput,
aws_smithy_http::result::SdkError<crate::error::EnableImageDeprecationError>,
> {
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 EnableImageDeprecationInput
.
source§impl EnableImageDeprecationInput
impl EnableImageDeprecationInput
sourcepub fn deprecate_at(&self) -> Option<&DateTime>
pub fn deprecate_at(&self) -> Option<&DateTime>
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now.
Trait Implementations§
source§impl Clone for EnableImageDeprecationInput
impl Clone for EnableImageDeprecationInput
source§fn clone(&self) -> EnableImageDeprecationInput
fn clone(&self) -> EnableImageDeprecationInput
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