Class: AWSCDK::Kendra::CfnIndex::JwtTokenTypeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kendra/cfn_index.rb

Overview

Provides the configuration information for the JWT token type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_location:, claim_regex: nil, group_attribute_field: nil, issuer: nil, secret_manager_arn: nil, url: nil, user_name_attribute_field: nil) ⇒ JwtTokenTypeConfigurationProperty

Returns a new instance of JwtTokenTypeConfigurationProperty.

Parameters:

  • key_location (String)

    The location of the key.

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

    The regular expression that identifies the claim.

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

    The group attribute field.

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

    The issuer of the token.

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

    The Amazon Resource Name (arn) of the secret.

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

    The signing key URL.

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

    The user name attribute field.



839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
# File 'kendra/cfn_index.rb', line 839

def initialize(key_location:, claim_regex: nil, group_attribute_field: nil, issuer: nil, secret_manager_arn: nil, url: nil, user_name_attribute_field: nil)
  @key_location = key_location
  Jsii::Type.check_type(@key_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyLocation")
  @claim_regex = claim_regex
  Jsii::Type.check_type(@claim_regex, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "claimRegex") unless @claim_regex.nil?
  @group_attribute_field = group_attribute_field
  Jsii::Type.check_type(@group_attribute_field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupAttributeField") unless @group_attribute_field.nil?
  @issuer = issuer
  Jsii::Type.check_type(@issuer, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "issuer") unless @issuer.nil?
  @secret_manager_arn = secret_manager_arn
  Jsii::Type.check_type(@secret_manager_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretManagerArn") unless @secret_manager_arn.nil?
  @url = url
  Jsii::Type.check_type(@url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "url") unless @url.nil?
  @user_name_attribute_field = user_name_attribute_field
  Jsii::Type.check_type(@user_name_attribute_field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userNameAttributeField") unless @user_name_attribute_field.nil?
end

Instance Attribute Details

#claim_regexString? (readonly)

The regular expression that identifies the claim.



865
866
867
# File 'kendra/cfn_index.rb', line 865

def claim_regex
  @claim_regex
end

#group_attribute_fieldString? (readonly)

The group attribute field.



870
871
872
# File 'kendra/cfn_index.rb', line 870

def group_attribute_field
  @group_attribute_field
end

#issuerString? (readonly)

The issuer of the token.



875
876
877
# File 'kendra/cfn_index.rb', line 875

def issuer
  @issuer
end

#key_locationString (readonly)

The location of the key.



860
861
862
# File 'kendra/cfn_index.rb', line 860

def key_location
  @key_location
end

#secret_manager_arnString? (readonly)

The Amazon Resource Name (arn) of the secret.



880
881
882
# File 'kendra/cfn_index.rb', line 880

def secret_manager_arn
  @secret_manager_arn
end

#urlString? (readonly)

The signing key URL.



885
886
887
# File 'kendra/cfn_index.rb', line 885

def url
  @url
end

#user_name_attribute_fieldString? (readonly)

The user name attribute field.



890
891
892
# File 'kendra/cfn_index.rb', line 890

def user_name_attribute_field
  @user_name_attribute_field
end

Class Method Details

.jsii_propertiesObject



892
893
894
895
896
897
898
899
900
901
902
# File 'kendra/cfn_index.rb', line 892

def self.jsii_properties
  {
    :key_location => "keyLocation",
    :claim_regex => "claimRegex",
    :group_attribute_field => "groupAttributeField",
    :issuer => "issuer",
    :secret_manager_arn => "secretManagerArn",
    :url => "url",
    :user_name_attribute_field => "userNameAttributeField",
  }
end

Instance Method Details

#to_jsiiObject



904
905
906
907
908
909
910
911
912
913
914
915
916
# File 'kendra/cfn_index.rb', line 904

def to_jsii
  result = {}
  result.merge!({
    "keyLocation" => @key_location,
    "claimRegex" => @claim_regex,
    "groupAttributeField" => @group_attribute_field,
    "issuer" => @issuer,
    "secretManagerArn" => @secret_manager_arn,
    "url" => @url,
    "userNameAttributeField" => @user_name_attribute_field,
  })
  result.compact
end