#[non_exhaustive]pub struct S3InitiateRestoreObjectOperation { /* private fields */ }
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.
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() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture S3InitiateRestoreObjectOperation
.
Examples found in repository?
4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818
pub fn deser_structure_crate_model_s3_initiate_restore_object_operation(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::S3InitiateRestoreObjectOperation, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::S3InitiateRestoreObjectOperation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ExpirationInDays") /* ExpirationInDays com.amazonaws.s3control#S3InitiateRestoreObjectOperation$ExpirationInDays */ => {
let var_223 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.s3control#S3ExpirationInDays`)"))
}
?
)
;
builder = builder.set_expiration_in_days(var_223);
}
,
s if s.matches("GlacierJobTier") /* GlacierJobTier com.amazonaws.s3control#S3InitiateRestoreObjectOperation$GlacierJobTier */ => {
let var_224 =
Some(
Result::<crate::model::S3GlacierJobTier, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::S3GlacierJobTier::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_glacier_job_tier(var_224);
}
,
_ => {}
}
}
Ok(builder.build())
}
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 more