Class: AWSCDK::EFS::CfnAccessPoint::AccessPointTagProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key: nil, value: nil) ⇒ AccessPointTagProperty

Returns a new instance of AccessPointTagProperty.

Parameters:

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

    The tag key (String).

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

    The value of the tag key.



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

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

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



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_jsiiObject



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