UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

96 lines 4.5 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.V2modelsSlot = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Import * * Using `pulumi import`, import Lex V2 Models Slot using the `id`. For example: * * ```sh * $ pulumi import aws:lex/v2modelsSlot:V2modelsSlot example bot-1234,1,intent-5678,en-US,slot-9012 * ``` */ class V2modelsSlot extends pulumi.CustomResource { /** * Get an existing V2modelsSlot 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new V2modelsSlot(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of V2modelsSlot. 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'] === V2modelsSlot.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["botId"] = state?.botId; resourceInputs["botVersion"] = state?.botVersion; resourceInputs["description"] = state?.description; resourceInputs["intentId"] = state?.intentId; resourceInputs["localeId"] = state?.localeId; resourceInputs["multipleValuesSettings"] = state?.multipleValuesSettings; resourceInputs["name"] = state?.name; resourceInputs["obfuscationSettings"] = state?.obfuscationSettings; resourceInputs["region"] = state?.region; resourceInputs["slotId"] = state?.slotId; resourceInputs["slotTypeId"] = state?.slotTypeId; resourceInputs["subSlotSettings"] = state?.subSlotSettings; resourceInputs["timeouts"] = state?.timeouts; resourceInputs["valueElicitationSetting"] = state?.valueElicitationSetting; } else { const args = argsOrState; if (args?.botId === undefined && !opts.urn) { throw new Error("Missing required property 'botId'"); } if (args?.botVersion === undefined && !opts.urn) { throw new Error("Missing required property 'botVersion'"); } if (args?.intentId === undefined && !opts.urn) { throw new Error("Missing required property 'intentId'"); } if (args?.localeId === undefined && !opts.urn) { throw new Error("Missing required property 'localeId'"); } resourceInputs["botId"] = args?.botId; resourceInputs["botVersion"] = args?.botVersion; resourceInputs["description"] = args?.description; resourceInputs["intentId"] = args?.intentId; resourceInputs["localeId"] = args?.localeId; resourceInputs["multipleValuesSettings"] = args?.multipleValuesSettings; resourceInputs["name"] = args?.name; resourceInputs["obfuscationSettings"] = args?.obfuscationSettings; resourceInputs["region"] = args?.region; resourceInputs["slotTypeId"] = args?.slotTypeId; resourceInputs["subSlotSettings"] = args?.subSlotSettings; resourceInputs["timeouts"] = args?.timeouts; resourceInputs["valueElicitationSetting"] = args?.valueElicitationSetting; resourceInputs["slotId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(V2modelsSlot.__pulumiType, name, resourceInputs, opts); } } exports.V2modelsSlot = V2modelsSlot; /** @internal */ V2modelsSlot.__pulumiType = 'aws:lex/v2modelsSlot:V2modelsSlot'; //# sourceMappingURL=v2modelsSlot.js.map