V2modelsBotVersion

class V2modelsBotVersion : KotlinCustomResource

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",
},
},
});
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",
},
})
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",
} },
},
});
});
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
})
}
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());
}
}
resources:
test:
type: aws:lex:V2modelsBotVersion
properties:
botId: ${testAwsLexv2modelsBot.id}
localeSpecification:
en_US:
sourceBotVersion: DRAFT

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

Properties

Link copied to clipboard
val botId: Output<String>

Idientifier of the bot to create the version for.

Link copied to clipboard
val botVersion: Output<String>

Version number assigned to the version.

Link copied to clipboard
val description: Output<String>?

A description of the version. Use the description to help identify the version in lists.

Link copied to clipboard
val id: Output<String>
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
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>