Class: AWSCDK::Invoicing::CfnInvoiceUnit::ResourceTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Invoicing::CfnInvoiceUnit::ResourceTagProperty
- Defined in:
- invoicing/cfn_invoice_unit.rb
Overview
The tag structure that contains a tag key and value.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The object key of your of your resource tag.
-
#value ⇒ String
readonly
The specific value of the resource tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ ResourceTagProperty
constructor
A new instance of ResourceTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ ResourceTagProperty
Returns a new instance of ResourceTagProperty.
598 599 600 601 602 603 |
# File 'invoicing/cfn_invoice_unit.rb', line 598 def initialize(key:, value:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#key ⇒ String (readonly)
The object key of your of your resource tag.
609 610 611 |
# File 'invoicing/cfn_invoice_unit.rb', line 609 def key @key end |
#value ⇒ String (readonly)
The specific value of the resource tag.
614 615 616 |
# File 'invoicing/cfn_invoice_unit.rb', line 614 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
616 617 618 619 620 621 |
# File 'invoicing/cfn_invoice_unit.rb', line 616 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
623 624 625 626 627 628 629 630 |
# File 'invoicing/cfn_invoice_unit.rb', line 623 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |