class GatewayAuthorizer
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.GatewayAuthorizer |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#GatewayAuthorizer |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.GatewayAuthorizer |
Python | aws_cdk.aws_bedrock_agentcore_alpha.GatewayAuthorizer |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha » GatewayAuthorizer |
⚠️ Deprecated: Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.
Factory class for creating Gateway Authorizers.
Initializer
new GatewayAuthorizer()
⚠️ Deprecated: Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.
Methods
| Name | Description |
|---|---|
| static using | AWS IAM authorizer instance. |
| static using | Create a JWT authorizer from Cognito User Pool. |
| static using | Create a custom JWT authorizer. |
| static with | No authorization — the gateway will not perform any inbound authorization. |
static usingAwsIam()
public static usingAwsIam(): IGatewayAuthorizerConfig
⚠️ Deprecated: Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.
Returns
AWS IAM authorizer instance.
static usingCognito(props)
public static usingCognito(props: CognitoAuthorizerProps): IGatewayAuthorizerConfig
⚠️ Deprecated: Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.
Parameters
- props
Cognito— - The Cognito configuration.Authorizer Props
Returns
Create a JWT authorizer from Cognito User Pool.
static usingCustomJwt(configuration)
public static usingCustomJwt(configuration: CustomJwtConfiguration): IGatewayAuthorizerConfig
⚠️ Deprecated: Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.
Parameters
- configuration
Custom— - The JWT configuration.Jwt Configuration
Returns
Create a custom JWT authorizer.
static withNoAuth()
public static withNoAuth(): IGatewayAuthorizerConfig
⚠️ Deprecated: Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.
Returns
No authorization — the gateway will not perform any inbound authorization.
The gateway endpoint will be publicly accessible without credentials. Use this for testing/development, or for production gateways where you have implemented compensating controls such as Gateway Interceptors.

.NET
Go
Java
Python
TypeScript (