1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. Stack
Pulumi Cloud v0.27.1 published on Thursday, Nov 14, 2024 by Pulumi

pulumiservice.Stack

Explore with Pulumi AI

pulumiservice logo
Pulumi Cloud v0.27.1 published on Thursday, Nov 14, 2024 by Pulumi

    A stack is a collection of resources that share a common lifecycle. Stacks are uniquely identified by their name and the project they belong to.

    Create Stack Resource

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

    Constructor syntax

    new Stack(name: string, args: StackArgs, opts?: CustomResourceOptions);
    @overload
    def Stack(resource_name: str,
              args: StackArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Stack(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              organization_name: Optional[str] = None,
              project_name: Optional[str] = None,
              stack_name: Optional[str] = None,
              force_destroy: Optional[bool] = None)
    func NewStack(ctx *Context, name string, args StackArgs, opts ...ResourceOption) (*Stack, error)
    public Stack(string name, StackArgs args, CustomResourceOptions? opts = null)
    public Stack(String name, StackArgs args)
    public Stack(String name, StackArgs args, CustomResourceOptions options)
    
    type: pulumiservice:Stack
    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 StackArgs
    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 StackArgs
    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 StackArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StackArgs
    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 stackResource = new PulumiService.Stack("stackResource", new()
    {
        OrganizationName = "string",
        ProjectName = "string",
        StackName = "string",
        ForceDestroy = false,
    });
    
    example, err := pulumiservice.NewStack(ctx, "stackResource", &pulumiservice.StackArgs{
    	OrganizationName: pulumi.String("string"),
    	ProjectName:      pulumi.String("string"),
    	StackName:        pulumi.String("string"),
    	ForceDestroy:     pulumi.Bool(false),
    })
    
    var stackResource = new Stack("stackResource", StackArgs.builder()
        .organizationName("string")
        .projectName("string")
        .stackName("string")
        .forceDestroy(false)
        .build());
    
    stack_resource = pulumiservice.Stack("stackResource",
        organization_name="string",
        project_name="string",
        stack_name="string",
        force_destroy=False)
    
    const stackResource = new pulumiservice.Stack("stackResource", {
        organizationName: "string",
        projectName: "string",
        stackName: "string",
        forceDestroy: false,
    });
    
    type: pulumiservice:Stack
    properties:
        forceDestroy: false
        organizationName: string
        projectName: string
        stackName: string
    

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

    OrganizationName string
    The name of the organization.
    ProjectName string
    The name of the project.
    StackName string
    The name of the stack.
    ForceDestroy bool
    Optional. Flag indicating whether to delete the stack even if it still contains resources.
    OrganizationName string
    The name of the organization.
    ProjectName string
    The name of the project.
    StackName string
    The name of the stack.
    ForceDestroy bool
    Optional. Flag indicating whether to delete the stack even if it still contains resources.
    organizationName String
    The name of the organization.
    projectName String
    The name of the project.
    stackName String
    The name of the stack.
    forceDestroy Boolean
    Optional. Flag indicating whether to delete the stack even if it still contains resources.
    organizationName string
    The name of the organization.
    projectName string
    The name of the project.
    stackName string
    The name of the stack.
    forceDestroy boolean
    Optional. Flag indicating whether to delete the stack even if it still contains resources.
    organization_name str
    The name of the organization.
    project_name str
    The name of the project.
    stack_name str
    The name of the stack.
    force_destroy bool
    Optional. Flag indicating whether to delete the stack even if it still contains resources.
    organizationName String
    The name of the organization.
    projectName String
    The name of the project.
    stackName String
    The name of the stack.
    forceDestroy Boolean
    Optional. Flag indicating whether to delete the stack even if it still contains resources.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Stack 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
    Pulumi Cloud v0.27.1 published on Thursday, Nov 14, 2024 by Pulumi