Class V2modelsBotLocale


  • public class V2modelsBotLocale
    extends com.pulumi.resources.CustomResource
    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.ArrayList;
     import java.util.Arrays;
     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());
     
         }
     }
     
     
    ### 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.ArrayList;
     import java.util.Arrays;
     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()
                 .voiceSettings(V2modelsBotLocaleVoiceSettingsArgs.builder()
                     .voiceId("Kendra")
                     .engine("standard")
                     .build())
                 .botId(exampleAwsLexv2modelsBot.id())
                 .botVersion("DRAFT")
                 .localeId("en_US")
                 .nLuIntentConfidenceThreshold(0.7)
                 .build());
     
         }
     }
     
     
    ## 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 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> botId()  
      com.pulumi.core.Output<java.lang.String> botVersion()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      static V2modelsBotLocale get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, V2modelsBotLocaleState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> localeId()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.Double> nLuIntentConfidenceThreshold()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.util.Optional<V2modelsBotLocaleTimeouts>> timeouts()  
      com.pulumi.core.Output<java.util.Optional<V2modelsBotLocaleVoiceSettings>> voiceSettings()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • V2modelsBotLocale

        public V2modelsBotLocale​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • V2modelsBotLocale

        public V2modelsBotLocale​(java.lang.String name,
                                 V2modelsBotLocaleArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • V2modelsBotLocale

        public V2modelsBotLocale​(java.lang.String name,
                                 V2modelsBotLocaleArgs args,
                                 @Nullable
                                 com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • botId

        public com.pulumi.core.Output<java.lang.String> botId()
        Returns:
        Identifier of the bot to create the locale for.
      • botVersion

        public com.pulumi.core.Output<java.lang.String> botVersion()
        Returns:
        Version of the bot to create the locale for. This can only be the draft version of the bot.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        Description of the bot locale. Use this to help identify the bot locale in lists.
      • localeId

        public com.pulumi.core.Output<java.lang.String> localeId()
        Returns:
        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)
      • nLuIntentConfidenceThreshold

        public com.pulumi.core.Output<java.lang.Double> nLuIntentConfidenceThreshold()
        Returns:
        Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. The following arguments are optional:
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Specified locale name.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • voiceSettings

        public com.pulumi.core.Output<java.util.Optional<V2modelsBotLocaleVoiceSettings>> voiceSettings()
        Returns:
        Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. See `voiceSettings`.
      • get

        public static V2modelsBotLocale get​(java.lang.String name,
                                            com.pulumi.core.Output<java.lang.String> id,
                                            @Nullable
                                            V2modelsBotLocaleState state,
                                            @Nullable
                                            com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.