V2modelsBotLocale class

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/v7/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
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_lex_v2modelsbotlocale" "example" {
  bot_id                           = exampleAwsLexv2modelsBot.id
  bot_version                      = "DRAFT"
  locale_id                        = "en_US"
  n_lu_intent_confidence_threshold = 0.7
}
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());

    }
}
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", {
    voiceSettings: {
        voiceId: "Kendra",
        engine: "standard",
    },
    botId: exampleAwsLexv2modelsBot.id,
    botVersion: "DRAFT",
    localeId: "en_US",
    nLuIntentConfidenceThreshold: 0.7,
});
import pulumi
import pulumi_aws as aws

example = aws.lex.V2modelsBotLocale("example",
    voice_settings={
        "voice_id": "Kendra",
        "engine": "standard",
    },
    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()
    {
        VoiceSettings = new Aws.Lex.Inputs.V2modelsBotLocaleVoiceSettingsArgs
        {
            VoiceId = "Kendra",
            Engine = "standard",
        },
        BotId = exampleAwsLexv2modelsBot.Id,
        BotVersion = "DRAFT",
        LocaleId = "en_US",
        NLuIntentConfidenceThreshold = 0.7,
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/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{
			VoiceSettings: &lex.V2modelsBotLocaleVoiceSettingsArgs{
				VoiceId: pulumi.String("Kendra"),
				Engine:  pulumi.String("standard"),
			},
			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
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_lex_v2modelsbotlocale" "example" {
  voice_settings = {
    voice_id = "Kendra"
    engine   = "standard"
  }
  bot_id                           = exampleAwsLexv2modelsBot.id
  bot_version                      = "DRAFT"
  locale_id                        = "en_US"
  n_lu_intent_confidence_threshold = 0.7
}
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());

    }
}
resources:
  example:
    type: aws:lex:V2modelsBotLocale
    properties:
      voiceSettings:
        voiceId: Kendra
        engine: standard
      botId: ${exampleAwsLexv2modelsBot.id}
      botVersion: DRAFT
      localeId: en_US
      nLuIntentConfidenceThreshold: 0.7

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

V2modelsBotLocale(String name, {V2modelsBotLocaleArgs? args, CustomResourceOptions? options})
Creates a new V2modelsBotLocale. name The Pulumi resource name. args Arguments used to configure this V2modelsBotLocale. The set of arguments for V2modelsBotLocale. options Resource options controlling this resource's behavior.
V2modelsBotLocale.reference(String urn)
Creates a typed reference to an existing V2modelsBotLocale resource.

Properties

botId ↔ Output<String>
Identifier of the bot to create the locale for.
latefinal
botVersion ↔ Output<String>
Version of the bot to create the locale for. This can only be the draft version of the bot.
latefinal
childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
description ↔ Output<String?>
Description of the bot locale. Use this to help identify the bot locale in lists.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
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)
latefinal
name ↔ Output<String>
Specified locale name.
latefinal
nLuIntentConfidenceThreshold ↔ Output<double>
Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents.
latefinal
region ↔ Output<String>
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeouts ↔ Output<V2modelsBotLocaleTimeouts?>
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
urn ↔ Output<String>
latefinalinherited
voiceSettings ↔ Output<V2modelsBotLocaleVoiceSettings?>
Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. See voiceSettings.
latefinal

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {V2modelsBotLocaleState? state, CustomResourceOptions? options}) → V2modelsBotLocale
Gets an existing V2modelsBotLocale resource's state with the given name and id.