#[non_exhaustive]pub struct CreateRestoreImageTaskInput {
pub bucket: Option<String>,
pub object_key: Option<String>,
pub name: Option<String>,
pub tag_specifications: Option<Vec<TagSpecification>>,
pub dry_run: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bucket: Option<String>
The name of the Amazon S3 bucket that contains the stored AMI object.
object_key: Option<String>
The name of the stored AMI object in the bucket.
name: Option<String>
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.
tag_specifications: Option<Vec<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.
dry_run: 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
.
Implementations§
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.
source§impl CreateRestoreImageTaskInput
impl CreateRestoreImageTaskInput
sourcepub fn builder() -> CreateRestoreImageTaskInputBuilder
pub fn builder() -> CreateRestoreImageTaskInputBuilder
Creates a new builder-style object to manufacture CreateRestoreImageTaskInput
.
Trait Implementations§
source§impl Clone for CreateRestoreImageTaskInput
impl Clone for CreateRestoreImageTaskInput
source§fn clone(&self) -> CreateRestoreImageTaskInput
fn clone(&self) -> CreateRestoreImageTaskInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
self
and other
values to be equal, and is used
by ==
.