PolicyState class
Input properties used for looking up and filtering Policy resources.
Constructors
-
PolicyState({Input<
String?> ? deletionPolicy, Input<PolicyDryRunSpec?> ? dryRunSpec, Input<String?> ? etag, Input<String?> ? name, Input<String?> ? parent, Input<PolicySpec?> ? spec}) -
Creates a new PolicyState.
deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.dryRunSpecDry-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.etagOptional. An opaque tag indicating the current state of the policy, used for concurrency control. This 'etag' is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.nameImmutable. The resource name of the Policy. Must be one of the following forms, where constraintName 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.parentThe parent of the resource.specBasic information about the Organization Policy.const -
PolicyState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
dryRunSpec
→ Input<
PolicyDryRunSpec?> ? -
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.
Structure is documented below.
final
-
etag
→ Input<
String?> ? -
Optional. An opaque tag indicating the current state of the policy, used for concurrency control. This 'etag' is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
name
→ Input<
String?> ? -
Immutable. The resource name of the Policy. Must be one of the following forms, where constraintName 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.final -
parent
→ Input<
String?> ? -
The parent of the resource.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spec
→ Input<
PolicySpec?> ? -
Basic information about the Organization Policy.
Structure is documented below.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited