Skip to content
v2.278.0

SubSlotSettingProperty Struct ​

Specifications for the constituent sub slots and the expression for the composite slot.

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 subSlotSettingProperty: lex.CfnBot.SubSlotSettingProperty = {
  expression: 'expression',
  slotSpecifications: {
    slotSpecificationsKey: {
      valueElicitationSetting: {
        defaultValueSpecification: {
          defaultValueList: [{
            defaultValue: 'defaultValue',
          }],
        },
        promptSpecification: {
          maxRetries: 123,
          messageGroupsList: [{
            message: {
              customPayload: {
                value: 'value',
              },
              imageResponseCard: {
                title: 'title',

                // the properties below are optional
                buttons: [{
                  text: 'text',
                  value: 'value',
                }],
                imageUrl: 'imageUrl',
                subtitle: 'subtitle',
              },
              plainTextMessage: {
                value: 'value',
              },
              ssmlMessage: {
                value: 'value',
              },
            },

            // the properties below are optional
            variations: [{
              customPayload: {
                value: 'value',
              },
              imageResponseCard: {
                title: 'title',

                // the properties below are optional
                buttons: [{
                  text: 'text',
                  value: 'value',
                }],
                imageUrl: 'imageUrl',
                subtitle: 'subtitle',
              },
              plainTextMessage: {
                value: 'value',
              },
              ssmlMessage: {
                value: 'value',
              },
            }],
          }],

          // the properties below are optional
          allowInterrupt: false,
          messageSelectionStrategy: 'messageSelectionStrategy',
          promptAttemptsSpecification: {
            promptAttemptsSpecificationKey: {
              allowedInputTypes: {
                allowAudioInput: false,
                allowDtmfInput: false,
              },

              // the properties below are optional
              allowInterrupt: false,
              audioAndDtmfInputSpecification: {
                startTimeoutMs: 123,

                // the properties below are optional
                audioSpecification: {
                  endTimeoutMs: 123,
                  maxLengthMs: 123,
                },
                dtmfSpecification: {
                  deletionCharacter: 'deletionCharacter',
                  endCharacter: 'endCharacter',
                  endTimeoutMs: 123,
                  maxLength: 123,
                },
              },
              textInputSpecification: {
                startTimeoutMs: 123,
              },
            },
          },
        },
        sampleUtterances: [{
          utterance: 'utterance',
        }],
        waitAndContinueSpecification: {
          continueResponse: {
            messageGroupsList: [{
              message: {
                customPayload: {
                  value: 'value',
                },
                imageResponseCard: {
                  title: 'title',

                  // the properties below are optional
                  buttons: [{
                    text: 'text',
                    value: 'value',
                  }],
                  imageUrl: 'imageUrl',
                  subtitle: 'subtitle',
                },
                plainTextMessage: {
                  value: 'value',
                },
                ssmlMessage: {
                  value: 'value',
                },
              },

              // the properties below are optional
              variations: [{
                customPayload: {
                  value: 'value',
                },
                imageResponseCard: {
                  title: 'title',

                  // the properties below are optional
                  buttons: [{
                    text: 'text',
                    value: 'value',
                  }],
                  imageUrl: 'imageUrl',
                  subtitle: 'subtitle',
                },
                plainTextMessage: {
                  value: 'value',
                },
                ssmlMessage: {
                  value: 'value',
                },
              }],
            }],

            // the properties below are optional
            allowInterrupt: false,
          },
          isActive: false,
          stillWaitingResponse: {
            frequencyInSeconds: 123,
            messageGroupsList: [{
              message: {
                customPayload: {
                  value: 'value',
                },
                imageResponseCard: {
                  title: 'title',

                  // the properties below are optional
                  buttons: [{
                    text: 'text',
                    value: 'value',
                  }],
                  imageUrl: 'imageUrl',
                  subtitle: 'subtitle',
                },
                plainTextMessage: {
                  value: 'value',
                },
                ssmlMessage: {
                  value: 'value',
                },
              },

              // the properties below are optional
              variations: [{
                customPayload: {
                  value: 'value',
                },
                imageResponseCard: {
                  title: 'title',

                  // the properties below are optional
                  buttons: [{
                    text: 'text',
                    value: 'value',
                  }],
                  imageUrl: 'imageUrl',
                  subtitle: 'subtitle',
                },
                plainTextMessage: {
                  value: 'value',
                },
                ssmlMessage: {
                  value: 'value',
                },
              }],
            }],
            timeoutInSeconds: 123,

            // the properties below are optional
            allowInterrupt: false,
          },
          waitingResponse: {
            messageGroupsList: [{
              message: {
                customPayload: {
                  value: 'value',
                },
                imageResponseCard: {
                  title: 'title',

                  // the properties below are optional
                  buttons: [{
                    text: 'text',
                    value: 'value',
                  }],
                  imageUrl: 'imageUrl',
                  subtitle: 'subtitle',
                },
                plainTextMessage: {
                  value: 'value',
                },
                ssmlMessage: {
                  value: 'value',
                },
              },

              // the properties below are optional
              variations: [{
                customPayload: {
                  value: 'value',
                },
                imageResponseCard: {
                  title: 'title',

                  // the properties below are optional
                  buttons: [{
                    text: 'text',
                    value: 'value',
                  }],
                  imageUrl: 'imageUrl',
                  subtitle: 'subtitle',
                },
                plainTextMessage: {
                  value: 'value',
                },
                ssmlMessage: {
                  value: 'value',
                },
              }],
            }],

            // the properties below are optional
            allowInterrupt: false,
          },
        },
      },

      // 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

sub_slot_setting_property = lex.CfnBot.SubSlotSettingProperty(
    expression="expression",
    slot_specifications={
        "slot_specifications_key": lex.CfnBot.SpecificationsProperty(
            value_elicitation_setting=lex.CfnBot.SubSlotValueElicitationSettingProperty(
                default_value_specification=lex.CfnBot.SlotDefaultValueSpecificationProperty(
                    default_value_list=[lex.CfnBot.SlotDefaultValueProperty(
                        default_value="defaultValue"
                    )]
                ),
                prompt_specification=lex.CfnBot.PromptSpecificationProperty(
                    max_retries=123,
                    message_groups_list=[lex.CfnBot.MessageGroupProperty(
                        message=lex.CfnBot.MessageProperty(
                            custom_payload=lex.CfnBot.CustomPayloadProperty(
                                value="value"
                            ),
                            image_response_card=lex.CfnBot.ImageResponseCardProperty(
                                title="title",

                                # the properties below are optional
                                buttons=[lex.CfnBot.ButtonProperty(
                                    text="text",
                                    value="value"
                                )],
                                image_url="imageUrl",
                                subtitle="subtitle"
                            ),
                            plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                                value="value"
                            ),
                            ssml_message=lex.CfnBot.SSMLMessageProperty(
                                value="value"
                            )
                        ),

                        # the properties below are optional
                        variations=[lex.CfnBot.MessageProperty(
                            custom_payload=lex.CfnBot.CustomPayloadProperty(
                                value="value"
                            ),
                            image_response_card=lex.CfnBot.ImageResponseCardProperty(
                                title="title",

                                # the properties below are optional
                                buttons=[lex.CfnBot.ButtonProperty(
                                    text="text",
                                    value="value"
                                )],
                                image_url="imageUrl",
                                subtitle="subtitle"
                            ),
                            plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                                value="value"
                            ),
                            ssml_message=lex.CfnBot.SSMLMessageProperty(
                                value="value"
                            )
                        )]
                    )],

                    # the properties below are optional
                    allow_interrupt=False,
                    message_selection_strategy="messageSelectionStrategy",
                    prompt_attempts_specification={
                        "prompt_attempts_specification_key": lex.CfnBot.PromptAttemptSpecificationProperty(
                            allowed_input_types=lex.CfnBot.AllowedInputTypesProperty(
                                allow_audio_input=False,
                                allow_dtmf_input=False
                            ),

                            # the properties below are optional
                            allow_interrupt=False,
                            audio_and_dtmf_input_specification=lex.CfnBot.AudioAndDTMFInputSpecificationProperty(
                                start_timeout_ms=123,

                                # the properties below are optional
                                audio_specification=lex.CfnBot.AudioSpecificationProperty(
                                    end_timeout_ms=123,
                                    max_length_ms=123
                                ),
                                dtmf_specification=lex.CfnBot.DTMFSpecificationProperty(
                                    deletion_character="deletionCharacter",
                                    end_character="endCharacter",
                                    end_timeout_ms=123,
                                    max_length=123
                                )
                            ),
                            text_input_specification=lex.CfnBot.TextInputSpecificationProperty(
                                start_timeout_ms=123
                            )
                        )
                    }
                ),
                sample_utterances=[lex.CfnBot.SampleUtteranceProperty(
                    utterance="utterance"
                )],
                wait_and_continue_specification=lex.CfnBot.WaitAndContinueSpecificationProperty(
                    continue_response=lex.CfnBot.ResponseSpecificationProperty(
                        message_groups_list=[lex.CfnBot.MessageGroupProperty(
                            message=lex.CfnBot.MessageProperty(
                                custom_payload=lex.CfnBot.CustomPayloadProperty(
                                    value="value"
                                ),
                                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                                    title="title",

                                    # the properties below are optional
                                    buttons=[lex.CfnBot.ButtonProperty(
                                        text="text",
                                        value="value"
                                    )],
                                    image_url="imageUrl",
                                    subtitle="subtitle"
                                ),
                                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                                    value="value"
                                ),
                                ssml_message=lex.CfnBot.SSMLMessageProperty(
                                    value="value"
                                )
                            ),

                            # the properties below are optional
                            variations=[lex.CfnBot.MessageProperty(
                                custom_payload=lex.CfnBot.CustomPayloadProperty(
                                    value="value"
                                ),
                                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                                    title="title",

                                    # the properties below are optional
                                    buttons=[lex.CfnBot.ButtonProperty(
                                        text="text",
                                        value="value"
                                    )],
                                    image_url="imageUrl",
                                    subtitle="subtitle"
                                ),
                                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                                    value="value"
                                ),
                                ssml_message=lex.CfnBot.SSMLMessageProperty(
                                    value="value"
                                )
                            )]
                        )],

                        # the properties below are optional
                        allow_interrupt=False
                    ),
                    is_active=False,
                    still_waiting_response=lex.CfnBot.StillWaitingResponseSpecificationProperty(
                        frequency_in_seconds=123,
                        message_groups_list=[lex.CfnBot.MessageGroupProperty(
                            message=lex.CfnBot.MessageProperty(
                                custom_payload=lex.CfnBot.CustomPayloadProperty(
                                    value="value"
                                ),
                                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                                    title="title",

                                    # the properties below are optional
                                    buttons=[lex.CfnBot.ButtonProperty(
                                        text="text",
                                        value="value"
                                    )],
                                    image_url="imageUrl",
                                    subtitle="subtitle"
                                ),
                                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                                    value="value"
                                ),
                                ssml_message=lex.CfnBot.SSMLMessageProperty(
                                    value="value"
                                )
                            ),

                            # the properties below are optional
                            variations=[lex.CfnBot.MessageProperty(
                                custom_payload=lex.CfnBot.CustomPayloadProperty(
                                    value="value"
                                ),
                                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                                    title="title",

                                    # the properties below are optional
                                    buttons=[lex.CfnBot.ButtonProperty(
                                        text="text",
                                        value="value"
                                    )],
                                    image_url="imageUrl",
                                    subtitle="subtitle"
                                ),
                                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                                    value="value"
                                ),
                                ssml_message=lex.CfnBot.SSMLMessageProperty(
                                    value="value"
                                )
                            )]
                        )],
                        timeout_in_seconds=123,

                        # the properties below are optional
                        allow_interrupt=False
                    ),
                    waiting_response=lex.CfnBot.ResponseSpecificationProperty(
                        message_groups_list=[lex.CfnBot.MessageGroupProperty(
                            message=lex.CfnBot.MessageProperty(
                                custom_payload=lex.CfnBot.CustomPayloadProperty(
                                    value="value"
                                ),
                                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                                    title="title",

                                    # the properties below are optional
                                    buttons=[lex.CfnBot.ButtonProperty(
                                        text="text",
                                        value="value"
                                    )],
                                    image_url="imageUrl",
                                    subtitle="subtitle"
                                ),
                                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                                    value="value"
                                ),
                                ssml_message=lex.CfnBot.SSMLMessageProperty(
                                    value="value"
                                )
                            ),

                            # the properties below are optional
                            variations=[lex.CfnBot.MessageProperty(
                                custom_payload=lex.CfnBot.CustomPayloadProperty(
                                    value="value"
                                ),
                                image_response_card=lex.CfnBot.ImageResponseCardProperty(
                                    title="title",

                                    # the properties below are optional
                                    buttons=[lex.CfnBot.ButtonProperty(
                                        text="text",
                                        value="value"
                                    )],
                                    image_url="imageUrl",
                                    subtitle="subtitle"
                                ),
                                plain_text_message=lex.CfnBot.PlainTextMessageProperty(
                                    value="value"
                                ),
                                ssml_message=lex.CfnBot.SSMLMessageProperty(
                                    value="value"
                                )
                            )]
                        )],

                        # the properties below are optional
                        allow_interrupt=False
                    )
                )
            ),

            # 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.*;

