V2models Bot Version Args
data class V2modelsBotVersionArgs(val botId: Output<String>? = null, val botVersion: Output<String>? = null, val description: Output<String>? = null, val localeSpecification: Output<Map<String, V2modelsBotVersionLocaleSpecificationArgs>>? = null, val timeouts: Output<V2modelsBotVersionTimeoutsArgs>? = null) : ConvertibleToJava<V2modelsBotVersionArgs>
Resource for managing an AWS Lex V2 Models Bot Version.
Example Usage
Basic Usage
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",
},
},
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
test = aws.lex.V2modelsBotVersion("test",
bot_id=test_aws_lexv2models_bot["id"],
locale_specification={
"en_US": {
"source_bot_version": "DRAFT",
},
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Lex.V2modelsBotVersion("test", new()
{
BotId = testAwsLexv2modelsBot.Id,
LocaleSpecification =
{
{ "en_US", new Aws.Lex.Inputs.V2modelsBotVersionLocaleSpecificationArgs
{
SourceBotVersion = "DRAFT",
} },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lex.NewV2modelsBotVersion(ctx, "test", &lex.V2modelsBotVersionArgs{
BotId: pulumi.Any(testAwsLexv2modelsBot.Id),
LocaleSpecification: lex.V2modelsBotVersionLocaleSpecificationMap{
"en_US": &lex.V2modelsBotVersionLocaleSpecificationArgs{
SourceBotVersion: pulumi.String("DRAFT"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lex.V2modelsBotVersion;
import com.pulumi.aws.lex.V2modelsBotVersionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new V2modelsBotVersion("test", V2modelsBotVersionArgs.builder()
.botId(testAwsLexv2modelsBot.id())
.localeSpecification(Map.of("en_US", V2modelsBotVersionLocaleSpecificationArgs.builder()
.sourceBotVersion("DRAFT")
.build()))
.build());
}
}
Content copied to clipboard
resources:
test:
type: aws:lex:V2modelsBotVersion
properties:
botId: ${testAwsLexv2modelsBot.id}
localeSpecification:
en_US:
sourceBotVersion: DRAFT
Content copied to clipboard
Import
Using pulumi import
, import Lex V2 Models Bot Version using the id
. For example:
$ pulumi import aws:lex/v2modelsBotVersion:V2modelsBotVersion example id-12345678,1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(botId: Output<String>? = null, botVersion: Output<String>? = null, description: Output<String>? = null, localeSpecification: Output<Map<String, V2modelsBotVersionLocaleSpecificationArgs>>? = null, timeouts: Output<V2modelsBotVersionTimeoutsArgs>? = null)
Properties
Link copied to clipboard
Version number assigned to the version.
Link copied to clipboard
A description of the version. Use the description to help identify the version in lists.
Link copied to clipboard
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. The attribute value is a map with one or more entries, each of which has a locale name as the key and an object with the following attribute as the value:
Link copied to clipboard