Class: AWSCDK::Chime::CfnAppInstanceBotProps

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

Overview

Properties for defining a CfnAppInstanceBot.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_instance_arn:, configuration:, metadata: nil, name: nil, tags: nil) ⇒ CfnAppInstanceBotProps

Returns a new instance of CfnAppInstanceBotProps.

Parameters:

  • app_instance_arn (String)

    The ARN of the AppInstance.

  • configuration (AWSCDK::IResolvable, AWSCDK::Chime::CfnAppInstanceBot::ConfigurationProperty)

    A structure that contains configuration data.

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

    The metadata of the AppInstanceBot.

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

    The name of the AppInstanceBot.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags assigned to the AppInstanceBot.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'chime/cfn_app_instance_bot_props.rb', line 14

def initialize(app_instance_arn:, configuration:, metadata: nil, name: nil, tags: nil)
  @app_instance_arn = app_instance_arn
  Jsii::Type.check_type(@app_instance_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appInstanceArn")
  @configuration = configuration.is_a?(Hash) ? ::AWSCDK::Chime::CfnAppInstanceBot::ConfigurationProperty.new(**configuration.transform_keys(&:to_sym)) : configuration
  Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jaGltZS5DZm5BcHBJbnN0YW5jZUJvdC5Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "configuration")
  @metadata = 
  Jsii::Type.check_type(@metadata, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metadata") unless @metadata.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#app_instance_arnString (readonly)

The ARN of the AppInstance.



31
32
33
# File 'chime/cfn_app_instance_bot_props.rb', line 31

def app_instance_arn
  @app_instance_arn
end

#configurationAWSCDK::IResolvable, AWSCDK::Chime::CfnAppInstanceBot::ConfigurationProperty (readonly)

A structure that contains configuration data.



36
37
38
# File 'chime/cfn_app_instance_bot_props.rb', line 36

def configuration
  @configuration
end

#metadataString? (readonly)

The metadata of the AppInstanceBot.



41
42
43
# File 'chime/cfn_app_instance_bot_props.rb', line 41

def 
  @metadata
end

#nameString? (readonly)

The name of the AppInstanceBot.



46
47
48
# File 'chime/cfn_app_instance_bot_props.rb', line 46

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags assigned to the AppInstanceBot.



51
52
53
# File 'chime/cfn_app_instance_bot_props.rb', line 51

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'chime/cfn_app_instance_bot_props.rb', line 53

def self.jsii_properties
  {
    :app_instance_arn => "appInstanceArn",
    :configuration => "configuration",
    :metadata => "metadata",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'chime/cfn_app_instance_bot_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "appInstanceArn" => @app_instance_arn,
    "configuration" => @configuration,
    "metadata" => @metadata,
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end