com.pulumi.aws.lex.V2modelsBotLocale Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.lex;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.lex.V2modelsBotLocaleArgs;
import com.pulumi.aws.lex.inputs.V2modelsBotLocaleState;
import com.pulumi.aws.lex.outputs.V2modelsBotLocaleTimeouts;
import com.pulumi.aws.lex.outputs.V2modelsBotLocaleVoiceSettings;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Double;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS Lex V2 Models Bot Locale.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Voice Settings
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import Lex V2 Models Bot Locale using the `id`. For example:
*
* ```sh
* $ pulumi import aws:lex/v2modelsBotLocale:V2modelsBotLocale example en_US,abcd-12345678,1
* ```
*
*/
@ResourceType(type="aws:lex/v2modelsBotLocale:V2modelsBotLocale")
public class V2modelsBotLocale extends com.pulumi.resources.CustomResource {
/**
* Identifier of the bot to create the locale for.
*
*/
@Export(name="botId", refs={String.class}, tree="[0]")
private Output botId;
/**
* @return Identifier of the bot to create the locale for.
*
*/
public Output botId() {
return this.botId;
}
/**
* Version of the bot to create the locale for. This can only be the draft version of the bot.
*
*/
@Export(name="botVersion", refs={String.class}, tree="[0]")
private Output botVersion;
/**
* @return Version of the bot to create the locale for. This can only be the draft version of the bot.
*
*/
public Output botVersion() {
return this.botVersion;
}
/**
* Description of the bot locale. Use this to help identify the bot locale in lists.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Description of the bot locale. Use this to help identify the bot locale in lists.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* 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)
*
*/
@Export(name="localeId", refs={String.class}, tree="[0]")
private Output localeId;
/**
* @return 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)
*
*/
public Output localeId() {
return this.localeId;
}
/**
* Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents.
*
* The following arguments are optional:
*
*/
@Export(name="nLuIntentConfidenceThreshold", refs={Double.class}, tree="[0]")
private Output nLuIntentConfidenceThreshold;
/**
* @return Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents.
*
* The following arguments are optional:
*
*/
public Output nLuIntentConfidenceThreshold() {
return this.nLuIntentConfidenceThreshold;
}
/**
* Specified locale name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Specified locale name.
*
*/
public Output name() {
return this.name;
}
@Export(name="timeouts", refs={V2modelsBotLocaleTimeouts.class}, tree="[0]")
private Output* @Nullable */ V2modelsBotLocaleTimeouts> timeouts;
public Output> timeouts() {
return Codegen.optional(this.timeouts);
}
/**
* Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. See `voice_settings`.
*
*/
@Export(name="voiceSettings", refs={V2modelsBotLocaleVoiceSettings.class}, tree="[0]")
private Output* @Nullable */ V2modelsBotLocaleVoiceSettings> voiceSettings;
/**
* @return Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. See `voice_settings`.
*
*/
public Output> voiceSettings() {
return Codegen.optional(this.voiceSettings);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public V2modelsBotLocale(String name) {
this(name, V2modelsBotLocaleArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public V2modelsBotLocale(String name, V2modelsBotLocaleArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public V2modelsBotLocale(String name, V2modelsBotLocaleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:lex/v2modelsBotLocale:V2modelsBotLocale", name, args == null ? V2modelsBotLocaleArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
}
private V2modelsBotLocale(String name, Output id, @Nullable V2modelsBotLocaleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:lex/v2modelsBotLocale:V2modelsBotLocale", name, state, makeResourceOptions(options, id));
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static V2modelsBotLocale get(String name, Output id, @Nullable V2modelsBotLocaleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new V2modelsBotLocale(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy