UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

102 lines 5.49 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Stack = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The AWS::CloudFormation::Stack resource nests a stack as a resource in a top-level template. */ 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, id, opts) { return new Stack(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); } /** * 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) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Stack.__pulumiType; } /** * 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, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { resourceInputs["capabilities"] = args ? args.capabilities : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["disableRollback"] = args ? args.disableRollback : undefined; resourceInputs["enableTerminationProtection"] = args ? args.enableTerminationProtection : undefined; resourceInputs["notificationArns"] = args ? args.notificationArns : undefined; resourceInputs["parameters"] = args ? args.parameters : undefined; resourceInputs["roleArn"] = args ? args.roleArn : undefined; resourceInputs["stackName"] = args ? args.stackName : undefined; resourceInputs["stackPolicyBody"] = args ? args.stackPolicyBody : undefined; resourceInputs["stackPolicyUrl"] = args ? args.stackPolicyUrl : undefined; resourceInputs["stackStatusReason"] = args ? args.stackStatusReason : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["templateBody"] = args ? args.templateBody : undefined; resourceInputs["templateUrl"] = args ? args.templateUrl : undefined; resourceInputs["timeoutInMinutes"] = args ? args.timeoutInMinutes : undefined; resourceInputs["changeSetId"] = undefined /*out*/; resourceInputs["creationTime"] = undefined /*out*/; resourceInputs["lastUpdateTime"] = undefined /*out*/; resourceInputs["outputs"] = undefined /*out*/; resourceInputs["parentId"] = undefined /*out*/; resourceInputs["rootId"] = undefined /*out*/; resourceInputs["stackId"] = undefined /*out*/; resourceInputs["stackStatus"] = undefined /*out*/; } else { resourceInputs["capabilities"] = undefined /*out*/; resourceInputs["changeSetId"] = undefined /*out*/; resourceInputs["creationTime"] = undefined /*out*/; resourceInputs["description"] = undefined /*out*/; resourceInputs["disableRollback"] = undefined /*out*/; resourceInputs["enableTerminationProtection"] = undefined /*out*/; resourceInputs["lastUpdateTime"] = undefined /*out*/; resourceInputs["notificationArns"] = undefined /*out*/; resourceInputs["outputs"] = undefined /*out*/; resourceInputs["parameters"] = undefined /*out*/; resourceInputs["parentId"] = undefined /*out*/; resourceInputs["roleArn"] = undefined /*out*/; resourceInputs["rootId"] = undefined /*out*/; resourceInputs["stackId"] = undefined /*out*/; resourceInputs["stackName"] = undefined /*out*/; resourceInputs["stackPolicyBody"] = undefined /*out*/; resourceInputs["stackPolicyUrl"] = undefined /*out*/; resourceInputs["stackStatus"] = undefined /*out*/; resourceInputs["stackStatusReason"] = undefined /*out*/; resourceInputs["tags"] = undefined /*out*/; resourceInputs["templateBody"] = undefined /*out*/; resourceInputs["templateUrl"] = undefined /*out*/; resourceInputs["timeoutInMinutes"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["stackName"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(Stack.__pulumiType, name, resourceInputs, opts); } } exports.Stack = Stack; /** @internal */ Stack.__pulumiType = 'aws-native:cloudformation:Stack'; //# sourceMappingURL=stack.js.map