Class: AWSCDK::Lex::CfnBot::BotAliasLocaleSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.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:



1331
1332
1333
1334
1335
1336
# File 'lex/cfn_bot.rb', line 1331

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::CfnBot::CodeHookSpecificationProperty.new(**code_hook_specification.transform_keys(&:to_sym)) : code_hook_specification
  Jsii::Type.check_type(@code_hook_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvZGVIb29rU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "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.



1349
1350
1351
# File 'lex/cfn_bot.rb', line 1349

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.



1344
1345
1346
# File 'lex/cfn_bot.rb', line 1344

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



1351
1352
1353
1354
1355
1356
# File 'lex/cfn_bot.rb', line 1351

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

Instance Method Details

#to_jsiiObject



1358
1359
1360
1361
1362
1363
1364
1365
# File 'lex/cfn_bot.rb', line 1358

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