Struct aws_sdk_s3control::model::JobOperation
source · #[non_exhaustive]pub struct JobOperation { /* private fields */ }
Expand description
The operation that you want this job to perform on every object listed in the manifest. For more information about the available operations, see Operations in the Amazon S3 User Guide.
Implementations§
source§impl JobOperation
impl JobOperation
sourcepub fn lambda_invoke(&self) -> Option<&LambdaInvokeOperation>
pub fn lambda_invoke(&self) -> Option<&LambdaInvokeOperation>
Directs the specified job to invoke an Lambda function on every object in the manifest.
sourcepub fn s3_put_object_copy(&self) -> Option<&S3CopyObjectOperation>
pub fn s3_put_object_copy(&self) -> Option<&S3CopyObjectOperation>
Directs the specified job to run a PUT Copy object call on every object in the manifest.
sourcepub fn s3_put_object_acl(&self) -> Option<&S3SetObjectAclOperation>
pub fn s3_put_object_acl(&self) -> Option<&S3SetObjectAclOperation>
Directs the specified job to run a PUT Object acl call on every object in the manifest.
sourcepub fn s3_put_object_tagging(&self) -> Option<&S3SetObjectTaggingOperation>
pub fn s3_put_object_tagging(&self) -> Option<&S3SetObjectTaggingOperation>
Directs the specified job to run a PUT Object tagging call on every object in the manifest.
sourcepub fn s3_delete_object_tagging(
&self
) -> Option<&S3DeleteObjectTaggingOperation>
pub fn s3_delete_object_tagging(
&self
) -> Option<&S3DeleteObjectTaggingOperation>
Directs the specified job to execute a DELETE Object tagging call on every object in the manifest.
sourcepub fn s3_initiate_restore_object(
&self
) -> Option<&S3InitiateRestoreObjectOperation>
pub fn s3_initiate_restore_object(
&self
) -> Option<&S3InitiateRestoreObjectOperation>
Directs the specified job to initiate restore requests for every archived object in the manifest.
sourcepub fn s3_put_object_legal_hold(&self) -> Option<&S3SetObjectLegalHoldOperation>
pub fn s3_put_object_legal_hold(&self) -> Option<&S3SetObjectLegalHoldOperation>
Contains the configuration for an S3 Object Lock legal hold operation that an S3 Batch Operations job passes every object to the underlying PutObjectLegalHold
API. For more information, see Using S3 Object Lock legal hold with S3 Batch Operations in the Amazon S3 User Guide.
sourcepub fn s3_put_object_retention(&self) -> Option<&S3SetObjectRetentionOperation>
pub fn s3_put_object_retention(&self) -> Option<&S3SetObjectRetentionOperation>
Contains the configuration parameters for the Object Lock retention action for an S3 Batch Operations job. Batch Operations passes every object to the underlying PutObjectRetention
API. For more information, see Using S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User Guide.
sourcepub fn s3_replicate_object(&self) -> Option<&S3ReplicateObjectOperation>
pub fn s3_replicate_object(&self) -> Option<&S3ReplicateObjectOperation>
Directs the specified job to invoke ReplicateObject
on every object in the job's manifest.
source§impl JobOperation
impl JobOperation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture JobOperation
.
Examples found in repository?
3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221
pub fn deser_structure_crate_model_job_operation(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::JobOperation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::JobOperation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("LambdaInvoke") /* LambdaInvoke com.amazonaws.s3control#JobOperation$LambdaInvoke */ => {
let var_128 =
Some(
crate::xml_deser::deser_structure_crate_model_lambda_invoke_operation(&mut tag)
?
)
;
builder = builder.set_lambda_invoke(var_128);
}
,
s if s.matches("S3PutObjectCopy") /* S3PutObjectCopy com.amazonaws.s3control#JobOperation$S3PutObjectCopy */ => {
let var_129 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_copy_object_operation(&mut tag)
?
)
;
builder = builder.set_s3_put_object_copy(var_129);
}
,
s if s.matches("S3PutObjectAcl") /* S3PutObjectAcl com.amazonaws.s3control#JobOperation$S3PutObjectAcl */ => {
let var_130 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_set_object_acl_operation(&mut tag)
?
)
;
builder = builder.set_s3_put_object_acl(var_130);
}
,
s if s.matches("S3PutObjectTagging") /* S3PutObjectTagging com.amazonaws.s3control#JobOperation$S3PutObjectTagging */ => {
let var_131 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_set_object_tagging_operation(&mut tag)
?
)
;
builder = builder.set_s3_put_object_tagging(var_131);
}
,
s if s.matches("S3DeleteObjectTagging") /* S3DeleteObjectTagging com.amazonaws.s3control#JobOperation$S3DeleteObjectTagging */ => {
let var_132 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_delete_object_tagging_operation(&mut tag)
?
)
;
builder = builder.set_s3_delete_object_tagging(var_132);
}
,
s if s.matches("S3InitiateRestoreObject") /* S3InitiateRestoreObject com.amazonaws.s3control#JobOperation$S3InitiateRestoreObject */ => {
let var_133 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_initiate_restore_object_operation(&mut tag)
?
)
;
builder = builder.set_s3_initiate_restore_object(var_133);
}
,
s if s.matches("S3PutObjectLegalHold") /* S3PutObjectLegalHold com.amazonaws.s3control#JobOperation$S3PutObjectLegalHold */ => {
let var_134 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_set_object_legal_hold_operation(&mut tag)
?
)
;
builder = builder.set_s3_put_object_legal_hold(var_134);
}
,
s if s.matches("S3PutObjectRetention") /* S3PutObjectRetention com.amazonaws.s3control#JobOperation$S3PutObjectRetention */ => {
let var_135 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_set_object_retention_operation(&mut tag)
?
)
;
builder = builder.set_s3_put_object_retention(var_135);
}
,
s if s.matches("S3ReplicateObject") /* S3ReplicateObject com.amazonaws.s3control#JobOperation$S3ReplicateObject */ => {
let var_136 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_replicate_object_operation(&mut tag)
?
)
;
builder = builder.set_s3_replicate_object(var_136);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for JobOperation
impl Clone for JobOperation
source§fn clone(&self) -> JobOperation
fn clone(&self) -> JobOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more