# Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. variable "project_id" { description = "Project that contains the bucket and the key. Also the source of logs when org_id is empty." type = string } variable "org_id" { description = "Numeric organization ID. When set, the sink covers every project in the organization. Needs roles/logging.configWriter at organization level." type = string default = "" } variable "name" { description = "Base name for the sink, bucket, and key." type = string default = "audit-log-immutable" validation { condition = can(regex("^[a-z0-9-]{3,30}$", var.name)) error_message = "name must be 3-30 characters of lowercase letters, digits, or hyphens." } } variable "location" { description = "Bucket location, either a multi-region such as US or a region such as us-east1. The key is created in the matching location." type = string default = "US" } variable "retention_days" { description = "Nothing in the bucket can be deleted or replaced until it is this old." type = number default = 400 validation { condition = var.retention_days >= 90 error_message = "retention_days must be 90 or more." } } variable "lock_retention" { description = "Lock the retention policy. A locked policy can never be removed or shortened, only lengthened, and the bucket cannot be deleted until every object has aged past it. Leave false until the period is agreed." type = bool default = false } variable "owner" { description = "Label contract: accountable team. Lowercase, because Google Cloud labels must be." type = string default = "security-engineering" validation { condition = can(regex("^[a-z0-9_-]{1,63}$", var.owner)) error_message = "Label values must be lowercase letters, digits, underscores, or hyphens." } } variable "environment" { description = "Label contract: environment." type = string default = "prod" } variable "extra_labels" { description = "Additional labels merged over the contract." type = map(string) default = {} }