V2models Bot Locale Args
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,
});
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)
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,
});
});
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
})
}
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());
}
}
resources:
example:
type: aws:lex:V2modelsBotLocale
properties:
botId: ${exampleAwsLexv2modelsBot.id}
botVersion: DRAFT
localeId: en_US
nLuIntentConfidenceThreshold: 0.7
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",
},
});
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={
"voice_id": "Kendra",
"engine": "standard",
})
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",
},
});
});
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
})
}
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());
}
}
resources:
example:
type: aws:lex:V2modelsBotLocale
properties:
botId: ${exampleAwsLexv2modelsBot.id}
botVersion: DRAFT
localeId: en_US
nLuIntentConfidenceThreshold: 0.7
voiceSettings:
voiceId: Kendra
engine: standard
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,1
Constructors
Properties
Version of the bot to create the locale for. This can only be the draft version of the bot.
Description of the bot locale. Use this to help identify the bot locale in lists.
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)
Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. The following arguments are optional:
Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. See voice_settings
.