Class: AWSCDK::ResilienceHubv2::CfnService::ResourceTagProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
resilience_hubv2/cfn_service.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, values:) ⇒ ResourceTagProperty

Returns a new instance of ResourceTagProperty.

Parameters:

  • key (String)

    Tag key.

  • values (Array<String>)

    Tag values.



1137
1138
1139
1140
1141
1142
# File 'resilience_hubv2/cfn_service.rb', line 1137

def initialize(key:, values:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values")
end

Instance Attribute Details

#keyString (readonly)

Tag key.



1148
1149
1150
# File 'resilience_hubv2/cfn_service.rb', line 1148

def key
  @key
end

#valuesArray<String> (readonly)

Tag values.



1153
1154
1155
# File 'resilience_hubv2/cfn_service.rb', line 1153

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1155
1156
1157
1158
1159
1160
# File 'resilience_hubv2/cfn_service.rb', line 1155

def self.jsii_properties
  {
    :key => "key",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



1162
1163
1164
1165
1166
1167
1168
1169
# File 'resilience_hubv2/cfn_service.rb', line 1162

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "values" => @values,
  })
  result.compact
end