UNPKG

@pulumi/aws

Version:

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

117 lines (116 loc) 3.73 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Provides details about a specific Amazon Lex Slot Type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const flowerTypes = aws.lex.getSlotType({ * name: "FlowerTypes", * version: "1", * }); * ``` */ export declare function getSlotType(args: GetSlotTypeArgs, opts?: pulumi.InvokeOptions): Promise<GetSlotTypeResult>; /** * A collection of arguments for invoking getSlotType. */ export interface GetSlotTypeArgs { /** * Name of the slot type. The name is case sensitive. */ name: string; /** * 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?: string; /** * Version of the slot type. */ version?: string; } /** * A collection of values returned by getSlotType. */ export interface GetSlotTypeResult { /** * Checksum identifying the version of the slot type that was created. The checksum is * not included as an argument because the resource will add it automatically when updating the slot type. */ readonly checksum: string; /** * Date when the slot type version was created. */ readonly createdDate: string; /** * Description of the slot type. */ readonly description: string; /** * Set of EnumerationValue objects that defines the values that * the slot type can take. Each value can have a set of synonyms, which are additional values that help * train the machine learning model about the values that it resolves for a slot. */ readonly enumerationValues: outputs.lex.GetSlotTypeEnumerationValue[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Date when the $LATEST version of this slot type was updated. */ readonly lastUpdatedDate: string; /** * Name of the slot type. The name is not case sensitive. */ readonly name: string; readonly region: string; /** * Determines the slot resolution strategy that Amazon Lex * uses to return slot type values. `ORIGINAL_VALUE` returns the value entered by the user if the user * value is similar to the slot value. `TOP_RESOLUTION` returns the first value in the resolution list * if there is a resolution list for the slot, otherwise null is returned. */ readonly valueSelectionStrategy: string; /** * Version of the slot type. */ readonly version?: string; } /** * Provides details about a specific Amazon Lex Slot Type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const flowerTypes = aws.lex.getSlotType({ * name: "FlowerTypes", * version: "1", * }); * ``` */ export declare function getSlotTypeOutput(args: GetSlotTypeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSlotTypeResult>; /** * A collection of arguments for invoking getSlotType. */ export interface GetSlotTypeOutputArgs { /** * Name of the slot type. The name is case sensitive. */ name: pulumi.Input<string>; /** * 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<string>; /** * Version of the slot type. */ version?: pulumi.Input<string>; }