Class: AWSCDK::Lex::CfnBotVersionProps

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

Overview

Properties for defining a CfnBotVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bot_id:, bot_version_locale_specification:, description: nil) ⇒ CfnBotVersionProps

Returns a new instance of CfnBotVersionProps.

Parameters:



12
13
14
15
16
17
18
19
# File 'lex/cfn_bot_version_props.rb', line 12

def initialize(bot_id:, bot_version_locale_specification:, description: nil)
  @bot_id = bot_id
  Jsii::Type.check_type(@bot_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19sZXguSUJvdFJlZiJ9XX19")), "botId")
  @bot_version_locale_specification = bot_version_locale_specification
  Jsii::Type.check_type(@bot_version_locale_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdFZlcnNpb24uQm90VmVyc2lvbkxvY2FsZVNwZWNpZmljYXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "botVersionLocaleSpecification")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#bot_idString, AWSCDK::Interfaces::AWSLex::IBotRef (readonly)

The unique identifier of the bot.



25
26
27
# File 'lex/cfn_bot_version_props.rb', line 25

def bot_id
  @bot_id
end

#bot_version_locale_specificationAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Lex::CfnBotVersion::BotVersionLocaleSpecificationProperty> (readonly)

Specifies the locales that Amazon Lex adds to this version.

You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.



32
33
34
# File 'lex/cfn_bot_version_props.rb', line 32

def bot_version_locale_specification
  @bot_version_locale_specification
end

#descriptionString? (readonly)

The description of the version.



37
38
39
# File 'lex/cfn_bot_version_props.rb', line 37

def description
  @description
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'lex/cfn_bot_version_props.rb', line 39

def self.jsii_properties
  {
    :bot_id => "botId",
    :bot_version_locale_specification => "botVersionLocaleSpecification",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'lex/cfn_bot_version_props.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "botId" => @bot_id,
    "botVersionLocaleSpecification" => @bot_version_locale_specification,
    "description" => @description,
  })
  result.compact
end