#[non_exhaustive]pub struct S3InitiateRestoreObjectOperation {
pub expiration_in_days: Option<i32>,
pub glacier_job_tier: Option<S3GlacierJobTier>,
}
Expand description
Contains the configuration parameters for an S3 Initiate Restore Object job. S3 Batch Operations passes every object to the underlying POST Object restore API. 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
sourceimpl 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.
sourceimpl S3InitiateRestoreObjectOperation
impl S3InitiateRestoreObjectOperation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture S3InitiateRestoreObjectOperation
Trait Implementations
sourceimpl Clone for S3InitiateRestoreObjectOperation
impl Clone for S3InitiateRestoreObjectOperation
sourcefn clone(&self) -> S3InitiateRestoreObjectOperation
fn clone(&self) -> S3InitiateRestoreObjectOperation
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 more
sourceimpl PartialEq<S3InitiateRestoreObjectOperation> for S3InitiateRestoreObjectOperation
impl PartialEq<S3InitiateRestoreObjectOperation> for S3InitiateRestoreObjectOperation
sourcefn eq(&self, other: &S3InitiateRestoreObjectOperation) -> bool
fn eq(&self, other: &S3InitiateRestoreObjectOperation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &S3InitiateRestoreObjectOperation) -> bool
fn ne(&self, other: &S3InitiateRestoreObjectOperation) -> bool
This method tests for !=
.
impl StructuralPartialEq for S3InitiateRestoreObjectOperation
Auto Trait Implementations
impl RefUnwindSafe for S3InitiateRestoreObjectOperation
impl Send for S3InitiateRestoreObjectOperation
impl Sync for S3InitiateRestoreObjectOperation
impl Unpin for S3InitiateRestoreObjectOperation
impl UnwindSafe for S3InitiateRestoreObjectOperation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more