CompositeSlotTypeSettingProperty Struct
A composite slot is a combination of two or more slots that capture multiple pieces of information in a single user input.
Example
ts
// 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-lib';
const compositeSlotTypeSettingProperty: lex.CfnBot.CompositeSlotTypeSettingProperty = {
subSlots: [{
name: 'name',
// the properties below are optional
slotTypeId: 'slotTypeId',
slotTypeName: 'slotTypeName',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex
composite_slot_type_setting_property = lex.CfnBot.CompositeSlotTypeSettingProperty(
sub_slots=[lex.CfnBot.SubSlotTypeCompositionProperty(
name="name",
# the properties below are optional
slot_type_id="slotTypeId",
slot_type_name="slotTypeName"
)]
)
java
// 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.*;
CompositeSlotTypeSettingProperty compositeSlotTypeSettingProperty = CompositeSlotTypeSettingProperty.builder()
.subSlots(List.of(SubSlotTypeCompositionProperty.builder()
.name("name")
// the properties below are optional
.slotTypeId("slotTypeId")
.slotTypeName("slotTypeName")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;
var compositeSlotTypeSettingProperty = new CompositeSlotTypeSettingProperty {
SubSlots = new [] { new SubSlotTypeCompositionProperty {
Name = "name",
// the properties below are optional
SlotTypeId = "slotTypeId",
SlotTypeName = "slotTypeName"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
compositeSlotTypeSettingProperty := &CompositeSlotTypeSettingProperty{
SubSlots: []interface{}{
&SubSlotTypeCompositionProperty{
Name: jsii.String("name"),
// the properties below are optional
SlotTypeId: jsii.String("slotTypeId"),
SlotTypeName: jsii.String("slotTypeName"),
},
},
}
Properties
subSlotsoptionalIResolvable | IResolvable | CfnBot.SubSlotTypeCompositionProperty[]sub_slotsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SubSlotTypeCompositionProperty]]]subSlotsoptionalIResolvableSubSlotsoptionalIResolvableSubSlotsoptionalinterface{}#Subslots in the composite slot.