# IInterceptor

Represents an interceptor that can be bound to a Gateway.

Interceptors allow custom code execution at specific points in the gateway request/response flow.

Extends: IInterceptor
Implemented by: LambdaInterceptor

- Source: [`aws-bedrockagentcore/lib/gateway/interceptor.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/gateway/interceptor.ts#L51)
- Type last changed: v2.255.0 · 19 May 2026

## Properties

- `interceptionPoint`: [InterceptionPoint](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.InterceptionPoint.html) — The interception point where this interceptor will be invoked.

## Methods

- `bind(scope: Construct, gateway: IGateway): InterceptorBindConfig` — Binds this interceptor to a Gateway.

  This method is called when the interceptor is added to a gateway. It should:
  1. Grant any necessary permissions (e.g., Lambda invoke permissions)
  2. Perform any required setup
  3. Return the CloudFormation configuration

  **Parameters**

  - `scope` — The construct scope for creating any required resources.
  - `gateway` — The gateway this interceptor is being bound to [disable-awslint:prefer-ref-interface].

  **Returns:** Configuration that will be rendered to CloudFormation
