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)

97 lines 4.72 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.BudgetsAction = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * An example resource schema demonstrating some basic constructs and validation rules. */ class BudgetsAction extends pulumi.CustomResource { /** * Get an existing BudgetsAction 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 BudgetsAction(name, undefined, { ...opts, id: id }); } /** * Returns true if the given object is an instance of BudgetsAction. 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'] === BudgetsAction.__pulumiType; } /** * Create a BudgetsAction 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) { if (args?.actionThreshold === undefined && !opts.urn) { throw new Error("Missing required property 'actionThreshold'"); } if (args?.actionType === undefined && !opts.urn) { throw new Error("Missing required property 'actionType'"); } if (args?.budgetName === undefined && !opts.urn) { throw new Error("Missing required property 'budgetName'"); } if (args?.definition === undefined && !opts.urn) { throw new Error("Missing required property 'definition'"); } if (args?.executionRoleArn === undefined && !opts.urn) { throw new Error("Missing required property 'executionRoleArn'"); } if (args?.notificationType === undefined && !opts.urn) { throw new Error("Missing required property 'notificationType'"); } if (args?.subscribers === undefined && !opts.urn) { throw new Error("Missing required property 'subscribers'"); } resourceInputs["actionThreshold"] = args?.actionThreshold; resourceInputs["actionType"] = args?.actionType; resourceInputs["approvalModel"] = args?.approvalModel; resourceInputs["budgetName"] = args?.budgetName; resourceInputs["definition"] = args?.definition; resourceInputs["executionRoleArn"] = args?.executionRoleArn; resourceInputs["notificationType"] = args?.notificationType; resourceInputs["resourceTags"] = args?.resourceTags; resourceInputs["subscribers"] = args?.subscribers; resourceInputs["actionId"] = undefined /*out*/; } else { resourceInputs["actionId"] = undefined /*out*/; resourceInputs["actionThreshold"] = undefined /*out*/; resourceInputs["actionType"] = undefined /*out*/; resourceInputs["approvalModel"] = undefined /*out*/; resourceInputs["budgetName"] = undefined /*out*/; resourceInputs["definition"] = undefined /*out*/; resourceInputs["executionRoleArn"] = undefined /*out*/; resourceInputs["notificationType"] = undefined /*out*/; resourceInputs["resourceTags"] = undefined /*out*/; resourceInputs["subscribers"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["actionType", "budgetName"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(BudgetsAction.__pulumiType, name, resourceInputs, opts); } } exports.BudgetsAction = BudgetsAction; /** @internal */ BudgetsAction.__pulumiType = 'aws-native:budgets:BudgetsAction'; //# sourceMappingURL=budgetsAction.js.map