Skip to main content
Pulumi logo Pulumi logo
  1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. NewPolicyGroupRequest

NewPolicyGroupRequest

    NewPolicyGroupRequest is the request struct to create a new Policy Group.

    Properties

    • name string required
      The name of the new policy group. Up to 100 characters, made up of letters, numbers, hyphens, underscores, periods, or spaces, and may not begin or end with a space.
    • entityType enum optional
      Deprecated: a legacy label, stacks or accounts. When mode is omitted it picks the mode (accounts → audit, stacks → preventative). When this is omitted, it is derived from mode. It does not restrict which entities the group can hold.
      Values: stacks, accounts
    • mode enum optional
      The enforcement mode for the policy group (audit or preventative). The mode decides what the group can hold: an audit group holds stacks and Insights accounts, a preventative group holds stacks only. Required unless the deprecated entityType is sent. Fixed at creation; it cannot be changed later.
      Values: audit, preventative
    • agentPoolId string optional
      Agent pool ID for policy evaluation. Defaults to Pulumi hosted pool if not specified.

      The infrastructure as code platform for any cloud.