Class: Aws::S3Control::Types::S3SetObjectRetentionOperation

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb

Overview

Note:

When making an API call, you may pass S3SetObjectRetentionOperation data as a hash:

{
  bypass_governance_retention: false,
  retention: { # required
    retain_until_date: Time.now,
    mode: "COMPLIANCE", # accepts COMPLIANCE, GOVERNANCE
  },
}

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bypass_governance_retentionBoolean

Indicates if the action should be applied to objects in the Batch Operations job even if they have Object Lock GOVERNANCE type in place.

Returns:

  • (Boolean)


6177
6178
6179
6180
6181
6182
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 6177

class S3SetObjectRetentionOperation < Struct.new(
  :bypass_governance_retention,
  :retention)
  SENSITIVE = []
  include Aws::Structure
end

#retentionTypes::S3Retention

Contains the Object Lock retention mode to be applied to all objects in the Batch Operations job. For more information, see Using S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User Guide.

Returns:



6177
6178
6179
6180
6181
6182
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 6177

class S3SetObjectRetentionOperation < Struct.new(
  :bypass_governance_retention,
  :retention)
  SENSITIVE = []
  include Aws::Structure
end