Class: AWSCDK::EFS::CfnFileSystem::ElasticFileSystemTagProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ ElasticFileSystemTagProperty

Returns a new instance of ElasticFileSystemTagProperty.

Parameters:

  • key (String)

    The tag key (String).

  • value (String)

    The value of the tag key.



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

#keyString (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

#valueString (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_propertiesObject



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_jsiiObject



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