Class: AWSCDK::ServiceCatalog::CfnTagOptionAssociationProps

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

Overview

Properties for defining a CfnTagOptionAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_id: nil, tag_option_id: nil) ⇒ CfnTagOptionAssociationProps

Returns a new instance of CfnTagOptionAssociationProps.

Parameters:

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

    The resource identifier.

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

    The TagOption identifier.



11
12
13
14
15
16
# File 'service_catalog/cfn_tag_option_association_props.rb', line 11

def initialize(resource_id: nil, tag_option_id: nil)
  @resource_id = resource_id
  Jsii::Type.check_type(@resource_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceId") unless @resource_id.nil?
  @tag_option_id = tag_option_id
  Jsii::Type.check_type(@tag_option_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tagOptionId") unless @tag_option_id.nil?
end

Instance Attribute Details

#resource_idString? (readonly)

The resource identifier.



22
23
24
# File 'service_catalog/cfn_tag_option_association_props.rb', line 22

def resource_id
  @resource_id
end

#tag_option_idString? (readonly)

The TagOption identifier.



27
28
29
# File 'service_catalog/cfn_tag_option_association_props.rb', line 27

def tag_option_id
  @tag_option_id
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'service_catalog/cfn_tag_option_association_props.rb', line 29

def self.jsii_properties
  {
    :resource_id => "resourceId",
    :tag_option_id => "tagOptionId",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'service_catalog/cfn_tag_option_association_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "resourceId" => @resource_id,
    "tagOptionId" => @tag_option_id,
  })
  result.compact
end