aws.lex.V2modelsSlotType
Explore with Pulumi AI
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 example = new aws.lex.V2modelsBot("example", {
name: "example",
idleSessionTtlInSeconds: 60,
roleArn: exampleAwsIamRole.arn,
dataPrivacies: [{
childDirected: true,
}],
});
const exampleV2modelsBotLocale = new aws.lex.V2modelsBotLocale("example", {
localeId: "en_US",
botId: example.id,
botVersion: "DRAFT",
nLuIntentConfidenceThreshold: 0.7,
});
const exampleV2modelsBotVersion = new aws.lex.V2modelsBotVersion("example", {
botId: example.id,
localeSpecification: exampleV2modelsBotLocale.localeId.apply(localeId => {
[localeId]: {
sourceBotVersion: "DRAFT",
},
}),
});
const exampleV2modelsSlotType = new aws.lex.V2modelsSlotType("example", {
botId: example.id,
botVersion: exampleV2modelsBotLocale.botVersion,
name: "example",
localeId: exampleV2modelsBotLocale.localeId,
});
import pulumi
import pulumi_aws as aws
example = aws.lex.V2modelsBot("example",
name="example",
idle_session_ttl_in_seconds=60,
role_arn=example_aws_iam_role["arn"],
data_privacies=[{
"child_directed": True,
}])
example_v2models_bot_locale = aws.lex.V2modelsBotLocale("example",
locale_id="en_US",
bot_id=example.id,
bot_version="DRAFT",
n_lu_intent_confidence_threshold=0.7)
example_v2models_bot_version = aws.lex.V2modelsBotVersion("example",
bot_id=example.id,
locale_specification=example_v2models_bot_locale.locale_id.apply(lambda locale_id: {
locale_id: {
"sourceBotVersion": "DRAFT",
},
}))
example_v2models_slot_type = aws.lex.V2modelsSlotType("example",
bot_id=example.id,
bot_version=example_v2models_bot_locale.bot_version,
name="example",
locale_id=example_v2models_bot_locale.locale_id)
package main
import (
"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 {
example, err := lex.NewV2modelsBot(ctx, "example", &lex.V2modelsBotArgs{
Name: pulumi.String("example"),
IdleSessionTtlInSeconds: pulumi.Int(60),
RoleArn: pulumi.Any(exampleAwsIamRole.Arn),
DataPrivacies: lex.V2modelsBotDataPrivacyArray{
&lex.V2modelsBotDataPrivacyArgs{
ChildDirected: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
exampleV2modelsBotLocale, err := lex.NewV2modelsBotLocale(ctx, "example", &lex.V2modelsBotLocaleArgs{
LocaleId: pulumi.String("en_US"),
BotId: example.ID(),
BotVersion: pulumi.String("DRAFT"),
NLuIntentConfidenceThreshold: pulumi.Float64(0.7),
})
if err != nil {
return err
}
_, err = lex.NewV2modelsBotVersion(ctx, "example", &lex.V2modelsBotVersionArgs{
BotId: example.ID(),
LocaleSpecification: exampleV2modelsBotLocale.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, "example", &lex.V2modelsSlotTypeArgs{
BotId: example.ID(),
BotVersion: exampleV2modelsBotLocale.BotVersion,
Name: pulumi.String("example"),
LocaleId: exampleV2modelsBotLocale.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 example = new Aws.Lex.V2modelsBot("example", new()
{
Name = "example",
IdleSessionTtlInSeconds = 60,
RoleArn = exampleAwsIamRole.Arn,
DataPrivacies = new[]
{
new Aws.Lex.Inputs.V2modelsBotDataPrivacyArgs
{
ChildDirected = true,
},
},
});
var exampleV2modelsBotLocale = new Aws.Lex.V2modelsBotLocale("example", new()
{
LocaleId = "en_US",
BotId = example.Id,
BotVersion = "DRAFT",
NLuIntentConfidenceThreshold = 0.7,
});
var exampleV2modelsBotVersion = new Aws.Lex.V2modelsBotVersion("example", new()
{
BotId = example.Id,
LocaleSpecification = exampleV2modelsBotLocale.LocaleId.Apply(localeId =>
{
{ localeId,
{
{ "sourceBotVersion", "DRAFT" },
} },
}),
});
var exampleV2modelsSlotType = new Aws.Lex.V2modelsSlotType("example", new()
{
BotId = example.Id,
BotVersion = exampleV2modelsBotLocale.BotVersion,
Name = "example",
LocaleId = exampleV2modelsBotLocale.LocaleId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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 example = new V2modelsBot("example", V2modelsBotArgs.builder()
.name("example")
.idleSessionTtlInSeconds(60)
.roleArn(exampleAwsIamRole.arn())
.dataPrivacies(V2modelsBotDataPrivacyArgs.builder()
.childDirected(true)
.build())
.build());
var exampleV2modelsBotLocale = new V2modelsBotLocale("exampleV2modelsBotLocale", V2modelsBotLocaleArgs.builder()
.localeId("en_US")
.botId(example.id())
.botVersion("DRAFT")
.nLuIntentConfidenceThreshold(0.7)
.build());
var exampleV2modelsBotVersion = new V2modelsBotVersion("exampleV2modelsBotVersion", V2modelsBotVersionArgs.builder()
.botId(example.id())
.localeSpecification(exampleV2modelsBotLocale.localeId().applyValue(localeId -> Map.of(localeId, Map.of("sourceBotVersion", "DRAFT"))))
.build());
var exampleV2modelsSlotType = new V2modelsSlotType("exampleV2modelsSlotType", V2modelsSlotTypeArgs.builder()
.botId(example.id())
.botVersion(exampleV2modelsBotLocale.botVersion())
.name("example")
.localeId(exampleV2modelsBotLocale.localeId())
.build());
}
}
resources:
example:
type: aws:lex:V2modelsBot
properties:
name: example
idleSessionTtlInSeconds: 60
roleArn: ${exampleAwsIamRole.arn}
dataPrivacies:
- childDirected: true
exampleV2modelsBotLocale:
type: aws:lex:V2modelsBotLocale
name: example
properties:
localeId: en_US
botId: ${example.id}
botVersion: DRAFT
nLuIntentConfidenceThreshold: 0.7
exampleV2modelsBotVersion:
type: aws:lex:V2modelsBotVersion
name: example
properties:
botId: ${example.id}
localeSpecification:
${exampleV2modelsBotLocale.localeId}:
sourceBotVersion: DRAFT
exampleV2modelsSlotType:
type: aws:lex:V2modelsSlotType
name: example
properties:
botId: ${example.id}
botVersion: ${exampleV2modelsBotLocale.botVersion}
name: example
localeId: ${exampleV2modelsBotLocale.localeId}
value_selection_setting Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lex.V2modelsSlotType("example", {
botId: exampleAwsLexv2modelsBot.id,
botVersion: exampleAwsLexv2modelsBotLocale.botVersion,
name: "example",
localeId: exampleAwsLexv2modelsBotLocale.localeId,
valueSelectionSetting: {
resolutionStrategy: "OriginalValue",
advancedRecognitionSettings: [{
audioRecognitionStrategy: "UseSlotValuesAsCustomVocabulary",
}],
},
slotTypeValues: {
sampleValues: [{
value: "exampleValue",
}],
},
});
import pulumi
import pulumi_aws as aws
example = aws.lex.V2modelsSlotType("example",
bot_id=example_aws_lexv2models_bot["id"],
bot_version=example_aws_lexv2models_bot_locale["botVersion"],
name="example",
locale_id=example_aws_lexv2models_bot_locale["localeId"],
value_selection_setting={
"resolution_strategy": "OriginalValue",
"advanced_recognition_settings": [{
"audio_recognition_strategy": "UseSlotValuesAsCustomVocabulary",
}],
},
slot_type_values={
"sample_values": [{
"value": "exampleValue",
}],
})
package main
import (
"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 := lex.NewV2modelsSlotType(ctx, "example", &lex.V2modelsSlotTypeArgs{
BotId: pulumi.Any(exampleAwsLexv2modelsBot.Id),
BotVersion: pulumi.Any(exampleAwsLexv2modelsBotLocale.BotVersion),
Name: pulumi.String("example"),
LocaleId: pulumi.Any(exampleAwsLexv2modelsBotLocale.LocaleId),
ValueSelectionSetting: &lex.V2modelsSlotTypeValueSelectionSettingArgs{
ResolutionStrategy: pulumi.String("OriginalValue"),
AdvancedRecognitionSettings: lex.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArray{
&lex.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs{
AudioRecognitionStrategy: pulumi.String("UseSlotValuesAsCustomVocabulary"),
},
},
},
SlotTypeValues: &lex.V2modelsSlotTypeSlotTypeValuesArgs{
SampleValues: lex.V2modelsSlotTypeSlotTypeValuesSampleValueArray{
&lex.V2modelsSlotTypeSlotTypeValuesSampleValueArgs{
Value: pulumi.String("exampleValue"),
},
},
},
})
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 example = new Aws.Lex.V2modelsSlotType("example", new()
{
BotId = exampleAwsLexv2modelsBot.Id,
BotVersion = exampleAwsLexv2modelsBotLocale.BotVersion,
Name = "example",
LocaleId = exampleAwsLexv2modelsBotLocale.LocaleId,
ValueSelectionSetting = new Aws.Lex.Inputs.V2modelsSlotTypeValueSelectionSettingArgs
{
ResolutionStrategy = "OriginalValue",
AdvancedRecognitionSettings = new[]
{
new Aws.Lex.Inputs.V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs
{
AudioRecognitionStrategy = "UseSlotValuesAsCustomVocabulary",
},
},
},
SlotTypeValues = new Aws.Lex.Inputs.V2modelsSlotTypeSlotTypeValuesArgs
{
SampleValues = new[]
{
new Aws.Lex.Inputs.V2modelsSlotTypeSlotTypeValuesSampleValueArgs
{
Value = "exampleValue",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lex.V2modelsSlotType;
import com.pulumi.aws.lex.V2modelsSlotTypeArgs;
import com.pulumi.aws.lex.inputs.V2modelsSlotTypeValueSelectionSettingArgs;
import com.pulumi.aws.lex.inputs.V2modelsSlotTypeSlotTypeValuesArgs;
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 V2modelsSlotType("example", V2modelsSlotTypeArgs.builder()
.botId(exampleAwsLexv2modelsBot.id())
.botVersion(exampleAwsLexv2modelsBotLocale.botVersion())
.name("example")
.localeId(exampleAwsLexv2modelsBotLocale.localeId())
.valueSelectionSetting(V2modelsSlotTypeValueSelectionSettingArgs.builder()
.resolutionStrategy("OriginalValue")
.advancedRecognitionSettings(V2modelsSlotTypeValueSelectionSettingAdvancedRecognitionSettingArgs.builder()
.audioRecognitionStrategy("UseSlotValuesAsCustomVocabulary")
.build())
.build())
.slotTypeValues(V2modelsSlotTypeSlotTypeValuesArgs.builder()
.sampleValues(V2modelsSlotTypeSlotTypeValuesSampleValueArgs.builder()
.value("exampleValue")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:lex:V2modelsSlotType
properties:
botId: ${exampleAwsLexv2modelsBot.id}
botVersion: ${exampleAwsLexv2modelsBotLocale.botVersion}
name: example
localeId: ${exampleAwsLexv2modelsBotLocale.localeId}
valueSelectionSetting:
resolutionStrategy: OriginalValue
advancedRecognitionSettings:
- audioRecognitionStrategy: UseSlotValuesAsCustomVocabulary
slotTypeValues:
sampleValues:
- value: exampleValue
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[]
{
new Aws.Lex.Inputs.V2modelsSlotTypeCompositeSlotTypeSettingSubSlotArgs
{
Name = "string",
SlotTypeId = "string",
},
},
},
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
{
SampleValues = new[]
{
new Aws.Lex.Inputs.V2modelsSlotTypeSlotTypeValuesSampleValueArgs
{
Value = "string",
},
},
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
{
AudioRecognitionStrategy = "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: lex.V2modelsSlotTypeCompositeSlotTypeSettingSubSlotArray{
&lex.V2modelsSlotTypeCompositeSlotTypeSettingSubSlotArgs{
Name: pulumi.String("string"),
SlotTypeId: pulumi.String("string"),
},
},
},
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{
SampleValues: lex.V2modelsSlotTypeSlotTypeValuesSampleValueArray{
&lex.V2modelsSlotTypeSlotTypeValuesSampleValueArgs{
Value: pulumi.String("string"),
},
},
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{
AudioRecognitionStrategy: 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(V2modelsSlotTypeCompositeSlotTypeSettingSubSlotArgs.builder()
.name("string")
.slotTypeId("string")
.build())
.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()
.sampleValues(V2modelsSlotTypeSlotTypeValuesSampleValueArgs.builder()
.value("string")
.build())
.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()
.audioRecognitionStrategy("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={
"sub_slots": [{
"name": "string",
"slot_type_id": "string",
}],
},
description="string",
external_source_setting={
"grammar_slot_type_setting": {
"source": {
"kms_key_arn": "string",
"s3_bucket_name": "string",
"s3_object_key": "string",
},
},
},
name="string",
parent_slot_type_signature="string",
slot_type_values={
"sample_values": [{
"value": "string",
}],
"synonyms": [{
"value": "string",
}],
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
value_selection_setting={
"resolution_strategy": "string",
"advanced_recognition_settings": [{
"audio_recognition_strategy": "string",
}],
"regex_filters": [{
"pattern": "string",
}],
})
const v2modelsSlotTypeResource = new aws.lex.V2modelsSlotType("v2modelsSlotTypeResource", {
botId: "string",
botVersion: "string",
localeId: "string",
compositeSlotTypeSetting: {
subSlots: [{
name: "string",
slotTypeId: "string",
}],
},
description: "string",
externalSourceSetting: {
grammarSlotTypeSetting: {
source: {
kmsKeyArn: "string",
s3BucketName: "string",
s3ObjectKey: "string",
},
},
},
name: "string",
parentSlotTypeSignature: "string",
slotTypeValues: {
sampleValues: [{
value: "string",
}],
synonyms: [{
value: "string",
}],
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
valueSelectionSetting: {
resolutionStrategy: "string",
advancedRecognitionSettings: [{
audioRecognitionStrategy: "string",
}],
regexFilters: [{
pattern: "string",
}],
},
});
type: aws:lex:V2modelsSlotType
properties:
botId: string
botVersion: string
compositeSlotTypeSetting:
subSlots:
- name: string
slotTypeId: string
description: string
externalSourceSetting:
grammarSlotTypeSetting:
source:
kmsKeyArn: string
s3BucketName: string
s3ObjectKey: string
localeId: string
name: string
parentSlotTypeSignature: string
slotTypeValues:
sampleValues:
- value: string
synonyms:
- value: string
timeouts:
create: string
delete: string
update: string
valueSelectionSetting:
advancedRecognitionSettings:
- audioRecognitionStrategy: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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.
See
value_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.
See
value_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.
See
value_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.
See
value_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.
See
value_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.
See
value_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 - Unique identifier for the slot type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Slot
Type stringId - Unique identifier for the slot type.
- id String
- The provider-assigned unique ID for this managed resource.
- slot
Type StringId - Unique identifier for the slot type.
- id string
- The provider-assigned unique ID for this managed resource.
- slot
Type stringId - Unique identifier for the slot type.
- id str
- The provider-assigned unique ID for this managed resource.
- slot_
type_ strid - Unique identifier for the slot type.
- id String
- The provider-assigned unique ID for this managed resource.
- slot
Type StringId - Unique identifier for the slot type.
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 - Unique identifier for the slot type.
- 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.
See
value_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 - Unique identifier for the slot type.
- 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.
See
value_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 - Unique identifier for the slot type.
- 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.
See
value_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 - Unique identifier for the slot type.
- 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.
See
value_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 - Unique identifier for the slot type.
- 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.
See
value_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 - Unique identifier for the slot type.
- 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.
See
value_selection_setting
argument reference below.
Supporting Types
V2modelsSlotTypeCompositeSlotTypeSetting, V2modelsSlotTypeCompositeSlotTypeSettingArgs
- Sub
Slots List<V2modelsSlot Type Composite Slot Type Setting Sub Slot> - Sub slots in the composite slot.
See
sub_slots
argument reference below.
- Sub
Slots []V2modelsSlot Type Composite Slot Type Setting Sub Slot - Sub slots in the composite slot.
See
sub_slots
argument reference below.
- sub
Slots List<V2modelsSlot Type Composite Slot Type Setting Sub Slot> - Sub slots in the composite slot.
See
sub_slots
argument reference below.
- sub
Slots V2modelsSlot Type Composite Slot Type Setting Sub Slot[] - Sub slots in the composite slot.
See
sub_slots
argument reference below.
- sub_
slots Sequence[V2modelsSlot Type Composite Slot Type Setting Sub Slot] - Sub slots in the composite slot.
See
sub_slots
argument reference below.
- sub
Slots List<Property Map> - Sub slots in the composite slot.
See
sub_slots
argument reference below.
V2modelsSlotTypeCompositeSlotTypeSettingSubSlot, V2modelsSlotTypeCompositeSlotTypeSettingSubSlotArgs
- Name string
- Name of a constituent sub slot inside a composite slot.
- Slot
Type stringId - Unique identifier assigned to a slot type.
This refers to either a built-in slot type or the unique
slot_type_id
of a custom slot type.
- Name string
- Name of a constituent sub slot inside a composite slot.
- Slot
Type stringId - Unique identifier assigned to a slot type.
This refers to either a built-in slot type or the unique
slot_type_id
of a custom slot type.
- name String
- Name of a constituent sub slot inside a composite slot.
- slot
Type StringId - Unique identifier assigned to a slot type.
This refers to either a built-in slot type or the unique
slot_type_id
of a custom slot type.
- name string
- Name of a constituent sub slot inside a composite slot.
- slot
Type stringId - Unique identifier assigned to a slot type.
This refers to either a built-in slot type or the unique
slot_type_id
of a custom slot type.
- name str
- Name of a constituent sub slot inside a composite slot.
- slot_
type_ strid - Unique identifier assigned to a slot type.
This refers to either a built-in slot type or the unique
slot_type_id
of a custom slot type.
- name String
- Name of a constituent sub slot inside a composite slot.
- slot
Type StringId - Unique identifier assigned to a slot type.
This refers to either a built-in slot type or the unique
slot_type_id
of a custom slot type.
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
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
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
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
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
source
argument reference below.
- source Property Map
- Source of the grammar used to create the slot type.
See
source
argument reference below.
V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSource, V2modelsSlotTypeExternalSourceSettingGrammarSlotTypeSettingSourceArgs
- Kms
Key stringArn - KMS key required to decrypt the contents of the grammar, if any.
- S3Bucket
Name string - Name of the Amazon S3 bucket that contains the grammar source.
- S3Object
Key string - Path to the grammar in the Amazon S3 bucket.
- Kms
Key stringArn - KMS key required to decrypt the contents of the grammar, if any.
- S3Bucket
Name string - Name of the Amazon S3 bucket that contains the grammar source.
- S3Object
Key string - Path to the grammar in the Amazon S3 bucket.
- kms
Key StringArn - KMS key required to decrypt the contents of the grammar, if any.
- s3Bucket
Name String - Name of the Amazon S3 bucket that contains the grammar source.
- s3Object
Key String - Path to the grammar in the Amazon S3 bucket.
- kms
Key stringArn - KMS key required to decrypt the contents of the grammar, if any.
- s3Bucket
Name string - Name of the Amazon S3 bucket that contains the grammar source.
- s3Object
Key string - Path to the grammar in the Amazon S3 bucket.
- kms_
key_ strarn - KMS key required to decrypt the contents of the grammar, if any.
- s3_
bucket_ strname - Name of the Amazon S3 bucket that contains the grammar source.
- s3_
object_ strkey - Path to the grammar in the Amazon S3 bucket.
- kms
Key StringArn - KMS key required to decrypt the contents of the grammar, if any.
- s3Bucket
Name String - Name of the Amazon S3 bucket that contains the grammar source.
- s3Object
Key String - Path to the grammar in the Amazon S3 bucket.
V2modelsSlotTypeSlotTypeValues, V2modelsSlotTypeSlotTypeValuesArgs
- Sample
Values List<V2modelsSlot Type Slot Type Values Sample Value> - Value of the slot type entry.
See
sample_value
argument reference below. - Synonyms
List<V2models
Slot Type Slot Type Values Synonym> - A list of additional values related to the slot type entry.
See
synonyms
argument reference below.
- Sample
Values []V2modelsSlot Type Slot Type Values Sample Value - Value of the slot type entry.
See
sample_value
argument reference below. - Synonyms
[]V2models
Slot Type Slot Type Values Synonym - A list of additional values related to the slot type entry.
See
synonyms
argument reference below.
- sample
Values List<V2modelsSlot Type Slot Type Values Sample Value> - Value of the slot type entry.
See
sample_value
argument reference below. - synonyms
List<V2models
Slot Type Slot Type Values Synonym> - A list of additional values related to the slot type entry.
See
synonyms
argument reference below.
- sample
Values V2modelsSlot Type Slot Type Values Sample Value[] - Value of the slot type entry.
See
sample_value
argument reference below. - synonyms
V2models
Slot Type Slot Type Values Synonym[] - A list of additional values related to the slot type entry.
See
synonyms
argument reference below.
- sample_
values Sequence[V2modelsSlot Type Slot Type Values Sample Value] - Value of the slot type entry.
See
sample_value
argument reference below. - synonyms
Sequence[V2models
Slot Type Slot Type Values Synonym] - A list of additional values related to the slot type entry.
See
synonyms
argument reference below.
- sample
Values List<Property Map> - Value of the slot type entry.
See
sample_value
argument reference below. - synonyms List<Property Map>
- A list of additional values related to the slot type entry.
See
synonyms
argument reference below.
V2modelsSlotTypeSlotTypeValuesSampleValue, V2modelsSlotTypeSlotTypeValuesSampleValueArgs
- Value string
- Value that can be used for a slot type.
- Value string
- Value that can be used for a slot type.
- value String
- Value that can be used for a slot type.
- value string
- Value that can be used for a slot type.
- value str
- Value that can be used for a slot type.
- value String
- Value that can be used for a slot type.
V2modelsSlotTypeSlotTypeValuesSynonym, V2modelsSlotTypeSlotTypeValuesSynonymArgs
- Value string
- Value that can be used for a slot type.
- Value string
- Value that can be used for a slot type.
- value String
- Value that can be used for a slot type.
- value string
- Value that can be used for a slot type.
- value str
- Value that can be used for a slot type.
- value String
- Value that can be used for a slot type.
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.
Valid values are
OriginalValue
,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.
Valid values are
OriginalValue
,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.
Valid values are
OriginalValue
,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.
Valid values are
OriginalValue
,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.
Valid values are
OriginalValue
,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.
Valid values are
OriginalValue
,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 stringStrategy - Enables using the slot values as a custom vocabulary for recognizing user utterances.
Valid value is
UseSlotValuesAsCustomVocabulary
.
- Audio
Recognition stringStrategy - Enables using the slot values as a custom vocabulary for recognizing user utterances.
Valid value is
UseSlotValuesAsCustomVocabulary
.
- audio
Recognition StringStrategy - Enables using the slot values as a custom vocabulary for recognizing user utterances.
Valid value is
UseSlotValuesAsCustomVocabulary
.
- audio
Recognition stringStrategy - Enables using the slot values as a custom vocabulary for recognizing user utterances.
Valid value is
UseSlotValuesAsCustomVocabulary
.
- audio_
recognition_ strstrategy - Enables using the slot values as a custom vocabulary for recognizing user utterances.
Valid value is
UseSlotValuesAsCustomVocabulary
.
- audio
Recognition StringStrategy - Enables using the slot values as a custom vocabulary for recognizing user utterances.
Valid value is
UseSlotValuesAsCustomVocabulary
.
V2modelsSlotTypeValueSelectionSettingRegexFilter, V2modelsSlotTypeValueSelectionSettingRegexFilterArgs
- Pattern string
- A regular expression used to validate the value of a slot.
- Pattern string
- A regular expression used to validate the value of a slot.
- pattern String
- A regular expression used to validate the value of a slot.
- pattern string
- A regular expression used to validate the value of a slot.
- pattern str
- A regular expression used to validate the value of a slot.
- pattern String
- A regular expression used to validate the value of a slot.
Import
Using pulumi import
, import Lex V2 Models Slot Type using using a comma-delimited string concatenating bot_id
, bot_version
, locale_id
, and slot_type_id
. 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.