OrganizationPolicyArgs

data class OrganizationPolicyArgs(val alternate: Output<GoogleCloudOrgpolicyV2AlternatePolicySpecArgs>? = null, val dryRunSpec: Output<GoogleCloudOrgpolicyV2PolicySpecArgs>? = null, val name: Output<String>? = null, val organizationId: Output<String>? = null, val spec: Output<GoogleCloudOrgpolicyV2PolicySpecArgs>? = null) : ConvertibleToJava<OrganizationPolicyArgs>

Creates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the policy already exists on the given Google Cloud resource. Auto-naming is currently not supported for this resource.

Constructors

Link copied to clipboard
fun OrganizationPolicyArgs(alternate: Output<GoogleCloudOrgpolicyV2AlternatePolicySpecArgs>? = null, dryRunSpec: Output<GoogleCloudOrgpolicyV2PolicySpecArgs>? = null, name: Output<String>? = null, organizationId: Output<String>? = null, spec: Output<GoogleCloudOrgpolicyV2PolicySpecArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): OrganizationPolicyArgs

Properties

Link copied to clipboard
Link copied to clipboard

Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced.

Link copied to clipboard
val name: Output<String>? = null

Immutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: * projects/{project_number}/policies/{constraint_name} * folders/{folder_id}/policies/{constraint_name} * organizations/{organization_id}/policies/{constraint_name} For example, "projects/123/policies/compute.disableSerialPortAccess". Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.

Link copied to clipboard
val organizationId: Output<String>? = null
Link copied to clipboard

Basic information about the Organization Policy.