Skip to content
v2.276.0

FulfillmentStartResponseSpecificationProperty Struct ​

Provides settings for a message that is sent to the user when a fulfillment Lambda function starts running.

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 fulfillmentStartResponseSpecificationProperty: lex.CfnBot.FulfillmentStartResponseSpecificationProperty = {
  delayInSeconds: 123,
  messageGroups: [{
    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,
};

Properties ​

allowInterruptoptionalboolean | IResolvableallow_interruptoptionaltyping.Union[bool, IResolvable]allowInterruptoptionalBooleanAllowInterruptoptionalboolAllowInterruptoptionalinterface{}#
Determines whether the user can interrupt the start message while it is playing.
delayInSecondsnumberdelay_in_secondsint | floatdelayInSecondsNumberDelayInSecondsdoubleDelayInSeconds*float64required#
The delay between when the Lambda fulfillment function starts running and the start message is played.

If the Lambda function returns before the delay is over, the start message isn't played.

messageGroupsIResolvable | IResolvable | CfnBot.MessageGroupProperty[]message_groupstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MessageGroupProperty]]]messageGroupsIResolvableMessageGroupsIResolvableMessageGroupsinterface{}required#
1 - 5 message groups that contain start messages.

Amazon Lex chooses one of the messages to play to the user.