Class: AWSCDK::LakeFormation::CfnPrincipalPermissions::LFTagProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lake_formation/cfn_principal_permissions.rb

Overview

The LF-tag key and values attached to a resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag_key: nil, tag_values: nil) ⇒ LFTagProperty

Returns a new instance of LFTagProperty.

Parameters:

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

    The key-name for the LF-tag.

  • tag_values (Array<String>, nil) (defaults to: nil)

    A list of possible values of the corresponding TagKey of an LF-tag key-value pair.



900
901
902
903
904
905
# File 'lake_formation/cfn_principal_permissions.rb', line 900

def initialize(tag_key: nil, tag_values: nil)
  @tag_key = tag_key
  Jsii::Type.check_type(@tag_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tagKey") unless @tag_key.nil?
  @tag_values = tag_values
  Jsii::Type.check_type(@tag_values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tagValues") unless @tag_values.nil?
end

Instance Attribute Details

#tag_keyString? (readonly)

The key-name for the LF-tag.



911
912
913
# File 'lake_formation/cfn_principal_permissions.rb', line 911

def tag_key
  @tag_key
end

#tag_valuesArray<String>? (readonly)

A list of possible values of the corresponding TagKey of an LF-tag key-value pair.



916
917
918
# File 'lake_formation/cfn_principal_permissions.rb', line 916

def tag_values
  @tag_values
end

Class Method Details

.jsii_propertiesObject



918
919
920
921
922
923
# File 'lake_formation/cfn_principal_permissions.rb', line 918

def self.jsii_properties
  {
    :tag_key => "tagKey",
    :tag_values => "tagValues",
  }
end

Instance Method Details

#to_jsiiObject



925
926
927
928
929
930
931
932
# File 'lake_formation/cfn_principal_permissions.rb', line 925

def to_jsii
  result = {}
  result.merge!({
    "tagKey" => @tag_key,
    "tagValues" => @tag_values,
  })
  result.compact
end