Class: AWSCDK::Chime::CfnAppInstanceProps

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

Overview

Properties for defining a CfnAppInstance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, metadata: nil, tags: nil) ⇒ CfnAppInstanceProps

Returns a new instance of CfnAppInstanceProps.

Parameters:

  • name (String)

    The name of the AppInstance.

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

    The metadata of the AppInstance.

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

    Tags assigned to the AppInstance.



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

def initialize(name:, metadata: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @metadata = 
  Jsii::Type.check_type(@metadata, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metadata") unless @metadata.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

#metadataString? (readonly)

The metadata of the AppInstance.

Limited to a 1KB string in UTF-8.



32
33
34
# File 'chime/cfn_app_instance_props.rb', line 32

def 
  @metadata
end

#nameString (readonly)

The name of the AppInstance.



25
26
27
# File 'chime/cfn_app_instance_props.rb', line 25

def name
  @name
end

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

Tags assigned to the AppInstance.



37
38
39
# File 'chime/cfn_app_instance_props.rb', line 37

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'chime/cfn_app_instance_props.rb', line 39

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

Instance Method Details

#to_jsiiObject



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

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