SubSlotSettingProperty subSlotSettingProperty = SubSlotSettingProperty.builder()
        .expression("expression")
        .slotSpecifications(Map.of(
                "slotSpecificationsKey", SpecificationsProperty.builder()
                        .valueElicitationSetting(SubSlotValueElicitationSettingProperty.builder()
                                .defaultValueSpecification(SlotDefaultValueSpecificationProperty.builder()
                                        .defaultValueList(List.of(SlotDefaultValueProperty.builder()
                                                .defaultValue("defaultValue")
                                                .build()))
                                        .build())
                                .promptSpecification(PromptSpecificationProperty.builder()
                                        .maxRetries(123)
                                        .messageGroupsList(List.of(MessageGroupProperty.builder()
                                                .message(MessageProperty.builder()
                                                        .customPayload(CustomPayloadProperty.builder()
                                                                .value("value")
                                                                .build())
                                                        .imageResponseCard(ImageResponseCardProperty.builder()
                                                                .title("title")

                                                                // the properties below are optional
                                                                .buttons(List.of(ButtonProperty.builder()
                                                                        .text("text")
                                                                        .value("value")
                                                                        .build()))
                                                                .imageUrl("imageUrl")
                                                                .subtitle("subtitle")
                                                                .build())
                                                        .plainTextMessage(PlainTextMessageProperty.builder()
                                                                .value("value")
                                                                .build())
                                                        .ssmlMessage(SSMLMessageProperty.builder()
                                                                .value("value")
                                                                .build())
                                                        .build())

                                                // the properties below are optional
                                                .variations(List.of(MessageProperty.builder()
                                                        .customPayload(CustomPayloadProperty.builder()
                                                                .value("value")
                                                                .build())
                                                        .imageResponseCard(ImageResponseCardProperty.builder()
                                                                .title("title")

                                                                // the properties below are optional
                                                                .buttons(List.of(ButtonProperty.builder()
                                                                        .text("text")
                                                                        .value("value")
                                                                        .build()))
                                                                .imageUrl("imageUrl")
                                                                .subtitle("subtitle")
                                                                .build())
                                                        .plainTextMessage(PlainTextMessageProperty.builder()
                                                                .value("value")
                                                                .build())
                                                        .ssmlMessage(SSMLMessageProperty.builder()
                                                                .value("value")
                                                                .build())
                                                        .build()))
                                                .build()))

                                        // the properties below are optional
                                        .allowInterrupt(false)
                                        .messageSelectionStrategy("messageSelectionStrategy")
                                        .promptAttemptsSpecification(Map.of(
                                                "promptAttemptsSpecificationKey", PromptAttemptSpecificationProperty.builder()
                                                        .allowedInputTypes(AllowedInputTypesProperty.builder()
                                                                .allowAudioInput(false)
                                                                .allowDtmfInput(false)
                                                                .build())

                                                        // the properties below are optional
                                                        .allowInterrupt(false)
                                                        .audioAndDtmfInputSpecification(AudioAndDTMFInputSpecificationProperty.builder()
                                                                .startTimeoutMs(123)

                                                                // the properties below are optional
                                                                .audioSpecification(AudioSpecificationProperty.builder()
                                                                        .endTimeoutMs(123)
                                                                        .maxLengthMs(123)
                                                                        .build())
                                                                .dtmfSpecification(DTMFSpecificationProperty.builder()
                                                                        .deletionCharacter("deletionCharacter")
                                                                        .endCharacter("endCharacter")
                                                                        .endTimeoutMs(123)
                                                                        .maxLength(123)
                                                                        .build())
                                                                .build())
                                                        .textInputSpecification(TextInputSpecificationProperty.builder()
                                                                .startTimeoutMs(123)
                                                                .build())
                                                        .build()))
                                        .build())
                                .sampleUtterances(List.of(SampleUtteranceProperty.builder()
                                        .utterance("utterance")
                                        .build()))
                                .waitAndContinueSpecification(WaitAndContinueSpecificationProperty.builder()
                                        .continueResponse(ResponseSpecificationProperty.builder()
                                                .messageGroupsList(List.of(MessageGroupProperty.builder()
                                                        .message(MessageProperty.builder()
                                                                .customPayload(CustomPayloadProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .imageResponseCard(ImageResponseCardProperty.builder()
                                                                        .title("title")

                                                                        // the properties below are optional
                                                                        .buttons(List.of(ButtonProperty.builder()
                                                                                .text("text")
                                                                                .value("value")
                                                                                .build()))
                                                                        .imageUrl("imageUrl")
                                                                        .subtitle("subtitle")
                                                                        .build())
                                                                .plainTextMessage(PlainTextMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .ssmlMessage(SSMLMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .build())

                                                        // the properties below are optional
                                                        .variations(List.of(MessageProperty.builder()
                                                                .customPayload(CustomPayloadProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .imageResponseCard(ImageResponseCardProperty.builder()
                                                                        .title("title")

                                                                        // the properties below are optional
                                                                        .buttons(List.of(ButtonProperty.builder()
                                                                                .text("text")
                                                                                .value("value")
                                                                                .build()))
                                                                        .imageUrl("imageUrl")
                                                                        .subtitle("subtitle")
                                                                        .build())
                                                                .plainTextMessage(PlainTextMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .ssmlMessage(SSMLMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .build()))
                                                        .build()))

                                                // the properties below are optional
                                                .allowInterrupt(false)
                                                .build())
                                        .isActive(false)
                                        .stillWaitingResponse(StillWaitingResponseSpecificationProperty.builder()
                                                .frequencyInSeconds(123)
                                                .messageGroupsList(List.of(MessageGroupProperty.builder()
                                                        .message(MessageProperty.builder()
                                                                .customPayload(CustomPayloadProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .imageResponseCard(ImageResponseCardProperty.builder()
                                                                        .title("title")

                                                                        // the properties below are optional
                                                                        .buttons(List.of(ButtonProperty.builder()
                                                                                .text("text")
                                                                                .value("value")
                                                                                .build()))
                                                                        .imageUrl("imageUrl")
                                                                        .subtitle("subtitle")
                                                                        .build())
                                                                .plainTextMessage(PlainTextMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .ssmlMessage(SSMLMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .build())

                                                        // the properties below are optional
                                                        .variations(List.of(MessageProperty.builder()
                                                                .customPayload(CustomPayloadProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .imageResponseCard(ImageResponseCardProperty.builder()
                                                                        .title("title")

                                                                        // the properties below are optional
                                                                        .buttons(List.of(ButtonProperty.builder()
                                                                                .text("text")
                                                                                .value("value")
                                                                                .build()))
                                                                        .imageUrl("imageUrl")
                                                                        .subtitle("subtitle")
                                                                        .build())
                                                                .plainTextMessage(PlainTextMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .ssmlMessage(SSMLMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .build()))
                                                        .build()))
                                                .timeoutInSeconds(123)

                                                // the properties below are optional
                                                .allowInterrupt(false)
                                                .build())
                                        .waitingResponse(ResponseSpecificationProperty.builder()
                                                .messageGroupsList(List.of(MessageGroupProperty.builder()
                                                        .message(MessageProperty.builder()
                                                                .customPayload(CustomPayloadProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .imageResponseCard(ImageResponseCardProperty.builder()
                                                                        .title("title")

                                                                        // the properties below are optional
                                                                        .buttons(List.of(ButtonProperty.builder()
                                                                                .text("text")
                                                                                .value("value")
                                                                                .build()))
                                                                        .imageUrl("imageUrl")
                                                                        .subtitle("subtitle")
                                                                        .build())
                                                                .plainTextMessage(PlainTextMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .ssmlMessage(SSMLMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .build())

                                                        // the properties below are optional
                                                        .variations(List.of(MessageProperty.builder()
                                                                .customPayload(CustomPayloadProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .imageResponseCard(ImageResponseCardProperty.builder()
                                                                        .title("title")

                                                                        // the properties below are optional
                                                                        .buttons(List.of(ButtonProperty.builder()
                                                                                .text("text")
                                                                                .value("value")
                                                                                .build()))
                                                                        .imageUrl("imageUrl")
                                                                        .subtitle("subtitle")
                                                                        .build())
                                                                .plainTextMessage(PlainTextMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .ssmlMessage(SSMLMessageProperty.builder()
                                                                        .value("value")
                                                                        .build())
                                                                .build()))
                                                        .build()))

                                                // the properties below are optional
                                                .allowInterrupt(false)
                                                .build())
                                        .build())
                                .build())

                        // 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 subSlotSettingProperty = new SubSlotSettingProperty {
    Expression = "expression",
    SlotSpecifications = new Dictionary<string, object> {
        { "slotSpecificationsKey", new SpecificationsProperty {
            ValueElicitationSetting = new SubSlotValueElicitationSettingProperty {
                DefaultValueSpecification = new SlotDefaultValueSpecificationProperty {
                    DefaultValueList = new [] { new SlotDefaultValueProperty {
                        DefaultValue = "defaultValue"
                    } }
                },
                PromptSpecification = new PromptSpecificationProperty {
                    MaxRetries = 123,
                    MessageGroupsList = new [] { new MessageGroupProperty {
                        Message = new MessageProperty {
                            CustomPayload = new CustomPayloadProperty {
                                Value = "value"
                            },
                            ImageResponseCard = new ImageResponseCardProperty {
                                Title = "title",

                                // the properties below are optional
                                Buttons = new [] { new ButtonProperty {
                                    Text = "text",
                                    Value = "value"
                                } },
                                ImageUrl = "imageUrl",
                                Subtitle = "subtitle"
                            },
                            PlainTextMessage = new PlainTextMessageProperty {
                                Value = "value"
                            },
                            SsmlMessage = new SSMLMessageProperty {
                                Value = "value"
                            }
                        },

                        // the properties below are optional
                        Variations = new [] { new MessageProperty {
                            CustomPayload = new CustomPayloadProperty {
                                Value = "value"
                            },
                            ImageResponseCard = new ImageResponseCardProperty {
                                Title = "title",

                                // the properties below are optional
                                Buttons = new [] { new ButtonProperty {
                                    Text = "text",
                                    Value = "value"
                                } },
                                ImageUrl = "imageUrl",
                                Subtitle = "subtitle"
                            },
                            PlainTextMessage = new PlainTextMessageProperty {
                                Value = "value"
                            },
                            SsmlMessage = new SSMLMessageProperty {
                                Value = "value"
                            }
                        } }
                    } },

                    // the properties below are optional
                    AllowInterrupt = false,
                    MessageSelectionStrategy = "messageSelectionStrategy",
                    PromptAttemptsSpecification = new Dictionary<string, object> {
                        { "promptAttemptsSpecificationKey", new PromptAttemptSpecificationProperty {
                            AllowedInputTypes = new AllowedInputTypesProperty {
                                AllowAudioInput = false,
                                AllowDtmfInput = false
                            },

                            // the properties below are optional
                            AllowInterrupt = false,
                            AudioAndDtmfInputSpecification = new AudioAndDTMFInputSpecificationProperty {
                                StartTimeoutMs = 123,

                                // the properties below are optional
                                AudioSpecification = new AudioSpecificationProperty {
                                    EndTimeoutMs = 123,
                                    MaxLengthMs = 123
                                },
                                DtmfSpecification = new DTMFSpecificationProperty {
                                    DeletionCharacter = "deletionCharacter",
                                    EndCharacter = "endCharacter",
                                    EndTimeoutMs = 123,
                                    MaxLength = 123
                                }
                            },
                            TextInputSpecification = new TextInputSpecificationProperty {
                                StartTimeoutMs = 123
                            }
                        } }
                    }
                },
                SampleUtterances = new [] { new SampleUtteranceProperty {
                    Utterance = "utterance"
                } },
                WaitAndContinueSpecification = new WaitAndContinueSpecificationProperty {
                    ContinueResponse = new ResponseSpecificationProperty {
                        MessageGroupsList = new [] { new MessageGroupProperty {
                            Message = new MessageProperty {
                                CustomPayload = new CustomPayloadProperty {
                                    Value = "value"
                                },
                                ImageResponseCard = new ImageResponseCardProperty {
                                    Title = "title",

                                    // the properties below are optional
                                    Buttons = new [] { new ButtonProperty {
                                        Text = "text",
                                        Value = "value"
                                    } },
                                    ImageUrl = "imageUrl",
                                    Subtitle = "subtitle"
                                },
                                PlainTextMessage = new PlainTextMessageProperty {
                                    Value = "value"
                                },
                                SsmlMessage = new SSMLMessageProperty {
                                    Value = "value"
                                }
                            },

                            // the properties below are optional
                            Variations = new [] { new MessageProperty {
                                CustomPayload = new CustomPayloadProperty {
                                    Value = "value"
                                },
                                ImageResponseCard = new ImageResponseCardProperty {
                                    Title = "title",

                                    // the properties below are optional
                                    Buttons = new [] { new ButtonProperty {
                                        Text = "text",
                                        Value = "value"
                                    } },
                                    ImageUrl = "imageUrl",
                                    Subtitle = "subtitle"
                                },
                                PlainTextMessage = new PlainTextMessageProperty {
                                    Value = "value"
                                },
                                SsmlMessage = new SSMLMessageProperty {
                                    Value = "value"
                                }
                            } }
                        } },

                        // the properties below are optional
                        AllowInterrupt = false
                    },
                    IsActive = false,
                    StillWaitingResponse = new StillWaitingResponseSpecificationProperty {
                        FrequencyInSeconds = 123,
                        MessageGroupsList = new [] { new MessageGroupProperty {
                            Message = new MessageProperty {
                                CustomPayload = new CustomPayloadProperty {
                                    Value = "value"
                                },
                                ImageResponseCard = new ImageResponseCardProperty {
                                    Title = "title",

                                    // the properties below are optional
                                    Buttons = new [] { new ButtonProperty {
                                        Text = "text",
                                        Value = "value"
                                    } },
                                    ImageUrl = "imageUrl",
                                    Subtitle = "subtitle"
                                },
                                PlainTextMessage = new PlainTextMessageProperty {
                                    Value = "value"
                                },
                                SsmlMessage = new SSMLMessageProperty {
                                    Value = "value"
                                }
                            },

                            // the properties below are optional
                            Variations = new [] { new MessageProperty {
                                CustomPayload = new CustomPayloadProperty {
                                    Value = "value"
                                },
                                ImageResponseCard = new ImageResponseCardProperty {
                                    Title = "title",

                                    // the properties below are optional
                                    Buttons = new [] { new ButtonProperty {
                                        Text = "text",
                                        Value = "value"
                                    } },
                                    ImageUrl = "imageUrl",
                                    Subtitle = "subtitle"
                                },
                                PlainTextMessage = new PlainTextMessageProperty {
                                    Value = "value"
                                },
                                SsmlMessage = new SSMLMessageProperty {
                                    Value = "value"
                                }
                            } }
                        } },
                        TimeoutInSeconds = 123,

                        // the properties below are optional
                        AllowInterrupt = false
                    },
                    WaitingResponse = new ResponseSpecificationProperty {
                        MessageGroupsList = new [] { new MessageGroupProperty {
                            Message = new MessageProperty {
                                CustomPayload = new CustomPayloadProperty {
                                    Value = "value"
                                },
                                ImageResponseCard = new ImageResponseCardProperty {
                                    Title = "title",

                                    // the properties below are optional
                                    Buttons = new [] { new ButtonProperty {
                                        Text = "text",
                                        Value = "value"
                                    } },
                                    ImageUrl = "imageUrl",
                                    Subtitle = "subtitle"
                                },
                                PlainTextMessage = new PlainTextMessageProperty {
                                    Value = "value"
                                },
                                SsmlMessage = new SSMLMessageProperty {
                                    Value = "value"
                                }
                            },

                            // the properties below are optional
                            Variations = new [] { new MessageProperty {
                                CustomPayload = new CustomPayloadProperty {
                                    Value = "value"
                                },
                                ImageResponseCard = new ImageResponseCardProperty {
                                    Title = "title",

                                    // the properties below are optional
                                    Buttons = new [] { new ButtonProperty {
                                        Text = "text",
                                        Value = "value"
                                    } },
                                    ImageUrl = "imageUrl",
                                    Subtitle = "subtitle"
                                },
                                PlainTextMessage = new PlainTextMessageProperty {
                                    Value = "value"
                                },
                                SsmlMessage = new SSMLMessageProperty {
                                    Value = "value"
                                }
                            } }
                        } },

                        // the properties below are optional
                        AllowInterrupt = false
                    }
                }
            },

            // 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"

subSlotSettingProperty := &SubSlotSettingProperty{
	Expression: jsii.String("expression"),
	SlotSpecifications: map[string]interface{}{
		"slotSpecificationsKey": &SpecificationsProperty{
			"valueElicitationSetting": &SubSlotValueElicitationSettingProperty{
				"defaultValueSpecification": &SlotDefaultValueSpecificationProperty{
					"defaultValueList": []interface{}{
						&SlotDefaultValueProperty{
							"defaultValue": jsii.String("defaultValue"),
						},
					},
				},
				"promptSpecification": &PromptSpecificationProperty{
					"maxRetries": jsii.Number(123),
					"messageGroupsList": []interface{}{
						&MessageGroupProperty{
							"message": &MessageProperty{
								"customPayload": &CustomPayloadProperty{
									"value": jsii.String("value"),
								},
								"imageResponseCard": &ImageResponseCardProperty{
									"title": jsii.String("title"),

									// the properties below are optional
									"buttons": []interface{}{
										&ButtonProperty{
											"text": jsii.String("text"),
											"value": jsii.String("value"),
										},
									},
									"imageUrl": jsii.String("imageUrl"),
									"subtitle": jsii.String("subtitle"),
								},
								"plainTextMessage": &PlainTextMessageProperty{
									"value": jsii.String("value"),
								},
								"ssmlMessage": &SSMLMessageProperty{
									"value": jsii.String("value"),
								},
							},

							// the properties below are optional
							"variations": []interface{}{
								&MessageProperty{
									"customPayload": &CustomPayloadProperty{
										"value": jsii.String("value"),
									},
									"imageResponseCard": &ImageResponseCardProperty{
										"title": jsii.String("title"),

										// the properties below are optional
										"buttons": []interface{}{
											&ButtonProperty{
												"text": jsii.String("text"),
												"value": jsii.String("value"),
											},
										},
										"imageUrl": jsii.String("imageUrl"),
										"subtitle": jsii.String("subtitle"),
									},
									"plainTextMessage": &PlainTextMessageProperty{
										"value": jsii.String("value"),
									},
									"ssmlMessage": &SSMLMessageProperty{
										"value": jsii.String("value"),
									},
								},
							},
						},
					},

					// the properties below are optional
					"allowInterrupt": jsii.Boolean(false),
					"messageSelectionStrategy": jsii.String("messageSelectionStrategy"),
					"promptAttemptsSpecification": map[string]interface{}{
						"promptAttemptsSpecificationKey": &PromptAttemptSpecificationProperty{
							"allowedInputTypes": &AllowedInputTypesProperty{
								"allowAudioInput": jsii.Boolean(false),
								"allowDtmfInput": jsii.Boolean(false),
							},

							// the properties below are optional
							"allowInterrupt": jsii.Boolean(false),
							"audioAndDtmfInputSpecification": &AudioAndDTMFInputSpecificationProperty{
								"startTimeoutMs": jsii.Number(123),

								// the properties below are optional
								"audioSpecification": &AudioSpecificationProperty{
									"endTimeoutMs": jsii.Number(123),
									"maxLengthMs": jsii.Number(123),
								},
								"dtmfSpecification": &DTMFSpecificationProperty{
									"deletionCharacter": jsii.String("deletionCharacter"),
									"endCharacter": jsii.String("endCharacter"),
									"endTimeoutMs": jsii.Number(123),
									"maxLength": jsii.Number(123),
								},
							},
							"textInputSpecification": &TextInputSpecificationProperty{
								"startTimeoutMs": jsii.Number(123),
							},
						},
					},
				},
				"sampleUtterances": []interface{}{
					&SampleUtteranceProperty{
						"utterance": jsii.String("utterance"),
					},
				},
				"waitAndContinueSpecification": &WaitAndContinueSpecificationProperty{
					"continueResponse": &ResponseSpecificationProperty{
						"messageGroupsList": []interface{}{
							&MessageGroupProperty{
								"message": &MessageProperty{
									"customPayload": &CustomPayloadProperty{
										"value": jsii.String("value"),
									},
									"imageResponseCard": &ImageResponseCardProperty{
										"title": jsii.String("title"),

										// the properties below are optional
										"buttons": []interface{}{
											&ButtonProperty{
												"text": jsii.String("text"),
												"value": jsii.String("value"),
											},
										},
										"imageUrl": jsii.String("imageUrl"),
										"subtitle": jsii.String("subtitle"),
									},
									"plainTextMessage": &PlainTextMessageProperty{
										"value": jsii.String("value"),
									},
									"ssmlMessage": &SSMLMessageProperty{
										"value": jsii.String("value"),
									},
								},

								// the properties below are optional
								"variations": []interface{}{
									&MessageProperty{
										"customPayload": &CustomPayloadProperty{
											"value": jsii.String("value"),
										},
										"imageResponseCard": &ImageResponseCardProperty{
											"title": jsii.String("title"),

											// the properties below are optional
											"buttons": []interface{}{
												&ButtonProperty{
													"text": jsii.String("text"),
													"value": jsii.String("value"),
												},
											},
											"imageUrl": jsii.String("imageUrl"),
											"subtitle": jsii.String("subtitle"),
										},
										"plainTextMessage": &PlainTextMessageProperty{
											"value": jsii.String("value"),
										},
										"ssmlMessage": &SSMLMessageProperty{
											"value": jsii.String("value"),
										},
									},
								},
							},
						},

						// the properties below are optional
						"allowInterrupt": jsii.Boolean(false),
					},
					"isActive": jsii.Boolean(false),
					"stillWaitingResponse": &StillWaitingResponseSpecificationProperty{
						"frequencyInSeconds": jsii.Number(123),
						"messageGroupsList": []interface{}{
							&MessageGroupProperty{
								"message": &MessageProperty{
									"customPayload": &CustomPayloadProperty{
										"value": jsii.String("value"),
									},
									"imageResponseCard": &ImageResponseCardProperty{
										"title": jsii.String("title"),

										// the properties below are optional
										"buttons": []interface{}{
											&ButtonProperty{
												"text": jsii.String("text"),
												"value": jsii.String("value"),
											},
										},
										"imageUrl": jsii.String("imageUrl"),
										"subtitle": jsii.String("subtitle"),
									},
									"plainTextMessage": &PlainTextMessageProperty{
										"value": jsii.String("value"),
									},
									"ssmlMessage": &SSMLMessageProperty{
										"value": jsii.String("value"),
									},
								},

								// the properties below are optional
								"variations": []interface{}{
									&MessageProperty{
										"customPayload": &CustomPayloadProperty{
											"value": jsii.String("value"),
										},
										"imageResponseCard": &ImageResponseCardProperty{
											"title": jsii.String("title"),

											// the properties below are optional
											"buttons": []interface{}{
												&ButtonProperty{
													"text": jsii.String("text"),
													"value": jsii.String("value"),
												},
											},
											"imageUrl": jsii.String("imageUrl"),
											"subtitle": jsii.String("subtitle"),
										},
										"plainTextMessage": &PlainTextMessageProperty{
											"value": jsii.String("value"),
										},
										"ssmlMessage": &SSMLMessageProperty{
											"value": jsii.String("value"),
										},
									},
								},
							},
						},
						"timeoutInSeconds": jsii.Number(123),

						// the properties below are optional
						"allowInterrupt": jsii.Boolean(false),
					},
					"waitingResponse": &ResponseSpecificationProperty{
						"messageGroupsList": []interface{}{
							&MessageGroupProperty{
								"message": &MessageProperty{
									"customPayload": &CustomPayloadProperty{
										"value": jsii.String("value"),
									},
									"imageResponseCard": &ImageResponseCardProperty{
										"title": jsii.String("title"),

										// the properties below are optional
										"buttons": []interface{}{
											&ButtonProperty{
												"text": jsii.String("text"),
												"value": jsii.String("value"),
											},
										},
										"imageUrl": jsii.String("imageUrl"),
										"subtitle": jsii.String("subtitle"),
									},
									"plainTextMessage": &PlainTextMessageProperty{
										"value": jsii.String("value"),
									},
									"ssmlMessage": &SSMLMessageProperty{
										"value": jsii.String("value"),
									},
								},

								// the properties below are optional
								"variations": []interface{}{
									&MessageProperty{
										"customPayload": &CustomPayloadProperty{
											"value": jsii.String("value"),
										},
										"imageResponseCard": &ImageResponseCardProperty{
											"title": jsii.String("title"),

											// the properties below are optional
											"buttons": []interface{}{
												&ButtonProperty{
													"text": jsii.String("text"),
													"value": jsii.String("value"),
												},
											},
											"imageUrl": jsii.String("imageUrl"),
											"subtitle": jsii.String("subtitle"),
										},
										"plainTextMessage": &PlainTextMessageProperty{
											"value": jsii.String("value"),
										},
										"ssmlMessage": &SSMLMessageProperty{
											"value": jsii.String("value"),
										},
									},
								},
							},
						},

						// the properties below are optional
						"allowInterrupt": jsii.Boolean(false),
					},
				},
			},

			// the properties below are optional
			"slotTypeId": jsii.String("slotTypeId"),
			"slotTypeName": jsii.String("slotTypeName"),
		},
	},
}

Properties ​

expressionoptionalstringexpressionoptionalstrexpressionoptionalStringExpressionoptionalstringExpressionoptional*string #
The expression text for defining the constituent sub slots in the composite slot using logical AND and OR operators.
slotSpecificationsoptionalIResolvable | { [key: string]: IResolvable | CfnBot.SpecificationsProperty }slot_specificationsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, SpecificationsProperty]]]slotSpecificationsoptionalIResolvableSlotSpecificationsoptionalIResolvableSlotSpecificationsoptionalinterface{} #
Specifications for the constituent sub slots of a composite slot.