Struct aws_sdk_ec2::input::ExportImageInput
source · #[non_exhaustive]pub struct ExportImageInput { /* private fields */ }
Implementations§
source§impl ExportImageInput
impl ExportImageInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<ExportImage, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<ExportImage, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ExportImage
>
Examples found in repository?
56841 56842 56843 56844 56845 56846 56847 56848 56849 56850 56851 56852 56853 56854 56855 56856 56857 56858 56859 56860 56861 56862 56863 56864 56865 56866 56867 56868 56869 56870 56871 56872 56873 56874 56875 56876 56877 56878 56879 56880 56881 56882 56883
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ExportImage,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ExportImageError>,
> {
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::ExportImageOutput,
aws_smithy_http::result::SdkError<crate::error::ExportImageError>,
> {
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 ExportImageInput
.
source§impl ExportImageInput
impl ExportImageInput
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Token to enable idempotency for export image requests.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the image being exported. The maximum length is 255 characters.
sourcepub fn disk_image_format(&self) -> Option<&DiskImageFormat>
pub fn disk_image_format(&self) -> Option<&DiskImageFormat>
The disk image format.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn s3_export_location(&self) -> Option<&ExportTaskS3LocationRequest>
pub fn s3_export_location(&self) -> Option<&ExportTaskS3LocationRequest>
The Amazon S3 bucket for the destination image. The destination bucket must exist.
sourcepub fn role_name(&self) -> Option<&str>
pub fn role_name(&self) -> Option<&str>
The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. If this parameter is not specified, the default role is named 'vmimport'.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the export image task during creation.
Trait Implementations§
source§impl Clone for ExportImageInput
impl Clone for ExportImageInput
source§fn clone(&self) -> ExportImageInput
fn clone(&self) -> ExportImageInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more