Class: AWSCDK::ServiceCatalog::TagOptionsProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog/tag_options_props.rb

Overview

Properties for TagOptions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allowed_values_for_tags:) ⇒ TagOptionsProps

Returns a new instance of TagOptionsProps.

Parameters:

  • allowed_values_for_tags (Hash{String => Array<String>})

    The values that are allowed to be set for specific tags.



8
9
10
11
# File 'service_catalog/tag_options_props.rb', line 8

def initialize(allowed_values_for_tags:)
  @allowed_values_for_tags = allowed_values_for_tags
  Jsii::Type.check_type(@allowed_values_for_tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJhcnJheSJ9fSwia2luZCI6Im1hcCJ9fQ==")), "allowedValuesForTags")
end

Instance Attribute Details

#allowed_values_for_tagsHash{String => Array<String>} (readonly)

The values that are allowed to be set for specific tags.

The keys of the map represent the tag keys, and the values of the map are a list of allowed values for that particular tag key.

Returns:

  • (Hash{String => Array<String>})


19
20
21
# File 'service_catalog/tag_options_props.rb', line 19

def allowed_values_for_tags
  @allowed_values_for_tags
end

Class Method Details

.jsii_propertiesObject



21
22
23
24
25
# File 'service_catalog/tag_options_props.rb', line 21

def self.jsii_properties
  {
    :allowed_values_for_tags => "allowedValuesForTags",
  }
end

Instance Method Details

#to_jsiiObject



27
28
29
30
31
32
33
# File 'service_catalog/tag_options_props.rb', line 27

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