Struct aws_sdk_ec2::input::CreateRestoreImageTaskInput
source · [−]#[non_exhaustive]pub struct CreateRestoreImageTaskInput { /* private fields */ }
Implementations
sourceimpl 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
.
sourceimpl 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
sourceimpl Clone for CreateRestoreImageTaskInput
impl Clone for CreateRestoreImageTaskInput
sourcefn clone(&self) -> CreateRestoreImageTaskInput
fn clone(&self) -> CreateRestoreImageTaskInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CreateRestoreImageTaskInput
impl Debug for CreateRestoreImageTaskInput
sourceimpl PartialEq<CreateRestoreImageTaskInput> for CreateRestoreImageTaskInput
impl PartialEq<CreateRestoreImageTaskInput> for CreateRestoreImageTaskInput
sourcefn eq(&self, other: &CreateRestoreImageTaskInput) -> bool
fn eq(&self, other: &CreateRestoreImageTaskInput) -> bool
impl StructuralPartialEq for CreateRestoreImageTaskInput
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more