Control: GCP > Project > Organization Policy > Retention policy duration in seconds
Manage the GCP Organization Policy "Retention policy duration in seconds" for the project.
This list constraint defines the set of durations for retention policies that can be set on Cloud Storage buckets. By default, if no organization policy is specified, a Cloud Storage bucket can have a retention policy of any duration. The list of allowed durations must be specified as a positive integer value greater than zero, representing the retention policy in seconds.
Any insert, update, or patch operation on a bucket in the organization resource must have a retention policy duration that matches the constraint. Enforcement of this constraint is not retroactive. When a new organization policy is applied, the retention policy of existing buckets remain unchanged and valid.
Resource Types
This control targets the following resource types:
Primary Policies
The following policies can be used to configure this control:
- Retention policy duration in seconds
- Retention policy duration in seconds > Action
- Retention policy duration in seconds > Custom Values
Category
In Your Workspace
Developers
- tmod:@turbot/gcp-orgpolicy#/control/types/storageRetentionPolicySeconds
- tmod:@turbot/turbot#/control/categories/policy
- turbot graphql controls --filter "controlTypeId:tmod:@turbot/gcp-orgpolicy#/control/types/storageRetentionPolicySeconds"
Get Controls