Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Mods
GCP
Loading policies...

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

Targets

This policy targets the following resource types:

  • GCP > Project

Primary Policy

This policy is used with the following primary policy:

  • GCP > Project > Organization Policy

Related Policies

  • Action
  • Custom Values

Policy Specification

Schema Type
string
Default
Skip
Valid Values [YAML]
  • Skip
    
  • Check: Inherited
    
  • Check: Google-managed default
    
  • Check: Per Custom Values, effective value
    
  • Check: Per Custom Values, inherited
    
  • Check: Per Custom Values, set on project
    
Examples [YAML]
  • Skip
    

Category

  • Organization > Policy

In Your Workspace

  • Policy Settings by Type report

Developers

    Category URI
    • tmod:@turbot/turbot#/control/categories/policy
  • Policy Type URI
    • tmod:@turbot/gcp-orgpolicy#/policy/types/storageRetentionPolicySeconds
  • GraphQL
    • query policyType(id: "tmod:@turbot/gcp-orgpolicy#/policy/types/storageRetentionPolicySeconds") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/gcp-orgpolicy#/policy/types/storageRetentionPolicySeconds'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/gcp-orgpolicy#/policy/types/storageRetentionPolicySeconds'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/gcp-orgpolicy#/policy/types/storageRetentionPolicySeconds"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-orgpolicy#/policy/types/storageRetentionPolicySeconds"
Guardrails
Guardrails Hub
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of practitioners love to discuss cloud governance & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy
39
Mods
151
Resource Types
2,578
Policies
1,245
Controls
118
Quick Actions
89
IAM