Class: AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::JwtValidationActionAdditionalClaimProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elastic_load_balancingv2/cfn_listener_rule.rb

Overview

Information about an additional claim to validate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format:, name:, values:) ⇒ JwtValidationActionAdditionalClaimProperty

Returns a new instance of JwtValidationActionAdditionalClaimProperty.

Parameters:

  • format (String)

    The format of the claim value.

  • name (String)

    The name of the claim.

  • values (Array<String>)

    The claim value.



1216
1217
1218
1219
1220
1221
1222
1223
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1216

def initialize(format:, name:, values:)
  @format = format
  Jsii::Type.check_type(@format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "format")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values")
end

Instance Attribute Details

#formatString (readonly)

The format of the claim value.



1229
1230
1231
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1229

def format
  @format
end

#nameString (readonly)

The name of the claim.

You can't specify exp , iss , nbf , or iat because we validate them by default.



1236
1237
1238
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1236

def name
  @name
end

#valuesArray<String> (readonly)

The claim value.

The maximum size of the list is 10. Each value can be up to 256 characters in length. If the format is space-separated-values , the values can't include spaces.



1243
1244
1245
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1243

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1245
1246
1247
1248
1249
1250
1251
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1245

def self.jsii_properties
  {
    :format => "format",
    :name => "name",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



1253
1254
1255
1256
1257
1258
1259
1260
1261
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1253

def to_jsii
  result = {}
  result.merge!({
    "format" => @format,
    "name" => @name,
    "values" => @values,
  })
  result.compact
end