Skip to content

googleFolderOrganizationPolicy

Allows management of Organization policies for a Google Folder. For more information see the official documentation

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleFolderOrganizationPolicyPolicy =
  new google.dataGoogleFolderOrganizationPolicy.DataGoogleFolderOrganizationPolicy(
    this,
    "policy",
    {
      constraint: "constraints/compute.trustedImageProjects",
      folder: "folders/folderid",
    }
  );
new cdktf.TerraformOutput(this, "version", {
  value: dataGoogleFolderOrganizationPolicyPolicy.version,
});

Argument Reference

The following arguments are supported:

  • folder - (Required) The resource name of the folder to set the policy for. Its format is folders/{folder_id}.

  • constraint - (Required) (Required) The name of the Constraint the Policy is configuring, for example, serviceuserServices. Check out the complete list of available constraints.

Attributes Reference

See google_folder_organization_policy resource for details of the available attributes.