UNPKG

@pulumi/aws

Version:

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

107 lines 5.48 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.V2modelsIntent = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Import * * Using `pulumi import`, import Lex V2 Models Intent using the `intent_id:bot_id:bot_version:locale_id`. For example: * * ```sh * $ pulumi import aws:lex/v2modelsIntent:V2modelsIntent example intent-42874:bot-11376:DRAFT:en_US * ``` */ class V2modelsIntent extends pulumi.CustomResource { /** * Get an existing V2modelsIntent 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 V2modelsIntent(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of V2modelsIntent. 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'] === V2modelsIntent.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["botId"] = state?.botId; resourceInputs["botVersion"] = state?.botVersion; resourceInputs["closingSetting"] = state?.closingSetting; resourceInputs["confirmationSetting"] = state?.confirmationSetting; resourceInputs["creationDateTime"] = state?.creationDateTime; resourceInputs["description"] = state?.description; resourceInputs["dialogCodeHook"] = state?.dialogCodeHook; resourceInputs["fulfillmentCodeHook"] = state?.fulfillmentCodeHook; resourceInputs["initialResponseSetting"] = state?.initialResponseSetting; resourceInputs["inputContexts"] = state?.inputContexts; resourceInputs["intentId"] = state?.intentId; resourceInputs["kendraConfiguration"] = state?.kendraConfiguration; resourceInputs["lastUpdatedDateTime"] = state?.lastUpdatedDateTime; resourceInputs["localeId"] = state?.localeId; resourceInputs["name"] = state?.name; resourceInputs["outputContexts"] = state?.outputContexts; resourceInputs["parentIntentSignature"] = state?.parentIntentSignature; resourceInputs["region"] = state?.region; resourceInputs["sampleUtterances"] = state?.sampleUtterances; resourceInputs["slotPriorities"] = state?.slotPriorities; resourceInputs["timeouts"] = state?.timeouts; } 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?.localeId === undefined && !opts.urn) { throw new Error("Missing required property 'localeId'"); } resourceInputs["botId"] = args?.botId; resourceInputs["botVersion"] = args?.botVersion; resourceInputs["closingSetting"] = args?.closingSetting; resourceInputs["confirmationSetting"] = args?.confirmationSetting; resourceInputs["description"] = args?.description; resourceInputs["dialogCodeHook"] = args?.dialogCodeHook; resourceInputs["fulfillmentCodeHook"] = args?.fulfillmentCodeHook; resourceInputs["initialResponseSetting"] = args?.initialResponseSetting; resourceInputs["inputContexts"] = args?.inputContexts; resourceInputs["kendraConfiguration"] = args?.kendraConfiguration; resourceInputs["localeId"] = args?.localeId; resourceInputs["name"] = args?.name; resourceInputs["outputContexts"] = args?.outputContexts; resourceInputs["parentIntentSignature"] = args?.parentIntentSignature; resourceInputs["region"] = args?.region; resourceInputs["sampleUtterances"] = args?.sampleUtterances; resourceInputs["slotPriorities"] = args?.slotPriorities; resourceInputs["timeouts"] = args?.timeouts; resourceInputs["creationDateTime"] = undefined /*out*/; resourceInputs["intentId"] = undefined /*out*/; resourceInputs["lastUpdatedDateTime"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(V2modelsIntent.__pulumiType, name, resourceInputs, opts); } } exports.V2modelsIntent = V2modelsIntent; /** @internal */ V2modelsIntent.__pulumiType = 'aws:lex/v2modelsIntent:V2modelsIntent'; //# sourceMappingURL=v2modelsIntent.js.map