Class GatewayAuthorizer

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.GatewayAuthorizer
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-19T19:44:37.082Z") @Stability(Stable) public abstract class GatewayAuthorizer extends software.amazon.jsii.JsiiObject
Factory class for creating Gateway Authorizers.

Example:

 // Optional: Create custom claims (CustomClaimOperator and GatewayCustomClaim from agentcore)
 GatewayCustomClaim[] customClaims = List.of(GatewayCustomClaim.withStringValue("department", "engineering"), GatewayCustomClaim.withStringArrayValue("roles", List.of("admin"), CustomClaimOperator.CONTAINS), GatewayCustomClaim.withStringArrayValue("permissions", List.of("read", "write"), CustomClaimOperator.CONTAINS_ANY));
 Gateway gateway = Gateway.Builder.create(this, "MyGateway")
         .gatewayName("my-gateway")
         .authorizerConfiguration(GatewayAuthorizer.usingCustomJwt(CustomJwtConfiguration.builder()
                 .discoveryUrl("https://auth.example.com/.well-known/openid-configuration")
                 .allowedAudience(List.of("my-app"))
                 .allowedClients(List.of("my-client-id"))
                 .allowedScopes(List.of("read", "write"))
                 .customClaims(customClaims)
                 .build()))
         .build();
 
  • Constructor Details

    • GatewayAuthorizer

      protected GatewayAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
    • GatewayAuthorizer

      protected GatewayAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • GatewayAuthorizer

      @Stability(Stable) protected GatewayAuthorizer()
  • Method Details