#[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§

Directs the specified job to invoke an Lambda function on every object in the manifest.

Directs the specified job to run a PUT Copy object call on every object in the manifest.

Directs the specified job to run a PUT Object acl call on every object in the manifest.

Directs the specified job to run a PUT Object tagging call on every object in the manifest.

Directs the specified job to execute a DELETE Object tagging call on every object in the manifest.

Directs the specified job to initiate restore requests for every archived object in the manifest.

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.

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.

Directs the specified job to invoke ReplicateObject on every object in the job's manifest.

Creates a new builder-style object to manufacture JobOperation.

Examples found in repository?
src/xml_deser.rs (line 3124)
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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more