Struct aws_sdk_ec2::input::CreateStoreImageTaskInput
source · #[non_exhaustive]pub struct CreateStoreImageTaskInput { /* private fields */ }
Implementations§
source§impl CreateStoreImageTaskInput
impl CreateStoreImageTaskInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateStoreImageTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateStoreImageTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateStoreImageTask
>
Examples found in repository?
src/client.rs (line 21463)
21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 21462 21463 21464 21465 21466 21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateStoreImageTask,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateStoreImageTaskError>,
> {
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::CreateStoreImageTaskOutput,
aws_smithy_http::result::SdkError<crate::error::CreateStoreImageTaskError>,
> {
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 CreateStoreImageTaskInput
.
source§impl CreateStoreImageTaskInput
impl CreateStoreImageTaskInput
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the Amazon S3 bucket in which the AMI object will be stored. The bucket must be in the Region in which the request is being made. The AMI object appears in the bucket only after the upload task has completed.
The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.
Trait Implementations§
source§impl Clone for CreateStoreImageTaskInput
impl Clone for CreateStoreImageTaskInput
source§fn clone(&self) -> CreateStoreImageTaskInput
fn clone(&self) -> CreateStoreImageTaskInput
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