# GatewayAuthorizer

Factory class for creating Gateway Authorizers.

- Source: [`lib/gateway/inbound-auth/authorizer.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/gateway/inbound-auth/authorizer.ts#L202)

## Initializer

TypeScript:

```ts
new GatewayAuthorizer()
```

Python:

```python
GatewayAuthorizer()
```

Java:

```java
new GatewayAuthorizer()
```

C# / .NET:

```csharp
new GatewayAuthorizer()
```

Golang:

```go
NewGatewayAuthorizer()
```

## Methods

- `usingAwsIam(): IGatewayAuthorizerConfig` (static) — AWS IAM authorizer instance.

- `usingCognito(props: CognitoAuthorizerProps): IGatewayAuthorizerConfig` (static) — Create a JWT authorizer from Cognito User Pool.

  **Parameters**

  - `props` — - The Cognito configuration.

  **Returns:** CustomJwtAuthorizer configured for Cognito

- `usingCustomJwt(configuration: CustomJwtConfiguration): IGatewayAuthorizerConfig` (static) — Create a custom JWT authorizer.

  **Parameters**

  - `configuration` — - The JWT configuration.

  **Returns:** IGatewayAuthorizerConfig configured for custom JWT

- `withNoAuth(): IGatewayAuthorizerConfig` (static) — 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.

  **Returns:** IGatewayAuthorizerConfig configured for no authorization
