UNPKG

@pulumi/pulumiservice

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fpulumiservice.svg)](https://www.npmjs.com/package/@pulumi/pulumiservice) [![Python version](https://badge.fury.io

86 lines 3.58 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates a new Policy Group for an organization. Policy Groups define which Policy Packs are enforced on which stacks or cloud accounts, with configurable enforcement levels (advisory, mandatory, or disabled) per pack. This allows different policy strictness for different environments, such as advisory-only in development and mandatory in production. */ export declare class PolicyGroup extends pulumi.CustomResource { /** * Get an existing PolicyGroup resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): PolicyGroup; /** * Returns true if the given object is an instance of PolicyGroup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is PolicyGroup; /** * List of Insights account names that are members of this policy group. */ readonly accounts: pulumi.Output<string[]>; /** * Agent pool ID for audit policy evaluation. Defaults to Pulumi hosted pool if not specified. */ readonly agentPoolId: pulumi.Output<string | undefined>; /** * List of policy packs that are applied to this policy group. */ readonly appliedPolicyPacks: pulumi.Output<any[]>; /** * The type of entities this policy group applies to (stacks or accounts). */ readonly entityType: pulumi.Output<string>; /** * True if this is either the default stacks or default accounts policy group for the organization. */ readonly isOrgDefault: pulumi.Output<boolean>; /** * The enforcement mode for the policy group (audit or preventative). */ readonly mode: pulumi.Output<string>; /** * The name of the policy group. */ readonly name: pulumi.Output<string>; /** * List of stacks that are members of this policy group. */ readonly stacks: pulumi.Output<any[]>; /** * Create a PolicyGroup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: PolicyGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a PolicyGroup resource. */ export interface PolicyGroupArgs { /** * Agent pool ID for policy evaluation. Defaults to Pulumi hosted pool if not specified. */ agentPoolId?: pulumi.Input<string | undefined>; /** * The type of entities this policy group applies to (stacks or accounts). */ entityType: pulumi.Input<string>; /** * The enforcement mode for the policy group (audit or preventative). Defaults to 'audit' for account policy groups, 'preventative' for stack policy groups. */ mode?: pulumi.Input<string | undefined>; /** * The name of the new policy group. */ name: pulumi.Input<string>; /** * The organization name */ orgName: pulumi.Input<string>; } //# sourceMappingURL=policyGroup.d.ts.map