Try AWS Native preview for resources not in the classic version.
aws.lex.V2modelsSlotType
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Resource for managing an AWS Lex V2 Models Slot Type.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.iam.RolePolicyAttachment("test", {
role: testAwsIamRole.name,
policyArn: `arn:${current.partition}:iam::aws:policy/AmazonLexFullAccess`,
});
const testV2modelsBot = new aws.lex.V2modelsBot("test", {
name: "testbot",
idleSessionTtlInSeconds: 60,
roleArn: testAwsIamRole.arn,
dataPrivacies: [{
childDirected: true,
}],
});
const testV2modelsBotLocale = new aws.lex.V2modelsBotLocale("test", {
localeId: "en_US",
botId: testV2modelsBot.id,
botVersion: "DRAFT",
nLuIntentConfidenceThreshold: 0.7,
});
const testV2modelsBotVersion = new aws.lex.V2modelsBotVersion("test", {
botId: testV2modelsBot.id,
localeSpecification: testV2modelsBotLocale.localeId.apply(localeId => {
[localeId]: {
sourceBotVersion: "DRAFT",
},
}),
});
const testV2modelsSlotType = new aws.lex.V2modelsSlotType("test", {
botId: testV2modelsBot.id,
botVersion: testV2modelsBotLocale.botVersion,
name: "test",
localeId: testV2modelsBotLocale.localeId,
});
import pulumi
import pulumi_aws as aws
test = aws.iam.RolePolicyAttachment("test",
role=test_aws_iam_role["name"],
policy_arn=f"arn:{current['partition']}:iam::aws:policy/AmazonLexFullAccess")
test_v2models_bot = aws.lex.V2modelsBot("test",
name="testbot",
idle_session_ttl_in_seconds=60,
role_arn=test_aws_iam_role["arn"],
data_privacies=[{
"childDirected": True,
}])
test_v2models_bot_locale = aws.lex.V2modelsBotLocale("test",
locale_id="en_US",
bot_id=test_v2models_bot.id,
bot_version="DRAFT",
n_lu_intent_confidence_threshold=0.7)
test_v2models_bot_version = aws.lex.V2modelsBotVersion("test",
bot_id=test_v2models_bot.id,
locale_specification=test_v2models_bot_locale.locale_id.apply(lambda locale_id: {
locale_id: {
"sourceBotVersion": "DRAFT",
},
}))
test_v2models_slot_type = aws.lex.V2modelsSlotType("test",
bot_id=test_v2models_bot.id,
bot_version=test_v2models_bot_locale.bot_version,
name="test",
locale_id=test_v2models_bot_locale.locale_id)
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
"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 := iam.NewRolePolicyAttachment(ctx, "test", &iam.RolePolicyAttachmentArgs{
Role: pulumi.Any(testAwsIamRole.Name),
PolicyArn: pulumi.String(fmt.Sprintf("arn:%v:iam::aws:policy/AmazonLexFullAccess", current.Partition)),
})
if err != nil {
return err
}
testV2modelsBot, err := lex.NewV2modelsBot(ctx, "test", &lex.V2modelsBotArgs{
Name: pulumi.String("testbot"),
IdleSessionTtlInSeconds: pulumi.Int(60),
RoleArn: pulumi.Any(testAwsIamRole.Arn),
DataPrivacies: lex.V2modelsBotDataPrivacyArray{
&lex.V2modelsBotDataPrivacyArgs{
ChildDirected: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
testV2modelsBotLocale, err := lex.NewV2modelsBotLocale(ctx, "test", &lex.V2modelsBotLocaleArgs{
LocaleId: pulumi.String("en_US"),
BotId: testV2modelsBot.ID(),
BotVersion: pulumi.String("DRAFT"),
NLuIntentConfidenceThreshold: pulumi.Float64(0.7),
})
if err != nil {
return err
}
_, err = lex.NewV2modelsBotVersion(ctx, "test", &lex.V2modelsBotVersionArgs{
BotId: testV2modelsBot.ID(),
LocaleSpecification: testV2modelsBotLocale.LocaleId.ApplyT(func(localeId string) (map[string]map[string]interface{}, error) {
return map[string]map[string]interface{}{
localeId: map[string]interface{}{
"sourceBotVersion": "DRAFT",
},
}, nil
}).(pulumi.Map[string]map[string]interface{}Output),
})
if err != nil {
return err
}
_, err = lex.NewV2modelsSlotType(ctx, "test", &lex.V2modelsSlotTypeArgs{
BotId: testV2modelsBot.ID(),
BotVersion: testV2modelsBotLocale.BotVersion,
Name: pulumi.String("test"),
LocaleId: testV2modelsBotLocale.LocaleId,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Iam.RolePolicyAttachment("test", new()
{
Role = testAwsIamRole.Name,
PolicyArn = $"arn:{current.Partition}:iam::aws:policy/AmazonLexFullAccess",
});
var testV2modelsBot = new Aws.Lex.V2modelsBot("test", new()
{
Name = "testbot",
IdleSessionTtlInSeconds = 60,
RoleArn = testAwsIamRole.Arn,
DataPrivacies = new[]
{
new Aws.Lex.Inputs.V2modelsBotDataPrivacyArgs
{
ChildDirected = true,
},
},
});
var testV2modelsBotLocale = new Aws.Lex.V2modelsBotLocale("test", new()
{
LocaleId = "en_US",
BotId = testV2modelsBot.Id,
BotVersion = "DRAFT",
NLuIntentConfidenceThreshold = 0.7,
});
var testV2modelsBotVersion = new Aws.Lex.V2modelsBotVersion("test", new()
{
BotId = testV2modelsBot.Id,
LocaleSpecification = testV2modelsBotLocale.LocaleId.Apply(localeId =>
{
{ localeId,
{
{ "sourceBotVersion", "DRAFT" },
} },
}),
});
var testV2modelsSlotType = new Aws.Lex.V2modelsSlotType("test", new()
{
BotId = testV2modelsBot.Id,
BotVersion = testV2modelsBotLocale.BotVersion,
Name = "test",
LocaleId = testV2modelsBotLocale.LocaleId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.RolePolicyAttachment;
import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
import com.pulumi.aws.lex.V2modelsBot;
import com.pulumi.aws.lex.V2modelsBotArgs;
import com.pulumi.aws.lex.inputs.V2modelsBotDataPrivacyArgs;
import com.pulumi.aws.lex.V2modelsBotLocale;
import com.pulumi.aws.lex.V2modelsBotLocaleArgs;
import com.pulumi.aws.lex.V2modelsBotVersion;
import com.pulumi.aws.lex.V2modelsBotVersionArgs;
import com.pulumi.aws.lex.V2modelsSlotType;
import com.pulumi.aws.lex.V2modelsSlotTypeArgs;
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 test = new RolePolicyAttachment("test", RolePolicyAttachmentArgs.builder()
.role(testAwsIamRole.name())
.policyArn(String.format("arn:%s:iam::aws:policy/AmazonLexFullAccess", current.partition()))
.build());
var testV2modelsBot = new V2modelsBot("testV2modelsBot", V2modelsBotArgs.builder()
.name("testbot")
.idleSessionTtlInSeconds(60)
.roleArn(testAwsIamRole.arn())
.dataPrivacies(V2modelsBotDataPrivacyArgs.builder()
.childDirected(true)
.build())
.build());
var testV2modelsBotLocale = new V2modelsBotLocale("testV2modelsBotLocale", V2modelsBotLocaleArgs.builder()
.localeId("en_US")
.botId(testV2modelsBot.id())
.botVersion("DRAFT")
.nLuIntentConfidenceThreshold(0.7)
.build());
var testV2modelsBotVersion = new V2modelsBotVersion("testV2modelsBotVersion", V2modelsBotVersionArgs.builder()
.botId(testV2modelsBot.id())
.localeSpecification(testV2modelsBotLocale.localeId().applyValue(localeId -> Map.of(localeId, Map.of("sourceBotVersion", "DRAFT"))))
.build());
var testV2modelsSlotType = new V2modelsSlotType("testV2modelsSlotType", V2modelsSlotTypeArgs.builder()
.botId(testV2modelsBot.id())
.botVersion(testV2modelsBotLocale.botVersion())
.name("test")
.localeId(testV2modelsBotLocale.localeId())
.build());
}
}
resources:
test:
type: aws:iam:RolePolicyAttachment
properties:
role: ${testAwsIamRole.name}
policyArn: arn:${current.partition}:iam::aws:policy/AmazonLexFullAccess
testV2modelsBot:
type: aws:lex:V2modelsBot
name: test
properties:
name: testbot
idleSessionTtlInSeconds: 60
roleArn: ${testAwsIamRole.arn}
dataPrivacies:
- childDirected: true
testV2modelsBotLocale:
type: aws:lex:V2modelsBotLocale
name: test
properties:
localeId: en_US
botId: ${testV2modelsBot.id}
botVersion: DRAFT
nLuIntentConfidenceThreshold: 0.7
testV2modelsBotVersion:
type: aws:lex:V2modelsBotVersion
name: test
properties:
botId: ${testV2modelsBot.id}
localeSpecification:
${testV2modelsBotLocale.localeId}:
sourceBotVersion: DRAFT
testV2modelsSlotType:
type: aws:lex:V2modelsSlotType
name: test
properties:
botId: ${testV2modelsBot.id}
botVersion: ${testV2modelsBotLocale.botVersion}
name: test
localeId: ${testV2modelsBotLocale.localeId}
Create V2modelsSlotType Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new V2modelsSlotType(name: string, args: V2modelsSlotTypeArgs, opts?: CustomResourceOptions);
@overload
def V2modelsSlotType(resource_name: str,
args: V2modelsSlotTypeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def V2modelsSlotType(resource_name: str,
opts: Optional[ResourceOptions] = None,
bot_id: Optional[str] = None,
bot_version: Optional[str] = None,
locale_id: Optional[str] = None,
composite_slot_type_setting: Optional[V2modelsSlotTypeCompositeSlotTypeSettingArgs] = None,
description: Optional[str] = None,
external_source_setting: Optional[V2modelsSlotTypeExternalSourceSettingArgs] = None,
name: Optional[str] = None,
parent_slot_type_signature: Optional[str] = None,
slot_type_values: Optional[V2modelsSlotTypeSlotTypeValuesArgs] = None,
timeouts: Optional[V2modelsSlotTypeTimeoutsArgs] = None,
value_selection_setting: Optional[V2modelsSlotTypeValueSelectionSettingArgs] = None)
func NewV2modelsSlotType(ctx *Context, name string, args V2modelsSlotTypeArgs, opts ...ResourceOption) (*V2modelsSlotType, error)
public V2modelsSlotType(string name, V2modelsSlotTypeArgs args, CustomResourceOptions? opts = null)
public V2modelsSlotType(String name, V2modelsSlotTypeArgs args)
public V2modelsSlotType(String name, V2modelsSlotTypeArgs args, CustomResourceOptions options)
type: aws:lex:V2modelsSlotType
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args V2modelsSlotTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args V2modelsSlotTypeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args V2modelsSlotTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args V2modelsSlotTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args V2modelsSlotTypeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var v2modelsSlotTypeResource = new Aws.Lex.V2modelsSlotType("v2modelsSlotTypeResource", new()
{
BotId = "string",
BotVersion = "string",
LocaleId = "string",
CompositeSlotTypeSetting = new Aws.Lex.Inputs.V2modelsSlotTypeCompositeSlotTypeSettingArgs
{
SubSlots = new[]
{
"any",
},
},
Description = "string",
ExternalSourceSetting = new Aws.Lex.Inputs.V2modelsSlotTypeExternalSourceSettingArgs
{
GrammarSlotTypeSetting = new Aws.Lex.Inputs.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingArgs
{
Source = new Aws.Lex.Inputs.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs
{
KmsKeyArn = "string",
S3BucketName = "string",
S3ObjectKey = "string",
},
},
},
Name = "string",
ParentSlotTypeSignature = "string",
SlotTypeValues = new Aws.Lex.Inputs.V2modelsSlotTypeSlotTypeValuesArgs
{
SlotTypeValues = new[]
{
"any",
},
Synonyms = new[]
{
new Aws.Lex.Inputs.V2modelsSlotTypeSlotTypeValuesSynonymArgs
{
Value = "string",
},
},
},
Timeouts = new Aws.Lex.Inputs.V2modelsSlotTypeTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
ValueSelectionSetting = new Aws.Lex.Inputs.V2modelsSlotTypeValueSelectionSettingArgs
{
ResolutionStrategy = "string",
AdvancedRecognitionSettings = new[]
{
new Aws.Lex.Inputs.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs
{
AudioRecognitionSetting = "string",
},
},
RegexFilters = new[]
{
new Aws.Lex.Inputs.V2modelsSlotTypeValueSelectionSettingRegexFilterArgs
{
Pattern = "string",
},
},
},
});
example, err := lex.NewV2modelsSlotType(ctx, "v2modelsSlotTypeResource", &lex.V2modelsSlotTypeArgs{
BotId: pulumi.String("string"),
BotVersion: pulumi.String("string"),
LocaleId: pulumi.String("string"),
CompositeSlotTypeSetting: &lex.V2modelsSlotTypeCompositeSlotTypeSettingArgs{
SubSlots: pulumi.Array{
pulumi.Any("any"),
},
},
Description: pulumi.String("string"),
ExternalSourceSetting: &lex.V2modelsSlotTypeExternalSourceSettingArgs{
GrammarSlotTypeSetting: &lex.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingArgs{
Source: &lex.V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs{
KmsKeyArn: pulumi.String("string"),
S3BucketName: pulumi.String("string"),
S3ObjectKey: pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
ParentSlotTypeSignature: pulumi.String("string"),
SlotTypeValues: &lex.V2modelsSlotTypeSlotTypeValuesArgs{
SlotTypeValues: pulumi.Array{
pulumi.Any("any"),
},
Synonyms: lex.V2modelsSlotTypeSlotTypeValuesSynonymArray{
&lex.V2modelsSlotTypeSlotTypeValuesSynonymArgs{
Value: pulumi.String("string"),
},
},
},
Timeouts: &lex.V2modelsSlotTypeTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
ValueSelectionSetting: &lex.V2modelsSlotTypeValueSelectionSettingArgs{
ResolutionStrategy: pulumi.String("string"),
AdvancedRecognitionSettings: lex.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArray{
&lex.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs{
AudioRecognitionSetting: pulumi.String("string"),
},
},
RegexFilters: lex.V2modelsSlotTypeValueSelectionSettingRegexFilterArray{
&lex.V2modelsSlotTypeValueSelectionSettingRegexFilterArgs{
Pattern: pulumi.String("string"),
},
},
},
})
var v2modelsSlotTypeResource = new V2modelsSlotType("v2modelsSlotTypeResource", V2modelsSlotTypeArgs.builder()
.botId("string")
.botVersion("string")
.localeId("string")
.compositeSlotTypeSetting(V2modelsSlotTypeCompositeSlotTypeSettingArgs.builder()
.subSlots("any")
.build())
.description("string")
.externalSourceSetting(V2modelsSlotTypeExternalSourceSettingArgs.builder()
.grammarSlotTypeSetting(V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingArgs.builder()
.source(V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs.builder()
.kmsKeyArn("string")
.s3BucketName("string")
.s3ObjectKey("string")
.build())
.build())
.build())
.name("string")
.parentSlotTypeSignature("string")
.slotTypeValues(V2modelsSlotTypeSlotTypeValuesArgs.builder()
.slotTypeValues("any")
.synonyms(V2modelsSlotTypeSlotTypeValuesSynonymArgs.builder()
.value("string")
.build())
.build())
.timeouts(V2modelsSlotTypeTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.valueSelectionSetting(V2modelsSlotTypeValueSelectionSettingArgs.builder()
.resolutionStrategy("string")
.advancedRecognitionSettings(V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs.builder()
.audioRecognitionSetting("string")
.build())
.regexFilters(V2modelsSlotTypeValueSelectionSettingRegexFilterArgs.builder()
.pattern("string")
.build())
.build())
.build());
v2models_slot_type_resource = aws.lex.V2modelsSlotType("v2modelsSlotTypeResource",
bot_id="string",
bot_version="string",
locale_id="string",
composite_slot_type_setting={
"subSlots": ["any"],
},
description="string",
external_source_setting={
"grammarSlotTypeSetting": {
"source": {
"kmsKeyArn": "string",
"s3BucketName": "string",
"s3ObjectKey": "string",
},
},
},
name="string",
parent_slot_type_signature="string",
slot_type_values={
"slotTypeValues": ["any"],
"synonyms": [{
"value": "string",
}],
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
value_selection_setting={
"resolutionStrategy": "string",
"advancedRecognitionSettings": [{
"audioRecognitionSetting": "string",
}],
"regexFilters": [{
"pattern": "string",
}],
})
const v2modelsSlotTypeResource = new aws.lex.V2modelsSlotType("v2modelsSlotTypeResource", {
botId: "string",
botVersion: "string",
localeId: "string",
compositeSlotTypeSetting: {
subSlots: ["any"],
},
description: "string",
externalSourceSetting: {
grammarSlotTypeSetting: {
source: {
kmsKeyArn: "string",
s3BucketName: "string",
s3ObjectKey: "string",
},
},
},
name: "string",
parentSlotTypeSignature: "string",
slotTypeValues: {
slotTypeValues: ["any"],
synonyms: [{
value: "string",
}],
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
valueSelectionSetting: {
resolutionStrategy: "string",
advancedRecognitionSettings: [{
audioRecognitionSetting: "string",
}],
regexFilters: [{
pattern: "string",
}],
},
});
type: aws:lex:V2modelsSlotType
properties:
botId: string
botVersion: string
compositeSlotTypeSetting:
subSlots:
- any
description: string
externalSourceSetting:
grammarSlotTypeSetting:
source:
kmsKeyArn: string
s3BucketName: string
s3ObjectKey: string
localeId: string
name: string
parentSlotTypeSignature: string
slotTypeValues:
slotTypeValues:
- any
synonyms:
- value: string
timeouts:
create: string
delete: string
update: string
valueSelectionSetting:
advancedRecognitionSettings:
- audioRecognitionSetting: string
regexFilters:
- pattern: string
resolutionStrategy: string
V2modelsSlotType Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The V2modelsSlotType resource accepts the following input properties:
- Bot
Id string - Identifier of the bot associated with this slot type.
- Bot
Version string - Version of the bot associated with this slot type.
- Locale
Id string - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- Composite
Slot V2modelsType Setting Slot Type Composite Slot Type Setting - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - Description string
- Description of the slot type.
- External
Source V2modelsSetting Slot Type External Source Setting - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - Name string
Name of the slot type
The following arguments are optional:
- Parent
Slot stringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- Slot
Type V2modelsValues Slot Type Slot Type Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - Timeouts
V2models
Slot Type Timeouts - Value
Selection V2modelsSetting Slot Type Value Selection Setting - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- Bot
Id string - Identifier of the bot associated with this slot type.
- Bot
Version string - Version of the bot associated with this slot type.
- Locale
Id string - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- Composite
Slot V2modelsType Setting Slot Type Composite Slot Type Setting Args - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - Description string
- Description of the slot type.
- External
Source V2modelsSetting Slot Type External Source Setting Args - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - Name string
Name of the slot type
The following arguments are optional:
- Parent
Slot stringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- Slot
Type V2modelsValues Slot Type Slot Type Values Args - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - Timeouts
V2models
Slot Type Timeouts Args - Value
Selection V2modelsSetting Slot Type Value Selection Setting Args - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- bot
Id String - Identifier of the bot associated with this slot type.
- bot
Version String - Version of the bot associated with this slot type.
- locale
Id String - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- composite
Slot V2modelsType Setting Slot Type Composite Slot Type Setting - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - description String
- Description of the slot type.
- external
Source V2modelsSetting Slot Type External Source Setting - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - name String
Name of the slot type
The following arguments are optional:
- parent
Slot StringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- slot
Type V2modelsValues Slot Type Slot Type Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - timeouts
V2models
Slot Type Timeouts - value
Selection V2modelsSetting Slot Type Value Selection Setting - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- bot
Id string - Identifier of the bot associated with this slot type.
- bot
Version string - Version of the bot associated with this slot type.
- locale
Id string - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- composite
Slot V2modelsType Setting Slot Type Composite Slot Type Setting - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - description string
- Description of the slot type.
- external
Source V2modelsSetting Slot Type External Source Setting - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - name string
Name of the slot type
The following arguments are optional:
- parent
Slot stringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- slot
Type V2modelsValues Slot Type Slot Type Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - timeouts
V2models
Slot Type Timeouts - value
Selection V2modelsSetting Slot Type Value Selection Setting - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- bot_
id str - Identifier of the bot associated with this slot type.
- bot_
version str - Version of the bot associated with this slot type.
- locale_
id str - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- composite_
slot_ V2modelstype_ setting Slot Type Composite Slot Type Setting Args - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - description str
- Description of the slot type.
- external_
source_ V2modelssetting Slot Type External Source Setting Args - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - name str
Name of the slot type
The following arguments are optional:
- parent_
slot_ strtype_ signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- slot_
type_ V2modelsvalues Slot Type Slot Type Values Args - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - timeouts
V2models
Slot Type Timeouts Args - value_
selection_ V2modelssetting Slot Type Value Selection Setting Args - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- bot
Id String - Identifier of the bot associated with this slot type.
- bot
Version String - Version of the bot associated with this slot type.
- locale
Id String - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- composite
Slot Property MapType Setting - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - description String
- Description of the slot type.
- external
Source Property MapSetting - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - name String
Name of the slot type
The following arguments are optional:
- parent
Slot StringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- slot
Type Property MapValues - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - timeouts Property Map
- value
Selection Property MapSetting - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
Outputs
All input properties are implicitly available as output properties. Additionally, the V2modelsSlotType resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Slot
Type stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Slot
Type stringId
- id String
- The provider-assigned unique ID for this managed resource.
- slot
Type StringId
- id string
- The provider-assigned unique ID for this managed resource.
- slot
Type stringId
- id str
- The provider-assigned unique ID for this managed resource.
- slot_
type_ strid
- id String
- The provider-assigned unique ID for this managed resource.
- slot
Type StringId
Look up Existing V2modelsSlotType Resource
Get an existing V2modelsSlotType resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: V2modelsSlotTypeState, opts?: CustomResourceOptions): V2modelsSlotType
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bot_id: Optional[str] = None,
bot_version: Optional[str] = None,
composite_slot_type_setting: Optional[V2modelsSlotTypeCompositeSlotTypeSettingArgs] = None,
description: Optional[str] = None,
external_source_setting: Optional[V2modelsSlotTypeExternalSourceSettingArgs] = None,
locale_id: Optional[str] = None,
name: Optional[str] = None,
parent_slot_type_signature: Optional[str] = None,
slot_type_id: Optional[str] = None,
slot_type_values: Optional[V2modelsSlotTypeSlotTypeValuesArgs] = None,
timeouts: Optional[V2modelsSlotTypeTimeoutsArgs] = None,
value_selection_setting: Optional[V2modelsSlotTypeValueSelectionSettingArgs] = None) -> V2modelsSlotType
func GetV2modelsSlotType(ctx *Context, name string, id IDInput, state *V2modelsSlotTypeState, opts ...ResourceOption) (*V2modelsSlotType, error)
public static V2modelsSlotType Get(string name, Input<string> id, V2modelsSlotTypeState? state, CustomResourceOptions? opts = null)
public static V2modelsSlotType get(String name, Output<String> id, V2modelsSlotTypeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bot
Id string - Identifier of the bot associated with this slot type.
- Bot
Version string - Version of the bot associated with this slot type.
- Composite
Slot V2modelsType Setting Slot Type Composite Slot Type Setting - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - Description string
- Description of the slot type.
- External
Source V2modelsSetting Slot Type External Source Setting - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - Locale
Id string - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- Name string
Name of the slot type
The following arguments are optional:
- Parent
Slot stringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- Slot
Type stringId - Slot
Type V2modelsValues Slot Type Slot Type Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - Timeouts
V2models
Slot Type Timeouts - Value
Selection V2modelsSetting Slot Type Value Selection Setting - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- Bot
Id string - Identifier of the bot associated with this slot type.
- Bot
Version string - Version of the bot associated with this slot type.
- Composite
Slot V2modelsType Setting Slot Type Composite Slot Type Setting Args - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - Description string
- Description of the slot type.
- External
Source V2modelsSetting Slot Type External Source Setting Args - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - Locale
Id string - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- Name string
Name of the slot type
The following arguments are optional:
- Parent
Slot stringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- Slot
Type stringId - Slot
Type V2modelsValues Slot Type Slot Type Values Args - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - Timeouts
V2models
Slot Type Timeouts Args - Value
Selection V2modelsSetting Slot Type Value Selection Setting Args - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- bot
Id String - Identifier of the bot associated with this slot type.
- bot
Version String - Version of the bot associated with this slot type.
- composite
Slot V2modelsType Setting Slot Type Composite Slot Type Setting - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - description String
- Description of the slot type.
- external
Source V2modelsSetting Slot Type External Source Setting - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - locale
Id String - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- name String
Name of the slot type
The following arguments are optional:
- parent
Slot StringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- slot
Type StringId - slot
Type V2modelsValues Slot Type Slot Type Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - timeouts
V2models
Slot Type Timeouts - value
Selection V2modelsSetting Slot Type Value Selection Setting - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- bot
Id string - Identifier of the bot associated with this slot type.
- bot
Version string - Version of the bot associated with this slot type.
- composite
Slot V2modelsType Setting Slot Type Composite Slot Type Setting - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - description string
- Description of the slot type.
- external
Source V2modelsSetting Slot Type External Source Setting - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - locale
Id string - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- name string
Name of the slot type
The following arguments are optional:
- parent
Slot stringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- slot
Type stringId - slot
Type V2modelsValues Slot Type Slot Type Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - timeouts
V2models
Slot Type Timeouts - value
Selection V2modelsSetting Slot Type Value Selection Setting - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- bot_
id str - Identifier of the bot associated with this slot type.
- bot_
version str - Version of the bot associated with this slot type.
- composite_
slot_ V2modelstype_ setting Slot Type Composite Slot Type Setting Args - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - description str
- Description of the slot type.
- external_
source_ V2modelssetting Slot Type External Source Setting Args - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - locale_
id str - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- name str
Name of the slot type
The following arguments are optional:
- parent_
slot_ strtype_ signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- slot_
type_ strid - slot_
type_ V2modelsvalues Slot Type Slot Type Values Args - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - timeouts
V2models
Slot Type Timeouts Args - value_
selection_ V2modelssetting Slot Type Value Selection Setting Args - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
- bot
Id String - Identifier of the bot associated with this slot type.
- bot
Version String - Version of the bot associated with this slot type.
- composite
Slot Property MapType Setting - Specifications for a composite slot type. See
composite_slot_type_setting
argument reference below. - description String
- Description of the slot type.
- external
Source Property MapSetting - Type of external information used to create the slot type. See
external_source_setting
argument reference below. - locale
Id String - Identifier of the language and locale where this slot type is used. All of the bots, slot types, and slots used by the intent must have the same locale.
- name String
Name of the slot type
The following arguments are optional:
- parent
Slot StringType Signature - Built-in slot type used as a parent of this slot type. When you define a parent slot type, the new slot type has the configuration of the parent slot type. Only AMAZON.AlphaNumeric is supported.
- slot
Type StringId - slot
Type Property MapValues - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - timeouts Property Map
- value
Selection Property MapSetting - Determines the strategy that Amazon Lex uses to select a value from the list of possible values. The field can be set to one of the following values:
ORIGINAL_VALUE
returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
if there is a resolution list for the slot, return the first value in the resolution list. If there is no resolution list, return null. If you don't specify the valueSelectionSetting parameter, the default is ORIGINAL_VALUE. Seevalue_selection_setting
argument reference below.
Supporting Types
V2modelsSlotTypeCompositeSlotTypeSetting, V2modelsSlotTypeCompositeSlotTypeSettingArgs
- Sub
Slots List<object> - Subslots in the composite slot. Contains filtered or unexported fields. See [
sub_slot_type_composition
argument reference] below.
- Sub
Slots []interface{} - Subslots in the composite slot. Contains filtered or unexported fields. See [
sub_slot_type_composition
argument reference] below.
- sub
Slots List<Object> - Subslots in the composite slot. Contains filtered or unexported fields. See [
sub_slot_type_composition
argument reference] below.
- sub
Slots any[] - Subslots in the composite slot. Contains filtered or unexported fields. See [
sub_slot_type_composition
argument reference] below.
- sub_
slots Sequence[Any] - Subslots in the composite slot. Contains filtered or unexported fields. See [
sub_slot_type_composition
argument reference] below.
- sub
Slots List<Any> - Subslots in the composite slot. Contains filtered or unexported fields. See [
sub_slot_type_composition
argument reference] below.
V2modelsSlotTypeExternalSourceSetting, V2modelsSlotTypeExternalSourceSettingArgs
- Grammar
Slot V2modelsType Setting Slot Type External Source Setting Grammar Slot Type Setting - Settings required for a slot type based on a grammar that you provide. See
grammar_slot_type_setting
argument reference below.
- Grammar
Slot V2modelsType Setting Slot Type External Source Setting Grammar Slot Type Setting - Settings required for a slot type based on a grammar that you provide. See
grammar_slot_type_setting
argument reference below.
- grammar
Slot V2modelsType Setting Slot Type External Source Setting Grammar Slot Type Setting - Settings required for a slot type based on a grammar that you provide. See
grammar_slot_type_setting
argument reference below.
- grammar
Slot V2modelsType Setting Slot Type External Source Setting Grammar Slot Type Setting - Settings required for a slot type based on a grammar that you provide. See
grammar_slot_type_setting
argument reference below.
- grammar_
slot_ V2modelstype_ setting Slot Type External Source Setting Grammar Slot Type Setting - Settings required for a slot type based on a grammar that you provide. See
grammar_slot_type_setting
argument reference below.
- grammar
Slot Property MapType Setting - Settings required for a slot type based on a grammar that you provide. See
grammar_slot_type_setting
argument reference below.
V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSetting, V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingArgs
- Source
V2models
Slot Type External Source Setting Grammar Slot Type Setting Source - Source of the grammar used to create the slot type. See
grammar_slot_type_source
argument reference below.
- Source
V2models
Slot Type External Source Setting Grammar Slot Type Setting Source - Source of the grammar used to create the slot type. See
grammar_slot_type_source
argument reference below.
- source
V2models
Slot Type External Source Setting Grammar Slot Type Setting Source - Source of the grammar used to create the slot type. See
grammar_slot_type_source
argument reference below.
- source
V2models
Slot Type External Source Setting Grammar Slot Type Setting Source - Source of the grammar used to create the slot type. See
grammar_slot_type_source
argument reference below.
- source
V2models
Slot Type External Source Setting Grammar Slot Type Setting Source - Source of the grammar used to create the slot type. See
grammar_slot_type_source
argument reference below.
- source Property Map
- Source of the grammar used to create the slot type. See
grammar_slot_type_source
argument reference below.
V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSource, V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs
- Kms
Key stringArn - S3Bucket
Name string - S3Object
Key string
- Kms
Key stringArn - S3Bucket
Name string - S3Object
Key string
- kms
Key StringArn - s3Bucket
Name String - s3Object
Key String
- kms
Key stringArn - s3Bucket
Name string - s3Object
Key string
- kms_
key_ strarn - s3_
bucket_ strname - s3_
object_ strkey
- kms
Key StringArn - s3Bucket
Name String - s3Object
Key String
V2modelsSlotTypeSlotTypeValues, V2modelsSlotTypeSlotTypeValuesArgs
- Slot
Type List<object>Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - Synonyms
List<V2models
Slot Type Slot Type Values Synonym> - Additional values related to the slot type entry. See
sample_value
argument reference below.
- Slot
Type []interface{}Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - Synonyms
[]V2models
Slot Type Slot Type Values Synonym - Additional values related to the slot type entry. See
sample_value
argument reference below.
- slot
Type List<Object>Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - synonyms
List<V2models
Slot Type Slot Type Values Synonym> - Additional values related to the slot type entry. See
sample_value
argument reference below.
- slot
Type any[]Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - synonyms
V2models
Slot Type Slot Type Values Synonym[] - Additional values related to the slot type entry. See
sample_value
argument reference below.
- slot_
type_ Sequence[Any]values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - synonyms
Sequence[V2models
Slot Type Slot Type Values Synonym] - Additional values related to the slot type entry. See
sample_value
argument reference below.
- slot
Type List<Any>Values - List of SlotTypeValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for a slot. See
slot_type_values
argument reference below. - synonyms List<Property Map>
- Additional values related to the slot type entry. See
sample_value
argument reference below.
V2modelsSlotTypeSlotTypeValuesSynonym, V2modelsSlotTypeSlotTypeValuesSynonymArgs
- Value string
- Value string
- value String
- value string
- value str
- value String
V2modelsSlotTypeTimeouts, V2modelsSlotTypeTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
V2modelsSlotTypeValueSelectionSetting, V2modelsSlotTypeValueSelectionSettingArgs
- Resolution
Strategy string - Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
ORIGINAL_VALUE
- Returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default isORIGINAL_VALUE
. Valid values areOriginalValue
,TopResolution
, andConcatenation
. - Advanced
Recognition List<V2modelsSettings Slot Type Value Selection Setting Advanced Recognition Setting> - Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [
advanced_recognition_setting
argument reference] below. - Regex
Filters List<V2modelsSlot Type Value Selection Setting Regex Filter> - Used to validate the value of the slot. See [
regex_filter
argument reference] below.
- Resolution
Strategy string - Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
ORIGINAL_VALUE
- Returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default isORIGINAL_VALUE
. Valid values areOriginalValue
,TopResolution
, andConcatenation
. - Advanced
Recognition []V2modelsSettings Slot Type Value Selection Setting Advanced Recognition Setting - Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [
advanced_recognition_setting
argument reference] below. - Regex
Filters []V2modelsSlot Type Value Selection Setting Regex Filter - Used to validate the value of the slot. See [
regex_filter
argument reference] below.
- resolution
Strategy String - Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
ORIGINAL_VALUE
- Returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default isORIGINAL_VALUE
. Valid values areOriginalValue
,TopResolution
, andConcatenation
. - advanced
Recognition List<V2modelsSettings Slot Type Value Selection Setting Advanced Recognition Setting> - Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [
advanced_recognition_setting
argument reference] below. - regex
Filters List<V2modelsSlot Type Value Selection Setting Regex Filter> - Used to validate the value of the slot. See [
regex_filter
argument reference] below.
- resolution
Strategy string - Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
ORIGINAL_VALUE
- Returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default isORIGINAL_VALUE
. Valid values areOriginalValue
,TopResolution
, andConcatenation
. - advanced
Recognition V2modelsSettings Slot Type Value Selection Setting Advanced Recognition Setting[] - Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [
advanced_recognition_setting
argument reference] below. - regex
Filters V2modelsSlot Type Value Selection Setting Regex Filter[] - Used to validate the value of the slot. See [
regex_filter
argument reference] below.
- resolution_
strategy str - Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
ORIGINAL_VALUE
- Returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default isORIGINAL_VALUE
. Valid values areOriginalValue
,TopResolution
, andConcatenation
. - advanced_
recognition_ Sequence[V2modelssettings Slot Type Value Selection Setting Advanced Recognition Setting] - Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [
advanced_recognition_setting
argument reference] below. - regex_
filters Sequence[V2modelsSlot Type Value Selection Setting Regex Filter] - Used to validate the value of the slot. See [
regex_filter
argument reference] below.
- resolution
Strategy String - Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:
ORIGINAL_VALUE
- Returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION
If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned. If you don't specify the valueSelectionStrategy , the default isORIGINAL_VALUE
. Valid values areOriginalValue
,TopResolution
, andConcatenation
. - advanced
Recognition List<Property Map>Settings - Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances. See [
advanced_recognition_setting
argument reference] below. - regex
Filters List<Property Map> - Used to validate the value of the slot. See [
regex_filter
argument reference] below.
V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSetting, V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs
- Audio
Recognition stringSetting
- Audio
Recognition stringSetting
- audio
Recognition StringSetting
- audio
Recognition stringSetting
- audio
Recognition StringSetting
V2modelsSlotTypeValueSelectionSettingRegexFilter, V2modelsSlotTypeValueSelectionSettingRegexFilterArgs
- Pattern string
- Pattern string
- pattern String
- pattern string
- pattern str
- pattern String
Import
Using pulumi import
, import Lex V2 Models Slot Type using the example_id_arg
. For example:
$ pulumi import aws:lex/v2modelsSlotType:V2modelsSlotType example bot-1234,DRAFT,en_US,slot_type-id-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.