Class: AWSCDK::Chime::CfnAppInstanceBot::LexConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
chime/cfn_app_instance_bot.rb

Overview

The configuration for an Amazon Lex V2 bot.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lex_bot_alias_arn:, locale_id:, invoked_by: nil, responds_to: nil, welcome_intent: nil) ⇒ LexConfigurationProperty

Returns a new instance of LexConfigurationProperty.

Parameters:

  • lex_bot_alias_arn (String)

    The ARN of the Amazon Lex V2 bot's alias.

  • locale_id (String)

    Identifies the Amazon Lex V2 bot's language and locale.

  • invoked_by (AWSCDK::IResolvable, AWSCDK::Chime::CfnAppInstanceBot::InvokedByProperty, nil) (defaults to: nil)

    Specifies the type of message that triggers a bot.

  • responds_to (String, nil) (defaults to: nil)

    Determines whether the Amazon Lex V2 bot responds to all standard messages.

  • welcome_intent (String, nil) (defaults to: nil)

    The name of the welcome intent configured in the Amazon Lex V2 bot.



670
671
672
673
674
675
676
677
678
679
680
681
# File 'chime/cfn_app_instance_bot.rb', line 670

def initialize(lex_bot_alias_arn:, locale_id:, invoked_by: nil, responds_to: nil, welcome_intent: nil)
  @lex_bot_alias_arn = lex_bot_alias_arn
  Jsii::Type.check_type(@lex_bot_alias_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lexBotAliasArn")
  @locale_id = locale_id
  Jsii::Type.check_type(@locale_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localeId")
  @invoked_by = invoked_by.is_a?(Hash) ? ::AWSCDK::Chime::CfnAppInstanceBot::InvokedByProperty.new(**invoked_by.transform_keys(&:to_sym)) : invoked_by
  Jsii::Type.check_type(@invoked_by, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jaGltZS5DZm5BcHBJbnN0YW5jZUJvdC5JbnZva2VkQnlQcm9wZXJ0eSJ9XX19")), "invokedBy") unless @invoked_by.nil?
  @responds_to = responds_to
  Jsii::Type.check_type(@responds_to, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "respondsTo") unless @responds_to.nil?
  @welcome_intent = welcome_intent
  Jsii::Type.check_type(@welcome_intent, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "welcomeIntent") unless @welcome_intent.nil?
end

Instance Attribute Details

#invoked_byAWSCDK::IResolvable, ... (readonly)

Specifies the type of message that triggers a bot.



697
698
699
# File 'chime/cfn_app_instance_bot.rb', line 697

def invoked_by
  @invoked_by
end

#lex_bot_alias_arnString (readonly)

The ARN of the Amazon Lex V2 bot's alias.



687
688
689
# File 'chime/cfn_app_instance_bot.rb', line 687

def lex_bot_alias_arn
  @lex_bot_alias_arn
end

#locale_idString (readonly)

Identifies the Amazon Lex V2 bot's language and locale.



692
693
694
# File 'chime/cfn_app_instance_bot.rb', line 692

def locale_id
  @locale_id
end

#responds_toString? (readonly)

Determines whether the Amazon Lex V2 bot responds to all standard messages.

Control messages are not supported.



704
705
706
# File 'chime/cfn_app_instance_bot.rb', line 704

def responds_to
  @responds_to
end

#welcome_intentString? (readonly)

The name of the welcome intent configured in the Amazon Lex V2 bot.



709
710
711
# File 'chime/cfn_app_instance_bot.rb', line 709

def welcome_intent
  @welcome_intent
end

Class Method Details

.jsii_propertiesObject



711
712
713
714
715
716
717
718
719
# File 'chime/cfn_app_instance_bot.rb', line 711

def self.jsii_properties
  {
    :lex_bot_alias_arn => "lexBotAliasArn",
    :locale_id => "localeId",
    :invoked_by => "invokedBy",
    :responds_to => "respondsTo",
    :welcome_intent => "welcomeIntent",
  }
end

Instance Method Details

#to_jsiiObject



721
722
723
724
725
726
727
728
729
730
731
# File 'chime/cfn_app_instance_bot.rb', line 721

def to_jsii
  result = {}
  result.merge!({
    "lexBotAliasArn" => @lex_bot_alias_arn,
    "localeId" => @locale_id,
    "invokedBy" => @invoked_by,
    "respondsTo" => @responds_to,
    "welcomeIntent" => @welcome_intent,
  })
  result.compact
end