V2models Bot Locale Args
data class V2modelsBotLocaleArgs(val botId: Output<String>? = null, val botVersion: Output<String>? = null, val description: Output<String>? = null, val localeId: Output<String>? = null, val nLuIntentConfidenceThreshold: Output<Double>? = null, val name: Output<String>? = null, val timeouts: Output<V2modelsBotLocaleTimeoutsArgs>? = null, val voiceSettings: Output<V2modelsBotLocaleVoiceSettingsArgs>? = null) : ConvertibleToJava<V2modelsBotLocaleArgs>
Resource for managing an AWS Lex V2 Models Bot Locale.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lex.V2modelsBotLocale("example", {
botId: exampleAwsLexv2modelsBot.id,
botVersion: "DRAFT",
localeId: "en_US",
nLuIntentConfidenceThreshold: 0.7,
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.lex.V2modelsBotLocale("example",
bot_id=example_aws_lexv2models_bot["id"],
bot_version="DRAFT",
locale_id="en_US",
n_lu_intent_confidence_threshold=0.7)Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lex.V2modelsBotLocale("example", new()
{
BotId = exampleAwsLexv2modelsBot.Id,
BotVersion = "DRAFT",
LocaleId = "en_US",
NLuIntentConfidenceThreshold = 0.7,
});
});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.NewV2modelsBotLocale(ctx, "example", &lex.V2modelsBotLocaleArgs{
BotId: pulumi.Any(exampleAwsLexv2modelsBot.Id),
BotVersion: pulumi.String("DRAFT"),
LocaleId: pulumi.String("en_US"),
NLuIntentConfidenceThreshold: pulumi.Float64(0.7),
})
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.V2modelsBotLocale;
import com.pulumi.aws.lex.V2modelsBotLocaleArgs;
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 example = new V2modelsBotLocale("example", V2modelsBotLocaleArgs.builder()
.botId(exampleAwsLexv2modelsBot.id())
.botVersion("DRAFT")
.localeId("en_US")
.nLuIntentConfidenceThreshold(0.7)
.build());
}
}Content copied to clipboard
resources:
example:
type: aws:lex:V2modelsBotLocale
properties:
botId: ${exampleAwsLexv2modelsBot.id}
botVersion: DRAFT
localeId: en_US
nLuIntentConfidenceThreshold: 0.7Content copied to clipboard
Voice Settings
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lex.V2modelsBotLocale("example", {
botId: exampleAwsLexv2modelsBot.id,
botVersion: "DRAFT",
localeId: "en_US",
nLuIntentConfidenceThreshold: 0.7,
voiceSettings: {
voiceId: "Kendra",
engine: "standard",
},
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.lex.V2modelsBotLocale("example",
bot_id=example_aws_lexv2models_bot["id"],
bot_version="DRAFT",
locale_id="en_US",
n_lu_intent_confidence_threshold=0.7,
voice_settings=aws.lex.V2modelsBotLocaleVoiceSettingsArgs(
voice_id="Kendra",
engine="standard",
))Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lex.V2modelsBotLocale("example", new()
{
BotId = exampleAwsLexv2modelsBot.Id,
BotVersion = "DRAFT",
LocaleId = "en_US",
NLuIntentConfidenceThreshold = 0.7,
VoiceSettings = new Aws.Lex.Inputs.V2modelsBotLocaleVoiceSettingsArgs
{
VoiceId = "Kendra",
Engine = "standard",
},
});
});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.NewV2modelsBotLocale(ctx, "example", &lex.V2modelsBotLocaleArgs{
BotId: pulumi.Any(exampleAwsLexv2modelsBot.Id),
BotVersion: pulumi.String("DRAFT"),
LocaleId: pulumi.String("en_US"),
NLuIntentConfidenceThreshold: pulumi.Float64(0.7),
VoiceSettings: &lex.V2modelsBotLocaleVoiceSettingsArgs{
VoiceId: pulumi.String("Kendra"),
Engine: pulumi.String("standard"),
},
})
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.V2modelsBotLocale;
import com.pulumi.aws.lex.V2modelsBotLocaleArgs;
import com.pulumi.aws.lex.inputs.V2modelsBotLocaleVoiceSettingsArgs;
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 example = new V2modelsBotLocale("example", V2modelsBotLocaleArgs.builder()
.botId(exampleAwsLexv2modelsBot.id())
.botVersion("DRAFT")
.localeId("en_US")
.nLuIntentConfidenceThreshold(0.7)
.voiceSettings(V2modelsBotLocaleVoiceSettingsArgs.builder()
.voiceId("Kendra")
.engine("standard")
.build())
.build());
}
}Content copied to clipboard
resources:
example:
type: aws:lex:V2modelsBotLocale
properties:
botId: ${exampleAwsLexv2modelsBot.id}
botVersion: DRAFT
localeId: en_US
nLuIntentConfidenceThreshold: 0.7
voiceSettings:
voiceId: Kendra
engine: standardContent copied to clipboard
Import
Using pulumi import, import Lex V2 Models Bot Locale using the id. For example:
$ pulumi import aws:lex/v2modelsBotLocale:V2modelsBotLocale example en_US,abcd-12345678,1Content copied to clipboard
Constructors
Link copied to clipboard
fun V2modelsBotLocaleArgs(botId: Output<String>? = null, botVersion: Output<String>? = null, description: Output<String>? = null, localeId: Output<String>? = null, nLuIntentConfidenceThreshold: Output<Double>? = null, name: Output<String>? = null, timeouts: Output<V2modelsBotLocaleTimeoutsArgs>? = null, voiceSettings: Output<V2modelsBotLocaleVoiceSettingsArgs>? = null)
Functions
Properties
Link copied to clipboard
Identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html)