Struct aws_sdk_ec2::input::CreateRestoreImageTaskInput
source · #[non_exhaustive]pub struct CreateRestoreImageTaskInput { /* private fields */ }
Implementations§
source§impl CreateRestoreImageTaskInput
impl CreateRestoreImageTaskInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateRestoreImageTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateRestoreImageTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateRestoreImageTask
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateRestoreImageTaskInput
.
source§impl CreateRestoreImageTaskInput
impl CreateRestoreImageTaskInput
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the Amazon S3 bucket that contains the stored AMI object.
sourcepub fn object_key(&self) -> Option<&str>
pub fn object_key(&self) -> Option<&str>
The name of the stored AMI object in the bucket.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do not provide a name, the new AMI gets the same name as the original AMI.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
-
To tag the AMI, the value for
ResourceType
must beimage
. -
To tag the snapshots, the value for
ResourceType
must besnapshot
. The same tag is applied to all of the snapshots that are created.
Trait Implementations§
source§impl Clone for CreateRestoreImageTaskInput
impl Clone for CreateRestoreImageTaskInput
source§fn clone(&self) -> CreateRestoreImageTaskInput
fn clone(&self) -> CreateRestoreImageTaskInput
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 moresource§impl Debug for CreateRestoreImageTaskInput
impl Debug for CreateRestoreImageTaskInput
source§impl PartialEq<CreateRestoreImageTaskInput> for CreateRestoreImageTaskInput
impl PartialEq<CreateRestoreImageTaskInput> for CreateRestoreImageTaskInput
source§fn eq(&self, other: &CreateRestoreImageTaskInput) -> bool
fn eq(&self, other: &CreateRestoreImageTaskInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.