/**
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

variable "automation" {
  # tfdoc:variable:source 0-org-setup
  description = "Automation resources created by the bootstrap stage."
  type = object({
    outputs_bucket = string
  })
  nullable = false
}

variable "billing_account" {
  # tfdoc:variable:source 0-org-setup
  description = "Billing account id. If billing account is not part of the same org set `is_org_level` to false."
  type = object({
    id = optional(string)
  })
  default = {}
}

variable "custom_roles" {
  # tfdoc:variable:source 0-org-setup
  description = "Custom roles defined at the org level, in key => id format."
  type        = map(string)
  nullable    = false
  default     = {}
}

variable "folder_ids" {
  # tfdoc:variable:source 0-org-setup
  description = "Folders created in the bootstrap stage."
  type        = map(string)
  nullable    = false
  default     = {}
}

variable "iam_principals" {
  # tfdoc:variable:source 0-org-setup
  description = "IAM-format principals."
  type        = map(string)
  nullable    = false
  default     = {}
}

variable "kms_keys" {
  # tfdoc:variable:source 2-security
  description = "KMS key ids."
  type        = map(string)
  nullable    = false
  default     = {}
}

variable "prefix" {
  # tfdoc:variable:source 0-org-setup
  description = "Prefix for organization projects."
  type        = string
  nullable    = false
}

variable "project_ids" {
  # tfdoc:variable:source 0-org-setup
  description = "Projects created in the bootstrap stage."
  type        = map(string)
  nullable    = false
  default     = {}
}
