Class: AWSCDK::ElasticLoadBalancingv2::CfnListener::JwtValidationActionAdditionalClaimProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elastic_load_balancingv2/cfn_listener.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.



1154
1155
1156
1157
1158
1159
1160
1161
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1154

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.



1167
1168
1169
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1167

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.



1174
1175
1176
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1174

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.



1181
1182
1183
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1181

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1183
1184
1185
1186
1187
1188
1189
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1183

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

Instance Method Details

#to_jsiiObject



1191
1192
1193
1194
1195
1196
1197
1198
1199
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1191

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