Class: AWSCDK::Lex::CfnBot::FulfillmentStartResponseSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delay_in_seconds:, message_groups:, allow_interrupt: nil) ⇒ FulfillmentStartResponseSpecificationProperty

Returns a new instance of FulfillmentStartResponseSpecificationProperty.

Parameters:



2744
2745
2746
2747
2748
2749
2750
2751
# File 'lex/cfn_bot.rb', line 2744

def initialize(delay_in_seconds:, message_groups:, allow_interrupt: nil)
  @delay_in_seconds = delay_in_seconds
  Jsii::Type.check_type(@delay_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "delayInSeconds")
  @message_groups = message_groups
  Jsii::Type.check_type(@message_groups, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5NZXNzYWdlR3JvdXBQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "messageGroups")
  @allow_interrupt = allow_interrupt
  Jsii::Type.check_type(@allow_interrupt, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowInterrupt") unless @allow_interrupt.nil?
end

Instance Attribute Details

#allow_interruptBoolean, ... (readonly)

Determines whether the user can interrupt the start message while it is playing.



2771
2772
2773
# File 'lex/cfn_bot.rb', line 2771

def allow_interrupt
  @allow_interrupt
end

#delay_in_secondsNumeric (readonly)

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.



2759
2760
2761
# File 'lex/cfn_bot.rb', line 2759

def delay_in_seconds
  @delay_in_seconds
end

#message_groupsAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::MessageGroupProperty> (readonly)

1 - 5 message groups that contain start messages.

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



2766
2767
2768
# File 'lex/cfn_bot.rb', line 2766

def message_groups
  @message_groups
end

Class Method Details

.jsii_propertiesObject



2773
2774
2775
2776
2777
2778
2779
# File 'lex/cfn_bot.rb', line 2773

def self.jsii_properties
  {
    :delay_in_seconds => "delayInSeconds",
    :message_groups => "messageGroups",
    :allow_interrupt => "allowInterrupt",
  }
end

Instance Method Details

#to_jsiiObject



2781
2782
2783
2784
2785
2786
2787
2788
2789
# File 'lex/cfn_bot.rb', line 2781

def to_jsii
  result = {}
  result.merge!({
    "delayInSeconds" => @delay_in_seconds,
    "messageGroups" => @message_groups,
    "allowInterrupt" => @allow_interrupt,
  })
  result.compact
end