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 |
Factory class for creating Gateway Authorizers.
Initializer
new GatewayAuthorizer()
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
Returns
AWS IAM authorizer instance.
static usingCognito(props)
public static usingCognito(props: CognitoAuthorizerProps): IGatewayAuthorizerConfig
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
Parameters
- configuration
Customโ - The JWT configuration.Jwt Configuration
Returns
Create a custom JWT authorizer.
static withNoAuth()
public static withNoAuth(): IGatewayAuthorizerConfig
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 (