Struct aws_sdk_ec2::input::CreateRestoreImageTaskInput [−][src]
#[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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateRestoreImageTask, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateRestoreImageTask, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateRestoreImageTask
>
Creates a new builder-style object to manufacture CreateRestoreImageTaskInput
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreateRestoreImageTaskInput
impl Send for CreateRestoreImageTaskInput
impl Sync for CreateRestoreImageTaskInput
impl Unpin for CreateRestoreImageTaskInput
impl UnwindSafe for CreateRestoreImageTaskInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more