interface SubSlotSettingProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Lex.CfnBotPropsMixin.SubSlotSettingProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awslex#CfnBotPropsMixin_SubSlotSettingProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.SubSlotSettingProperty |
Python | aws_cdk.cfn_property_mixins.aws_lex.CfnBotPropsMixin.SubSlotSettingProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_lex » CfnBotPropsMixin » SubSlotSettingProperty |
Specifications for the constituent sub slots and the expression for the composite slot.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from '@aws-cdk/cfn-property-mixins';
const subSlotSettingProperty: lex.CfnBotPropsMixin.SubSlotSettingProperty = {
expression: 'expression',
slotSpecifications: {
slotSpecificationsKey: {
slotTypeId: 'slotTypeId',
slotTypeName: 'slotTypeName',
valueElicitationSetting: {
defaultValueSpecification: {
defaultValueList: [{
defaultValue: 'defaultValue',
}],
},
promptSpecification: {
allowInterrupt: false,
maxRetries: 123,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
messageSelectionStrategy: 'messageSelectionStrategy',
promptAttemptsSpecification: {
promptAttemptsSpecificationKey: {
allowedInputTypes: {
allowAudioInput: false,
allowDtmfInput: false,
},
allowInterrupt: false,
audioAndDtmfInputSpecification: {
audioSpecification: {
endTimeoutMs: 123,
maxLengthMs: 123,
},
dtmfSpecification: {
deletionCharacter: 'deletionCharacter',
endCharacter: 'endCharacter',
endTimeoutMs: 123,
maxLength: 123,
},
startTimeoutMs: 123,
},
textInputSpecification: {
startTimeoutMs: 123,
},
},
},
},
sampleUtterances: [{
utterance: 'utterance',
}],
waitAndContinueSpecification: {
continueResponse: {
allowInterrupt: false,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
},
isActive: false,
stillWaitingResponse: {
allowInterrupt: false,
frequencyInSeconds: 123,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
timeoutInSeconds: 123,
},
waitingResponse: {
allowInterrupt: false,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
},
},
},
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| expression? | string | The expression text for defining the constituent sub slots in the composite slot using logical AND and OR operators. |
| slot | IResolvable | { [string]: IResolvable | Specifications } | Specifications for the constituent sub slots of a composite slot. |
expression?
Type:
string
(optional)
The expression text for defining the constituent sub slots in the composite slot using logical AND and OR operators.
slotSpecifications?
Type:
IResolvable | { [string]: IResolvable | Specifications }
(optional)
Specifications for the constituent sub slots of a composite slot.

.NET
Go
Java
Python
TypeScript