google_access_context_manager_access_level

An AccessLevel is a label that can be applied to requests to GCP services, along with a list of requirements necessary for the label to be applied.

To get more information about AccessLevel, see:

Example Usage - Access Context Manager Access Level Basic

resource "google_access_context_manager_access_level" "access-level" {
  parent = "accessPolicies/${google_access_context_manager_access_policy.access-policy.name}"
  name   = "accessPolicies/${google_access_context_manager_access_policy.access-policy.name}/accessLevels/chromeos_no_lock"
  title  = "chromeos_no_lock"
  basic {
    conditions {
      device_policy {
        require_screen_lock = true
        os_constraints {
          os_type = "DESKTOP_CHROME_OS"
        }
      }
      regions = [
    "CH",
    "IT",
    "US",
      ]
    }
  }
}

resource "google_access_context_manager_access_policy" "access-policy" {
  parent = "organizations/123456789"
  title  = "my policy"
}

Argument Reference

The following arguments are supported:


The basic block supports:

The conditions block supports:

The device_policy block supports:

The os_constraints block supports:

The vpc_network_sources block supports:

The vpc_subnetwork block supports:

The custom block supports:

The expr block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

AccessLevel can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import AccessLevel using one of the formats above. For example:

import {
  id = "{{name}}"
  to = google_access_context_manager_access_level.default
}

When using the terraform import command, AccessLevel can be imported using one of the formats above. For example:

$ terraform import google_access_context_manager_access_level.default {{name}}