Skip to content
v2.278.0

JwtValidationConfigProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
const jwtValidationConfigProperty: elbv2.CfnListenerRule.JwtValidationConfigProperty = {
  issuer: 'issuer',
  jwksEndpoint: 'jwksEndpoint',

  // the properties below are optional
  additionalClaims: [{
    format: 'format',
    name: 'name',
    values: ['values'],
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticloadbalancingv2 as elbv2

jwt_validation_config_property = elbv2.CfnListenerRule.JwtValidationConfigProperty(
    issuer="issuer",
    jwks_endpoint="jwksEndpoint",

    # the properties below are optional
    additional_claims=[elbv2.CfnListenerRule.JwtValidationActionAdditionalClaimProperty(
        format="format",
        name="name",
        values=["values"]
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticloadbalancingv2.*;

JwtValidationConfigProperty jwtValidationConfigProperty = JwtValidationConfigProperty.builder()
        .issuer("issuer")
        .jwksEndpoint("jwksEndpoint")

        // the properties below are optional
        .additionalClaims(List.of(JwtValidationActionAdditionalClaimProperty.builder()
                .format("format")
                .name("name")
                .values(List.of("values"))
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancingV2;

var jwtValidationConfigProperty = new JwtValidationConfigProperty {
    Issuer = "issuer",
    JwksEndpoint = "jwksEndpoint",

    // the properties below are optional
    AdditionalClaims = new [] { new JwtValidationActionAdditionalClaimProperty {
        Format = "format",
        Name = "name",
        Values = new [] { "values" }
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

jwtValidationConfigProperty := &JwtValidationConfigProperty{
	Issuer: jsii.String("issuer"),
	JwksEndpoint: jsii.String("jwksEndpoint"),

	// the properties below are optional
	AdditionalClaims: []interface{}{
		&JwtValidationActionAdditionalClaimProperty{
			Format: jsii.String("format"),
			Name: jsii.String("name"),
			Values: []*string{
				jsii.String("values"),
			},
		},
	},
}

Properties ​

additionalClaimsoptionalIResolvable | IResolvable | CfnListenerRule.JwtValidationActionAdditionalClaimProperty[]additional_claimsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, JwtValidationActionAdditionalClaimProperty]]]additionalClaimsoptionalIResolvableAdditionalClaimsoptionalIResolvableAdditionalClaimsoptionalinterface{} #
issuerstringissuerstrissuerStringIssuerstringIssuer*string required #
jwksEndpointstringjwks_endpointstrjwksEndpointStringJwksEndpointstringJwksEndpoint*string required #