Class: AWSCDK::EFS::CfnFileSystem::ElasticFileSystemTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EFS::CfnFileSystem::ElasticFileSystemTagProperty
- Defined in:
- efs/cfn_file_system.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:, value:) ⇒ ElasticFileSystemTagProperty
constructor
A new instance of ElasticFileSystemTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ ElasticFileSystemTagProperty
Returns a new instance of ElasticFileSystemTagProperty.
755 756 757 758 759 760 |
# File 'efs/cfn_file_system.rb', line 755 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 tag key (String).
The key can't start with aws: .
768 769 770 |
# File 'efs/cfn_file_system.rb', line 768 def key @key end |
#value ⇒ String (readonly)
The value of the tag key.
773 774 775 |
# File 'efs/cfn_file_system.rb', line 773 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
775 776 777 778 779 780 |
# File 'efs/cfn_file_system.rb', line 775 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
782 783 784 785 786 787 788 789 |
# File 'efs/cfn_file_system.rb', line 782 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |