V2modelsBotLocale

class V2modelsBotLocale : KotlinCustomResource

Resource for managing an AWS Lex V2 Models Bot Locale.

Example Usage

Basic Usage

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(aws_lexv2models_bot.example().id())
.botVersion("DRAFT")
.localeId("en_US")
.nLuIntentConfidenceThreshold(0.7)
.build());
}
}

Voice Settings

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(aws_lexv2models_bot.example().id())
.botVersion("DRAFT")
.localeId("en_US")
.nLuIntentConfidenceThreshold(0.7)
.voiceSettings(V2modelsBotLocaleVoiceSettingsArgs.builder()
.voiceId("Kendra")
.engine("standard")
.build())
.build());
}
}

Import

Using pulumi import, import Lex V2 Models Bot Locale using the id. For example:

$ pulumi import aws:lex/v2modelsBotLocale:V2modelsBotLocale example bot_locale-id-12345678

Properties

Link copied to clipboard
val botId: Output<String>

Identifier of the bot to create the locale for.

Link copied to clipboard
val botVersion: Output<String>

Version of the bot to create the locale for. This can only be the draft version of the bot.

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

Description of the bot locale. Use this to help identify the bot locale in lists.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val localeId: Output<String>

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)

Link copied to clipboard
val name: Output<String>

Specified locale name.

Link copied to clipboard

Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. The following arguments are optional:

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>
Link copied to clipboard

Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. See voice_settings.