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 Type. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.lex.V2modelsBot("example", { * dataPrivacies: [{ * childDirected: true, * }], * name: "example", * idleSessionTtlInSeconds: 60, * roleArn: exampleAwsIamRole.arn, * }); * const exampleV2modelsBotLocale = new aws.lex.V2modelsBotLocale("example", { * localeId: "en_US", * botId: example.id, * botVersion: "DRAFT", * nLuIntentConfidenceThreshold: 0.7, * }); * const exampleV2modelsBotVersion = new aws.lex.V2modelsBotVersion("example", { * botId: example.id, * localeSpecification: exampleV2modelsBotLocale.localeId.apply(localeId => { * [localeId]: { * sourceBotVersion: "DRAFT", * }, * }), * }); * const exampleV2modelsSlotType = new aws.lex.V2modelsSlotType("example", { * botId: example.id, * botVersion: exampleV2modelsBotLocale.botVersion, * name: "example", * localeId: exampleV2modelsBotLocale.localeId, * }); * ``` * * ### valueSelectionSetting Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.lex.V2modelsSlotType("example", { * valueSelectionSetting: { * advancedRecognitionSettings: [{ * audioRecognitionStrategy: "UseSlotValuesAsCustomVocabulary", * }], * resolutionStrategy: "OriginalValue", * }, * slotTypeValues: [{ * sampleValues: [{ * value: "exampleValue", * }], * }], * botId: exampleAwsLexv2modelsBot.id, * botVersion: exampleAwsLexv2modelsBotLocale.botVersion, * name: "example", * localeId: exampleAwsLexv2modelsBotLocale.localeId, * }); * ``` * * ## Import * * Using `pulumi import`, import Lex V2 Models Slot Type using using a comma-delimited string concatenating `botId`, `botVersion`, `localeId`, and `slotTypeId`. For example: * * ```sh * $ pulumi import aws:lex/v2modelsSlotType:V2modelsSlotType example bot-1234,DRAFT,en_US,slot_type-id-12345678 * ``` */ export declare class V2modelsSlotType extends pulumi.CustomResource { /** * Get an existing V2modelsSlotType 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?: V2modelsSlotTypeState, opts?: pulumi.CustomResourceOptions): V2modelsSlotType; /** * Returns true if the given object is an instance of V2modelsSlotType. 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 V2modelsSlotType; /** * Identifier of the bot associated with this slot type. */ readonly botId: pulumi.Output; /** * Version of the bot associated with this slot type. */ readonly botVersion: pulumi.Output; /** * Specifications for a composite slot type. * See `compositeSlotTypeSetting` argument reference below. */ readonly compositeSlotTypeSettings: pulumi.Output; /** * Description of the slot type. */ readonly description: pulumi.Output; /** * Type of external information used to create the slot type. * See `externalSourceSetting` argument reference below. */ readonly externalSourceSettings: pulumi.Output; /** * Identifier of the language and locale where this slot type is used. * All of the bots, slot types, and slots used by the intent must have the same locale. */ readonly localeId: pulumi.Output; /** * Name of the slot type. * * The following arguments are optional: */ readonly name: pulumi.Output; /** * Built-in slot type used as a parent of this slot type. * When you define a parent slot type, the new slot type has the configuration of the parent slot type. * Only `AMAZON.AlphaNumeric` is supported. */ readonly parentSlotTypeSignature: 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 for the slot type. */ readonly slotTypeId: pulumi.Output; /** * List of SlotTypeValue objects that defines the values that the slot type can take. * Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. * See `slotTypeValues` argument reference below. */ readonly slotTypeValues: pulumi.Output; readonly timeouts: pulumi.Output; /** * Determines the strategy that Amazon Lex uses to select a value from the list of possible values. * See `valueSelectionSetting` argument reference below. */ readonly valueSelectionSetting: pulumi.Output; /** * Create a V2modelsSlotType 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: V2modelsSlotTypeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering V2modelsSlotType resources. */ export interface V2modelsSlotTypeState { /** * Identifier of the bot associated with this slot type. */ botId?: pulumi.Input; /** * Version of the bot associated with this slot type. */ botVersion?: pulumi.Input; /** * Specifications for a composite slot type. * See `compositeSlotTypeSetting` argument reference below. */ compositeSlotTypeSettings?: pulumi.Input[] | undefined>; /** * Description of the slot type. */ description?: pulumi.Input; /** * Type of external information used to create the slot type. * See `externalSourceSetting` argument reference below. */ externalSourceSettings?: pulumi.Input[] | undefined>; /** * Identifier of the language and locale where this slot type is used. * All of the bots, slot types, and slots used by the intent must have the same locale. */ localeId?: pulumi.Input; /** * Name of the slot type. * * The following arguments are optional: */ name?: pulumi.Input; /** * Built-in slot type used as a parent of this slot type. * When you define a parent slot type, the new slot type has the configuration of the parent slot type. * Only `AMAZON.AlphaNumeric` is supported. */ parentSlotTypeSignature?: pulumi.Input; /** * 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. */ slotTypeId?: pulumi.Input; /** * List of SlotTypeValue objects that defines the values that the slot type can take. * Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. * See `slotTypeValues` argument reference below. */ slotTypeValues?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; /** * Determines the strategy that Amazon Lex uses to select a value from the list of possible values. * See `valueSelectionSetting` argument reference below. */ valueSelectionSetting?: pulumi.Input; } /** * The set of arguments for constructing a V2modelsSlotType resource. */ export interface V2modelsSlotTypeArgs { /** * Identifier of the bot associated with this slot type. */ botId: pulumi.Input; /** * Version of the bot associated with this slot type. */ botVersion: pulumi.Input; /** * Specifications for a composite slot type. * See `compositeSlotTypeSetting` argument reference below. */ compositeSlotTypeSettings?: pulumi.Input[] | undefined>; /** * Description of the slot type. */ description?: pulumi.Input; /** * Type of external information used to create the slot type. * See `externalSourceSetting` argument reference below. */ externalSourceSettings?: pulumi.Input[] | undefined>; /** * Identifier of the language and locale where this slot type is used. * All of the bots, slot types, and slots used by the intent must have the same locale. */ localeId: pulumi.Input; /** * Name of the slot type. * * The following arguments are optional: */ name?: pulumi.Input; /** * Built-in slot type used as a parent of this slot type. * When you define a parent slot type, the new slot type has the configuration of the parent slot type. * Only `AMAZON.AlphaNumeric` is supported. */ parentSlotTypeSignature?: pulumi.Input; /** * 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; /** * List of SlotTypeValue objects that defines the values that the slot type can take. * Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. * See `slotTypeValues` argument reference below. */ slotTypeValues?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; /** * Determines the strategy that Amazon Lex uses to select a value from the list of possible values. * See `valueSelectionSetting` argument reference below. */ valueSelectionSetting?: pulumi.Input; } //# sourceMappingURL=v2modelsSlotType.d.ts.map