IInterceptor

class aws_cdk.aws_bedrock_agentcore_alpha.IInterceptor(*args, **kwargs)

Bases: Protocol

(experimental) Represents an interceptor that can be bound to a Gateway.

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

Stability:

experimental

Methods

bind(scope, gateway)

(experimental) 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 (Construct) – The construct scope for creating any required resources.

  • gateway (IGateway) – The gateway this interceptor is being bound to [disable-awslint:prefer-ref-interface].

Return type:

InterceptorBindConfig

Returns:

Configuration that will be rendered to CloudFormation

Stability:

experimental

Attributes

interception_point

(experimental) The interception point where this interceptor will be invoked.

Stability:

experimental