#[non_exhaustive]pub struct S3InitiateRestoreObjectOperation {
pub expiration_in_days: Option<i32>,
pub glacier_job_tier: Option<S3GlacierJobTier>,
}
Expand description
Contains the configuration parameters for a POST Object restore job. S3 Batch Operations passes every object to the underlying RestoreObject
API operation. For more information about the parameters for this operation, see RestoreObject.
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.expiration_in_days: Option<i32>
This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive object remains available in Amazon S3. S3 Initiate Restore Object jobs that target S3 Glacier and S3 Glacier Deep Archive objects require ExpirationInDays
set to 1 or greater.
Conversely, do not set ExpirationInDays
when creating S3 Initiate Restore Object jobs that target S3 Intelligent-Tiering Archive Access and Deep Archive Access tier objects. Objects in S3 Intelligent-Tiering archive access tiers are not subject to restore expiry, so specifying ExpirationInDays
results in restore request failure.
S3 Batch Operations jobs can operate either on S3 Glacier and S3 Glacier Deep Archive storage class objects or on S3 Intelligent-Tiering Archive Access and Deep Archive Access storage tier objects, but not both types in the same job. If you need to restore objects of both types you must create separate Batch Operations jobs.
glacier_job_tier: Option<S3GlacierJobTier>
S3 Batch Operations supports STANDARD
and BULK
retrieval tiers, but not the EXPEDITED
retrieval tier.
Implementations§
source§impl S3InitiateRestoreObjectOperation
impl S3InitiateRestoreObjectOperation
sourcepub fn expiration_in_days(&self) -> Option<i32>
pub fn expiration_in_days(&self) -> Option<i32>
This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive object remains available in Amazon S3. S3 Initiate Restore Object jobs that target S3 Glacier and S3 Glacier Deep Archive objects require ExpirationInDays
set to 1 or greater.
Conversely, do not set ExpirationInDays
when creating S3 Initiate Restore Object jobs that target S3 Intelligent-Tiering Archive Access and Deep Archive Access tier objects. Objects in S3 Intelligent-Tiering archive access tiers are not subject to restore expiry, so specifying ExpirationInDays
results in restore request failure.
S3 Batch Operations jobs can operate either on S3 Glacier and S3 Glacier Deep Archive storage class objects or on S3 Intelligent-Tiering Archive Access and Deep Archive Access storage tier objects, but not both types in the same job. If you need to restore objects of both types you must create separate Batch Operations jobs.
sourcepub fn glacier_job_tier(&self) -> Option<&S3GlacierJobTier>
pub fn glacier_job_tier(&self) -> Option<&S3GlacierJobTier>
S3 Batch Operations supports STANDARD
and BULK
retrieval tiers, but not the EXPEDITED
retrieval tier.
source§impl S3InitiateRestoreObjectOperation
impl S3InitiateRestoreObjectOperation
sourcepub fn builder() -> S3InitiateRestoreObjectOperationBuilder
pub fn builder() -> S3InitiateRestoreObjectOperationBuilder
Creates a new builder-style object to manufacture S3InitiateRestoreObjectOperation
.
Trait Implementations§
source§impl Clone for S3InitiateRestoreObjectOperation
impl Clone for S3InitiateRestoreObjectOperation
source§fn clone(&self) -> S3InitiateRestoreObjectOperation
fn clone(&self) -> S3InitiateRestoreObjectOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for S3InitiateRestoreObjectOperation
impl PartialEq for S3InitiateRestoreObjectOperation
source§fn eq(&self, other: &S3InitiateRestoreObjectOperation) -> bool
fn eq(&self, other: &S3InitiateRestoreObjectOperation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for S3InitiateRestoreObjectOperation
Auto Trait Implementations§
impl Freeze for S3InitiateRestoreObjectOperation
impl RefUnwindSafe for S3InitiateRestoreObjectOperation
impl Send for S3InitiateRestoreObjectOperation
impl Sync for S3InitiateRestoreObjectOperation
impl Unpin for S3InitiateRestoreObjectOperation
impl UnwindSafe for S3InitiateRestoreObjectOperation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more