Class: AWSCDK::Lex::CfnBot::StillWaitingResponseSpecificationProperty

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

Overview

Defines the messages that Amazon Lex sends to a user to remind them that the bot is waiting for a response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(frequency_in_seconds:, message_groups_list:, timeout_in_seconds:, allow_interrupt: nil) ⇒ StillWaitingResponseSpecificationProperty

Returns a new instance of StillWaitingResponseSpecificationProperty.

Parameters:

  • frequency_in_seconds (Numeric)

    How often a message should be sent to the user.

  • message_groups_list (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::MessageGroupProperty>)

    One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.

  • timeout_in_seconds (Numeric)

    If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.

  • allow_interrupt (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates that the user can interrupt the response by speaking while the message is being played.



6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
# File 'lex/cfn_bot.rb', line 6240

def initialize(frequency_in_seconds:, message_groups_list:, timeout_in_seconds:, allow_interrupt: nil)
  @frequency_in_seconds = frequency_in_seconds
  Jsii::Type.check_type(@frequency_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "frequencyInSeconds")
  @message_groups_list = message_groups_list
  Jsii::Type.check_type(@message_groups_list, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5NZXNzYWdlR3JvdXBQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "messageGroupsList")
  @timeout_in_seconds = timeout_in_seconds
  Jsii::Type.check_type(@timeout_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeoutInSeconds")
  @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)

Indicates that the user can interrupt the response by speaking while the message is being played.



6272
6273
6274
# File 'lex/cfn_bot.rb', line 6272

def allow_interrupt
  @allow_interrupt
end

#frequency_in_secondsNumeric (readonly)

How often a message should be sent to the user.

Minimum of 1 second, maximum of 5 minutes.



6257
6258
6259
# File 'lex/cfn_bot.rb', line 6257

def frequency_in_seconds
  @frequency_in_seconds
end

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

One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.



6262
6263
6264
# File 'lex/cfn_bot.rb', line 6262

def message_groups_list
  @message_groups_list
end

#timeout_in_secondsNumeric (readonly)

If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.



6267
6268
6269
# File 'lex/cfn_bot.rb', line 6267

def timeout_in_seconds
  @timeout_in_seconds
end

Class Method Details

.jsii_propertiesObject



6274
6275
6276
6277
6278
6279
6280
6281
# File 'lex/cfn_bot.rb', line 6274

def self.jsii_properties
  {
    :frequency_in_seconds => "frequencyInSeconds",
    :message_groups_list => "messageGroupsList",
    :timeout_in_seconds => "timeoutInSeconds",
    :allow_interrupt => "allowInterrupt",
  }
end

Instance Method Details

#to_jsiiObject



6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
# File 'lex/cfn_bot.rb', line 6283

def to_jsii
  result = {}
  result.merge!({
    "frequencyInSeconds" => @frequency_in_seconds,
    "messageGroupsList" => @message_groups_list,
    "timeoutInSeconds" => @timeout_in_seconds,
    "allowInterrupt" => @allow_interrupt,
  })
  result.compact
end