@pulumi/pulumiservice
Version:
66 lines (65 loc) • 2.38 kB
TypeScript
import * as pulumi from "@pulumi/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.
*/
export declare class Stack extends pulumi.CustomResource {
/**
* Get an existing Stack 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): Stack;
/**
* Returns true if the given object is an instance of Stack. 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 Stack;
/**
* Optional. Flag indicating whether to delete the stack even if it still contains resources.
*/
readonly forceDestroy: pulumi.Output<boolean | undefined>;
/**
* The name of the organization.
*/
readonly organizationName: pulumi.Output<string>;
/**
* The name of the project.
*/
readonly projectName: pulumi.Output<string>;
/**
* The name of the stack.
*/
readonly stackName: pulumi.Output<string>;
/**
* Create a Stack 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: StackArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a Stack resource.
*/
export interface StackArgs {
/**
* Optional. Flag indicating whether to delete the stack even if it still contains resources.
*/
forceDestroy?: pulumi.Input<boolean>;
/**
* The name of the organization.
*/
organizationName: pulumi.Input<string>;
/**
* The name of the project.
*/
projectName: pulumi.Input<string>;
/**
* The name of the stack.
*/
stackName: pulumi.Input<string>;
}