1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. PolicyGroup

This provider is currently in preview.

Pulumi Cloud v0.32.0 published on Tuesday, Oct 7, 2025 by Pulumi

pulumiservice.PolicyGroup

Get Started
pulumiservice logo

This provider is currently in preview.

Pulumi Cloud v0.32.0 published on Tuesday, Oct 7, 2025 by Pulumi

    A Policy Group allows you to apply policy packs to a set of stacks in your organization.

    Create PolicyGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PolicyGroup(name: string, args: PolicyGroupArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyGroup(resource_name: str,
                    args: PolicyGroupArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyGroup(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    name: Optional[str] = None,
                    organization_name: Optional[str] = None,
                    policy_packs: Optional[Sequence[Mapping[str, str]]] = None,
                    stacks: Optional[Sequence[Mapping[str, str]]] = None)
    func NewPolicyGroup(ctx *Context, name string, args PolicyGroupArgs, opts ...ResourceOption) (*PolicyGroup, error)
    public PolicyGroup(string name, PolicyGroupArgs args, CustomResourceOptions? opts = null)
    public PolicyGroup(String name, PolicyGroupArgs args)
    public PolicyGroup(String name, PolicyGroupArgs args, CustomResourceOptions options)
    
    type: pulumiservice:PolicyGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PolicyGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PolicyGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PolicyGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var policyGroupResource = new PulumiService.PolicyGroup("policyGroupResource", new()
    {
        Name = "string",
        OrganizationName = "string",
        PolicyPacks = new[]
        {
            
            {
                { "string", "string" },
            },
        },
        Stacks = new[]
        {
            
            {
                { "string", "string" },
            },
        },
    });
    
    example, err := pulumiservice.NewPolicyGroup(ctx, "policyGroupResource", &pulumiservice.PolicyGroupArgs{
    	Name:             pulumi.String("string"),
    	OrganizationName: pulumi.String("string"),
    	PolicyPacks: pulumi.StringMapArray{
    		pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	Stacks: pulumi.StringMapArray{
    		pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    })
    
    var policyGroupResource = new PolicyGroup("policyGroupResource", PolicyGroupArgs.builder()
        .name("string")
        .organizationName("string")
        .policyPacks(Map.of("string", "string"))
        .stacks(Map.of("string", "string"))
        .build());
    
    policy_group_resource = pulumiservice.PolicyGroup("policyGroupResource",
        name="string",
        organization_name="string",
        policy_packs=[{
            "string": "string",
        }],
        stacks=[{
            "string": "string",
        }])
    
    const policyGroupResource = new pulumiservice.PolicyGroup("policyGroupResource", {
        name: "string",
        organizationName: "string",
        policyPacks: [{
            string: "string",
        }],
        stacks: [{
            string: "string",
        }],
    });
    
    type: pulumiservice:PolicyGroup
    properties:
        name: string
        organizationName: string
        policyPacks:
            - string: string
        stacks:
            - string: string
    

    PolicyGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PolicyGroup resource accepts the following input properties:

    Name string
    The name of the policy group.
    OrganizationName string
    The name of the Pulumi organization the policy group belongs to.
    PolicyPacks List<ImmutableDictionary<string, string>>
    List of policy packs applied to this policy group.
    Stacks List<ImmutableDictionary<string, string>>
    List of stack references that belong to this policy group.
    Name string
    The name of the policy group.
    OrganizationName string
    The name of the Pulumi organization the policy group belongs to.
    PolicyPacks []map[string]string
    List of policy packs applied to this policy group.
    Stacks []map[string]string
    List of stack references that belong to this policy group.
    name String
    The name of the policy group.
    organizationName String
    The name of the Pulumi organization the policy group belongs to.
    policyPacks List<Map<String,String>>
    List of policy packs applied to this policy group.
    stacks List<Map<String,String>>
    List of stack references that belong to this policy group.
    name string
    The name of the policy group.
    organizationName string
    The name of the Pulumi organization the policy group belongs to.
    policyPacks {[key: string]: string}[]
    List of policy packs applied to this policy group.
    stacks {[key: string]: string}[]
    List of stack references that belong to this policy group.
    name str
    The name of the policy group.
    organization_name str
    The name of the Pulumi organization the policy group belongs to.
    policy_packs Sequence[Mapping[str, str]]
    List of policy packs applied to this policy group.
    stacks Sequence[Mapping[str, str]]
    List of stack references that belong to this policy group.
    name String
    The name of the policy group.
    organizationName String
    The name of the Pulumi organization the policy group belongs to.
    policyPacks List<Map<String>>
    List of policy packs applied to this policy group.
    stacks List<Map<String>>
    List of stack references that belong to this policy group.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PolicyGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo

    This provider is currently in preview.

    Pulumi Cloud v0.32.0 published on Tuesday, Oct 7, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate