IInterceptor

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

Bases: Protocol

Represents an interceptor that can be bound to a Gateway.

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

Methods

bind(scope, gateway)

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

Attributes

interception_point

The interception point where this interceptor will be invoked.