UNPKG

@pulumi/aws

Version:

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

140 lines (139 loc) 6.12 kB
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 Bot Version. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = new aws.lex.V2modelsBotVersion("test", { * botId: testAwsLexv2modelsBot.id, * localeSpecification: { * en_US: { * sourceBotVersion: "DRAFT", * }, * }, * }); * ``` * * ## Import * * Using `pulumi import`, import Lex V2 Models Bot Version using the `id`. For example: * * ```sh * $ pulumi import aws:lex/v2modelsBotVersion:V2modelsBotVersion example id-12345678,1 * ``` */ export declare class V2modelsBotVersion extends pulumi.CustomResource { /** * Get an existing V2modelsBotVersion 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<pulumi.ID>, state?: V2modelsBotVersionState, opts?: pulumi.CustomResourceOptions): V2modelsBotVersion; /** * Returns true if the given object is an instance of V2modelsBotVersion. 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 V2modelsBotVersion; /** * Idientifier of the bot to create the version for. */ readonly botId: pulumi.Output<string>; /** * Version number assigned to the version. */ readonly botVersion: pulumi.Output<string>; /** * A description of the version. Use the description to help identify the version in lists. * * `sourceBotVersion` - (Required) The version of a bot used for a bot locale. Valid values: `DRAFT`, a numeric version. */ readonly description: pulumi.Output<string | undefined>; /** * Specifies the locales that Amazon Lex adds to this version. You can choose the draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version. */ readonly localeSpecification: pulumi.Output<{ [key: string]: outputs.lex.V2modelsBotVersionLocaleSpecification; }>; /** * 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<string>; readonly timeouts: pulumi.Output<outputs.lex.V2modelsBotVersionTimeouts | undefined>; /** * Create a V2modelsBotVersion 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: V2modelsBotVersionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering V2modelsBotVersion resources. */ export interface V2modelsBotVersionState { /** * Idientifier of the bot to create the version for. */ botId?: pulumi.Input<string>; /** * Version number assigned to the version. */ botVersion?: pulumi.Input<string>; /** * A description of the version. Use the description to help identify the version in lists. * * `sourceBotVersion` - (Required) The version of a bot used for a bot locale. Valid values: `DRAFT`, a numeric version. */ description?: pulumi.Input<string>; /** * Specifies the locales that Amazon Lex adds to this version. You can choose the draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version. */ localeSpecification?: pulumi.Input<{ [key: string]: pulumi.Input<inputs.lex.V2modelsBotVersionLocaleSpecification>; }>; /** * 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>; timeouts?: pulumi.Input<inputs.lex.V2modelsBotVersionTimeouts>; } /** * The set of arguments for constructing a V2modelsBotVersion resource. */ export interface V2modelsBotVersionArgs { /** * Idientifier of the bot to create the version for. */ botId: pulumi.Input<string>; /** * Version number assigned to the version. */ botVersion?: pulumi.Input<string>; /** * A description of the version. Use the description to help identify the version in lists. * * `sourceBotVersion` - (Required) The version of a bot used for a bot locale. Valid values: `DRAFT`, a numeric version. */ description?: pulumi.Input<string>; /** * Specifies the locales that Amazon Lex adds to this version. You can choose the draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version. */ localeSpecification: pulumi.Input<{ [key: string]: pulumi.Input<inputs.lex.V2modelsBotVersionLocaleSpecification>; }>; /** * 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>; timeouts?: pulumi.Input<inputs.lex.V2modelsBotVersionTimeouts>; }