Class: AWSCDK::Lex::CfnBotAlias::BotAliasLocaleSettingsProperty

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

Overview

Specifies settings that are unique to a locale.

For example, you can use different Lambda function depending on the bot's locale.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled:, code_hook_specification: nil) ⇒ BotAliasLocaleSettingsProperty

Returns a new instance of BotAliasLocaleSettingsProperty.

Parameters:



757
758
759
760
761
762
# File 'lex/cfn_bot_alias.rb', line 757

def initialize(enabled:, code_hook_specification: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled")
  @code_hook_specification = code_hook_specification.is_a?(Hash) ? ::AWSCDK::Lex::CfnBotAlias::CodeHookSpecificationProperty.new(**code_hook_specification.transform_keys(&:to_sym)) : code_hook_specification
  Jsii::Type.check_type(@code_hook_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90QWxpYXMuQ29kZUhvb2tTcGVjaWZpY2F0aW9uUHJvcGVydHkifV19fQ==")), "codeHookSpecification") unless @code_hook_specification.nil?
end

Instance Attribute Details

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

Specifies the Lambda function that should be used in the locale.



775
776
777
# File 'lex/cfn_bot_alias.rb', line 775

def code_hook_specification
  @code_hook_specification
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

Determines whether the locale is enabled for the bot.

If the value is false , the locale isn't available for use.



770
771
772
# File 'lex/cfn_bot_alias.rb', line 770

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



777
778
779
780
781
782
# File 'lex/cfn_bot_alias.rb', line 777

def self.jsii_properties
  {
    :enabled => "enabled",
    :code_hook_specification => "codeHookSpecification",
  }
end

Instance Method Details

#to_jsiiObject



784
785
786
787
788
789
790
791
# File 'lex/cfn_bot_alias.rb', line 784

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "codeHookSpecification" => @code_hook_specification,
  })
  result.compact
end