import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing an AWS Lex V2 Models Slot. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.lex.V2modelsSlot("example", { * botId: exampleAwsLexv2modelsBot.id, * botVersion: exampleAwsLexv2modelsBotVersion.botVersion, * intentId: exampleAwsLexv2modelsIntent.id, * localeId: exampleAwsLexv2modelsBotLocale.localeId, * name: "example", * }); * ``` * * ### `valueElicitationSetting` Example * * > When using `valueElicitationSetting`, if you do not provide a `promptAttemptsSpecification`, AWS Lex will configure default `promptAttemptsSpecification`s. * As a result, Terraform will report a difference in the configuration. * To avoid this behavior, include `promptAttemptsSpecification` blocks matching the default configuration, as shown below. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.lex.V2modelsSlot("example", { * valueElicitationSetting: { * promptSpecification: { * messageGroups: [{ * message: { * plainTextMessage: { * value: "What is your favorite color?", * }, * }, * }], * promptAttemptsSpecifications: [ * { * allowedInputTypes: { * allowAudioInput: true, * allowDtmfInput: true, * }, * audioAndDtmfInputSpecification: { * audioSpecification: { * endTimeoutMs: 640, * maxLengthMs: 15000, * }, * dtmfSpecification: { * deletionCharacter: "*", * endCharacter: "#", * endTimeoutMs: 5000, * maxLength: 513, * }, * startTimeoutMs: 4000, * }, * textInputSpecification: { * startTimeoutMs: 30000, * }, * allowInterrupt: true, * mapBlockKey: "Initial", * }, * { * allowedInputTypes: { * allowAudioInput: true, * allowDtmfInput: true, * }, * audioAndDtmfInputSpecification: { * audioSpecification: { * endTimeoutMs: 640, * maxLengthMs: 15000, * }, * dtmfSpecification: { * deletionCharacter: "*", * endCharacter: "#", * endTimeoutMs: 5000, * maxLength: 513, * }, * startTimeoutMs: 4000, * }, * textInputSpecification: { * startTimeoutMs: 30000, * }, * allowInterrupt: true, * mapBlockKey: "Retry1", * }, * ], * allowInterrupt: true, * maxRetries: 1, * messageSelectionStrategy: "Random", * }, * slotConstraint: "Required", * }, * botId: test.id, * botVersion: testAwsLexv2modelsBotLocale.botVersion, * intentId: testAwsLexv2modelsIntent.intentId, * localeId: testAwsLexv2modelsBotLocale.localeId, * name: "example", * }); * ``` * * ## 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 * ``` */ export declare 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: string, id: pulumi.Input, state?: V2modelsSlotState, opts?: pulumi.CustomResourceOptions): V2modelsSlot; /** * 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: any): obj is V2modelsSlot; /** * Identifier of the bot associated with the slot. */ readonly botId: pulumi.Output; /** * Version of the bot associated with the slot. */ readonly botVersion: pulumi.Output; /** * Description of the slot. */ readonly description: pulumi.Output; /** * Identifier of the intent that contains the slot. */ readonly intentId: pulumi.Output; /** * Identifier of the language and locale that the slot will be used in. */ readonly localeId: pulumi.Output; /** * Whether the slot returns multiple values in one response. * See the `multipleValuesSetting` argument reference below. */ readonly multipleValuesSettings: pulumi.Output; /** * Name of the slot. */ readonly name: pulumi.Output; /** * Determines how slot values are used in Amazon CloudWatch logs. * See the `obfuscationSetting` argument reference below. */ readonly obfuscationSettings: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Unique identifier associated with the slot. */ readonly slotId: pulumi.Output; /** * Unique identifier for the slot type associated with this slot. */ readonly slotTypeId: pulumi.Output; /** * Specifications for the constituent sub slots and the expression for the composite slot. * See the `subSlotSetting` argument reference below. */ readonly subSlotSettings: pulumi.Output; readonly timeouts: pulumi.Output; /** * Prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot. * If you configure this block without `prompt_specification.*.prompt_attempts_specification`, AWS will provide default `promptAttemptsSpecification` blocks for the initial prompt (map key `Initial`) and each retry attempt (map keys `Retry1`, `Retry2`, etc.). * This will cause Terraform to report differences. * Use the `valueElicitationSetting` configuration above in the `valueElicitationSetting` example to avoid differences resulting from AWS default configurations. * See the `valueElicitationSetting` argument reference below. * * The following arguments are optional: */ readonly valueElicitationSetting: pulumi.Output; /** * Create a V2modelsSlot 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: V2modelsSlotArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering V2modelsSlot resources. */ export interface V2modelsSlotState { /** * Identifier of the bot associated with the slot. */ botId?: pulumi.Input; /** * Version of the bot associated with the slot. */ botVersion?: pulumi.Input; /** * Description of the slot. */ description?: pulumi.Input; /** * Identifier of the intent that contains the slot. */ intentId?: pulumi.Input; /** * Identifier of the language and locale that the slot will be used in. */ localeId?: pulumi.Input; /** * Whether the slot returns multiple values in one response. * See the `multipleValuesSetting` argument reference below. */ multipleValuesSettings?: pulumi.Input[] | undefined>; /** * Name of the slot. */ name?: pulumi.Input; /** * Determines how slot values are used in Amazon CloudWatch logs. * See the `obfuscationSetting` argument reference below. */ obfuscationSettings?: pulumi.Input[] | undefined>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Unique identifier associated with the slot. */ slotId?: pulumi.Input; /** * Unique identifier for the slot type associated with this slot. */ slotTypeId?: pulumi.Input; /** * Specifications for the constituent sub slots and the expression for the composite slot. * See the `subSlotSetting` argument reference below. */ subSlotSettings?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; /** * Prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot. * If you configure this block without `prompt_specification.*.prompt_attempts_specification`, AWS will provide default `promptAttemptsSpecification` blocks for the initial prompt (map key `Initial`) and each retry attempt (map keys `Retry1`, `Retry2`, etc.). * This will cause Terraform to report differences. * Use the `valueElicitationSetting` configuration above in the `valueElicitationSetting` example to avoid differences resulting from AWS default configurations. * See the `valueElicitationSetting` argument reference below. * * The following arguments are optional: */ valueElicitationSetting?: pulumi.Input; } /** * The set of arguments for constructing a V2modelsSlot resource. */ export interface V2modelsSlotArgs { /** * Identifier of the bot associated with the slot. */ botId: pulumi.Input; /** * Version of the bot associated with the slot. */ botVersion: pulumi.Input; /** * Description of the slot. */ description?: pulumi.Input; /** * Identifier of the intent that contains the slot. */ intentId: pulumi.Input; /** * Identifier of the language and locale that the slot will be used in. */ localeId: pulumi.Input; /** * Whether the slot returns multiple values in one response. * See the `multipleValuesSetting` argument reference below. */ multipleValuesSettings?: pulumi.Input[] | undefined>; /** * Name of the slot. */ name?: pulumi.Input; /** * Determines how slot values are used in Amazon CloudWatch logs. * See the `obfuscationSetting` argument reference below. */ obfuscationSettings?: pulumi.Input[] | undefined>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Unique identifier for the slot type associated with this slot. */ slotTypeId?: pulumi.Input; /** * Specifications for the constituent sub slots and the expression for the composite slot. * See the `subSlotSetting` argument reference below. */ subSlotSettings?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; /** * Prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot. * If you configure this block without `prompt_specification.*.prompt_attempts_specification`, AWS will provide default `promptAttemptsSpecification` blocks for the initial prompt (map key `Initial`) and each retry attempt (map keys `Retry1`, `Retry2`, etc.). * This will cause Terraform to report differences. * Use the `valueElicitationSetting` configuration above in the `valueElicitationSetting` example to avoid differences resulting from AWS default configurations. * See the `valueElicitationSetting` argument reference below. * * The following arguments are optional: */ valueElicitationSetting: pulumi.Input; } //# sourceMappingURL=v2modelsSlot.d.ts.map