@Stability(value=Stable)
public static interface CfnBot.SlotTypeProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;
SlotTypeProperty slotTypeProperty = SlotTypeProperty.builder()
.name("name")
// the properties below are optional
.description("description")
.externalSourceSetting(ExternalSourceSettingProperty.builder()
.grammarSlotTypeSetting(GrammarSlotTypeSettingProperty.builder()
.source(GrammarSlotTypeSourceProperty.builder()
.s3BucketName("s3BucketName")
.s3ObjectKey("s3ObjectKey")
// the properties below are optional
.kmsKeyArn("kmsKeyArn")
.build())
.build())
.build())
.parentSlotTypeSignature("parentSlotTypeSignature")
.slotTypeValues(List.of(SlotTypeValueProperty.builder()
.sampleValue(SampleValueProperty.builder()
.value("value")
.build())
// the properties below are optional
.synonyms(List.of(SampleValueProperty.builder()
.value("value")
.build()))
.build()))
.valueSelectionSetting(SlotValueSelectionSettingProperty.builder()
.resolutionStrategy("resolutionStrategy")
// the properties below are optional
.advancedRecognitionSetting(AdvancedRecognitionSettingProperty.builder()
.audioRecognitionStrategy("audioRecognitionStrategy")
.build())
.regexFilter(SlotValueRegexFilterProperty.builder()
.pattern("pattern")
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBot.SlotTypeProperty.Builder
A builder for
CfnBot.SlotTypeProperty |
static class |
CfnBot.SlotTypeProperty.Jsii$Proxy
An implementation for
CfnBot.SlotTypeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBot.SlotTypeProperty.Builder |
builder() |
default String |
getDescription()
A description of the slot type.
|
default Object |
getExternalSourceSetting()
Sets the type of external information used to create the slot type.
|
String |
getName()
The name of the slot type.
|
default String |
getParentSlotTypeSignature()
The built-in slot type used as a parent of this slot type.
|
default Object |
getSlotTypeValues()
A list of SlotTypeValue objects that defines the values that the slot type can take.
|
default Object |
getValueSelectionSetting()
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
|
@Stability(value=Stable) @NotNull String getName()
A slot type name must be unique withing the account.
@Stability(value=Stable) @Nullable default String getDescription()
Use the description to help identify the slot type in lists.
@Stability(value=Stable) @Nullable default Object getExternalSourceSetting()
@Stability(value=Stable) @Nullable default String getParentSlotTypeSignature()
When you define a parent slot type, the new slot type has the configuration of the parent lot type.
Only AMAZON.AlphaNumeric is supported.
@Stability(value=Stable) @Nullable default Object getSlotTypeValues()
Each value can have a list of synonyms, additional values that help train the machine learning model about the values that it resolves for the slot.
@Stability(value=Stable) @Nullable default Object getValueSelectionSetting()
The field can be set to one of the following values:
If you don't specify the valueSelectionStrategy, the default is OriginalValue.
@Stability(value=Stable) static CfnBot.SlotTypeProperty.Builder builder()
CfnBot.SlotTypeProperty.Builder of CfnBot.SlotTypePropertyCopyright © 2022. All rights reserved.