Class: AWSCDK::EFS::CfnAccessPoint::AccessPointTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EFS::CfnAccessPoint::AccessPointTagProperty
- Defined in:
- efs/cfn_access_point.rb
Overview
A tag is a key-value pair attached to a file system.
Allowed characters in the Key and Value properties are letters, white space, and numbers that can be represented in UTF-8, and the following characters: + - = . _ : /
Instance Attribute Summary collapse
-
#key ⇒ String?
readonly
The tag key (String).
-
#value ⇒ String?
readonly
The value of the tag key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, value: nil) ⇒ AccessPointTagProperty
constructor
A new instance of AccessPointTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key: nil, value: nil) ⇒ AccessPointTagProperty
Returns a new instance of AccessPointTagProperty.
612 613 614 615 616 617 |
# File 'efs/cfn_access_point.rb', line 612 def initialize(key: nil, value: nil) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#key ⇒ String? (readonly)
The tag key (String).
The key can't start with aws: .
625 626 627 |
# File 'efs/cfn_access_point.rb', line 625 def key @key end |
#value ⇒ String? (readonly)
The value of the tag key.
630 631 632 |
# File 'efs/cfn_access_point.rb', line 630 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
632 633 634 635 636 637 |
# File 'efs/cfn_access_point.rb', line 632 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
639 640 641 642 643 644 645 646 |
# File 'efs/cfn_access_point.rb', line 639 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |