DeployPolicyState constructor

const DeployPolicyState({
  1. Input<Map<String, String>?>? annotations,
  2. Input<String?>? createTime,
  3. Input<String?>? deletionPolicy,
  4. Input<String?>? description,
  5. Input<Map<String, String>?>? effectiveAnnotations,
  6. Input<Map<String, String>?>? effectiveLabels,
  7. Input<String?>? etag,
  8. Input<Map<String, String>?>? labels,
  9. Input<String?>? location,
  10. Input<String?>? name,
  11. Input<String?>? project,
  12. Input<Map<String, String>?>? pulumiLabels,
  13. Input<List<DeployPolicyRule>?>? rules,
  14. Input<List<DeployPolicySelector>?>? selectors,
  15. Input<bool?>? suspended,
  16. Input<String?>? uid,
  17. Input<String?>? updateTime,
})

Creates a new DeployPolicyState. annotations User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash (/). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots(.), not longer than 253 characters in total, followed by a slash (/). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details. createTime Output only. Time at which the DeployPolicy was created. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. description Description of the DeployPolicy. Max length is 255 characters. effectiveAnnotations All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services. effectiveLabels All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. etag The weak etag of the DeployPolicy resource. This checksum 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. labels Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters. location The location for the resource name Name of the DeployPolicy. project The ID of the project in which the resource belongs. pulumiLabels The combination of labels configured directly on the resource rules Rules to apply. At least one rule must be present. selectors Selected resources to which the policy will be applied. At least one selector is required. If one selector matches the resource the policy applies. For example, if there are two selectors and the action being attempted matches one of them, the policy will apply to that action. suspended When suspended, the policy will not prevent actions from occurring, even if the action violates the policy. uid Output only. Unique identifier of the DeployPolicy. updateTime Output only. Time at which the DeployPolicy was updated.

Implementation

const DeployPolicyState({
  this.annotations,
  this.createTime,
  this.deletionPolicy,
  this.description,
  this.effectiveAnnotations,
  this.effectiveLabels,
  this.etag,
  this.labels,
  this.location,
  this.name,
  this.project,
  this.pulumiLabels,
  this.rules,
  this.selectors,
  this.suspended,
  this.uid,
  this.updateTime,
});