s3:PutObjectRetention is a Write access-level action in the s3 service. Grants permission to place an Object Retention configuration on an object
ARNs that s3:PutObjectRetention can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants s3:PutObjectRetention.
Filters access by the resource owner AWS account ID
Filters access by the TLS version used by the client
Filters access by authentication method
Filters access by object event hold status (ON or OFF)
Filters access by object event hold duration in days
Filters access by object retention mode (COMPLIANCE or GOVERNANCE)
Filters access by remaining object retention days
Filters access by object retain-until date
Filters access by the age in milliseconds of the request signature
Filters access by the version of AWS Signature used on the request
Filters access by unsigned content in your bucket
Filters access by the tags associated with the resource
Filters access by the network origin (Internet or VPC)
Filters access by existing access point tag key and value
Filters access by the tags associated with the bucket
Filters access by the AWS Account ID that owns the access point
Filters access by an access point Amazon Resource Name (ARN)
A minimal policy that allows s3:PutObjectRetention. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowS3PutObjectRetention",
"Effect": "Allow",
"Action": "s3:PutObjectRetention",
"Resource": "*"
}
]
}