1. Packages
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. api
  6. PolicyGroupStackAttachment

This provider is currently in preview.

Viewing docs for Pulumi Cloud v1.2.1
published on Thursday, Jun 4, 2026 by Pulumi
pulumiservice logo

This provider is currently in preview.

Viewing docs for Pulumi Cloud v1.2.1
published on Thursday, Jun 4, 2026 by Pulumi

    Manages a single membership edge through UpdatePolicyGroup (addStack / removeStack).

    Create PolicyGroupStackAttachment Resource

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

    Constructor syntax

    new PolicyGroupStackAttachment(name: string, args: PolicyGroupStackAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyGroupStackAttachment(resource_name: str,
                                   args: PolicyGroupStackAttachmentArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyGroupStackAttachment(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   name: Optional[str] = None,
                                   org_name: Optional[str] = None,
                                   policy_group: Optional[str] = None,
                                   routing_project: Optional[str] = None)
    func NewPolicyGroupStackAttachment(ctx *Context, name string, args PolicyGroupStackAttachmentArgs, opts ...ResourceOption) (*PolicyGroupStackAttachment, error)
    public PolicyGroupStackAttachment(string name, PolicyGroupStackAttachmentArgs args, CustomResourceOptions? opts = null)
    public PolicyGroupStackAttachment(String name, PolicyGroupStackAttachmentArgs args)
    public PolicyGroupStackAttachment(String name, PolicyGroupStackAttachmentArgs args, CustomResourceOptions options)
    
    type: pulumiservice:api:PolicyGroupStackAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "pulumiservice_api_policygroupstackattachment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PolicyGroupStackAttachmentArgs
    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 PolicyGroupStackAttachmentArgs
    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 PolicyGroupStackAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyGroupStackAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyGroupStackAttachmentArgs
    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 policyGroupStackAttachmentResource = new PulumiService.Api.PolicyGroupStackAttachment("policyGroupStackAttachmentResource", new()
    {
        Name = "string",
        OrgName = "string",
        PolicyGroup = "string",
        RoutingProject = "string",
    });
    
    example, err := api.NewPolicyGroupStackAttachment(ctx, "policyGroupStackAttachmentResource", &api.PolicyGroupStackAttachmentArgs{
    	Name:           pulumi.String("string"),
    	OrgName:        pulumi.String("string"),
    	PolicyGroup:    pulumi.String("string"),
    	RoutingProject: pulumi.String("string"),
    })
    
    resource "pulumiservice_api_policygroupstackattachment" "policyGroupStackAttachmentResource" {
      name            = "string"
      org_name        = "string"
      policy_group    = "string"
      routing_project = "string"
    }
    
    var policyGroupStackAttachmentResource = new PolicyGroupStackAttachment("policyGroupStackAttachmentResource", PolicyGroupStackAttachmentArgs.builder()
        .name("string")
        .orgName("string")
        .policyGroup("string")
        .routingProject("string")
        .build());
    
    policy_group_stack_attachment_resource = pulumiservice.api.PolicyGroupStackAttachment("policyGroupStackAttachmentResource",
        name="string",
        org_name="string",
        policy_group="string",
        routing_project="string")
    
    const policyGroupStackAttachmentResource = new pulumiservice.api.PolicyGroupStackAttachment("policyGroupStackAttachmentResource", {
        name: "string",
        orgName: "string",
        policyGroup: "string",
        routingProject: "string",
    });
    
    type: pulumiservice:api:PolicyGroupStackAttachment
    properties:
        name: string
        orgName: string
        policyGroup: string
        routingProject: string
    

    PolicyGroupStackAttachment 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 PolicyGroupStackAttachment resource accepts the following input properties:

    Name string
    The name
    OrgName string
    The organization name
    PolicyGroup string
    The policy group name
    RoutingProject string
    The routing project
    Name string
    The name
    OrgName string
    The organization name
    PolicyGroup string
    The policy group name
    RoutingProject string
    The routing project
    name string
    The name
    org_name string
    The organization name
    policy_group string
    The policy group name
    routing_project string
    The routing project
    name String
    The name
    orgName String
    The organization name
    policyGroup String
    The policy group name
    routingProject String
    The routing project
    name string
    The name
    orgName string
    The organization name
    policyGroup string
    The policy group name
    routingProject string
    The routing project
    name str
    The name
    org_name str
    The organization name
    policy_group str
    The policy group name
    routing_project str
    The routing project
    name String
    The name
    orgName String
    The organization name
    policyGroup String
    The policy group name
    routingProject String
    The routing project

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PolicyGroupStackAttachment 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 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.

    Viewing docs for Pulumi Cloud v1.2.1
    published on Thursday, Jun 4, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial