Skip to content

S3SetObjectRetentionOperation

Source code in docs_src/capo_s3_control/types/s3_set_object_retention_operation.py
class S3SetObjectRetentionOperation(TypedDict, closed=True):
    bypass_governance_retention: NotRequired["capo_s3_control.types.boolean.Boolean"]
    """<p>Indicates if the action should be applied to objects in the Batch Operations job even if they have Object Lock <code> GOVERNANCE</code> type in place.</p>"""
    retention: "capo_s3_control.types.s3_retention.S3Retention"
    """<p>Contains the Object Lock retention mode to be applied to all objects in the Batch Operations job. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html">Using S3 Object Lock retention with S3 Batch Operations</a> in the <i>Amazon S3 User Guide</i>.</p>"""

bypass_governance_retention instance-attribute

bypass_governance_retention: NotRequired[Boolean]

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

retention instance-attribute

retention: 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.