Class: AWSCDK::EKS::CfnIdentityProviderConfig::RequiredClaimProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_identity_provider_config.rb

Overview

A key-value pair that describes a required claim in the identity token.

If set, each claim is verified to be present in the token with a matching value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ RequiredClaimProperty

Returns a new instance of RequiredClaimProperty.

Parameters:

  • key (String)

    The key to match from the token.

  • value (String)

    The value for the key from the token.



676
677
678
679
680
681
# File 'eks/cfn_identity_provider_config.rb', line 676

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 key to match from the token.



687
688
689
# File 'eks/cfn_identity_provider_config.rb', line 687

def key
  @key
end

#valueString (readonly)

The value for the key from the token.



692
693
694
# File 'eks/cfn_identity_provider_config.rb', line 692

def value
  @value
end

Class Method Details

.jsii_propertiesObject



694
695
696
697
698
699
# File 'eks/cfn_identity_provider_config.rb', line 694

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



701
702
703
704
705
706
707
708
# File 'eks/cfn_identity_provider_config.rb', line 701

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end