interface IInterceptor
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.IInterceptor |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#IInterceptor |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.IInterceptor |
Python | aws_cdk.aws_bedrock_agentcore_alpha.IInterceptor |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป IInterceptor |
Implemented by
Lambda
Represents an interceptor that can be bound to a Gateway.
Interceptors allow custom code execution at specific points in the gateway request/response flow.
Properties
| Name | Type | Description |
|---|---|---|
| interception | Interception | The interception point where this interceptor will be invoked. |
interceptionPoint
Type:
Interception
The interception point where this interceptor will be invoked.
Methods
| Name | Description |
|---|---|
| bind(scope, gateway) | Binds this interceptor to a Gateway. |
bind(scope, gateway)
public bind(scope: Construct, gateway: IGateway): InterceptorBindConfig
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].
Returns
Binds this interceptor to a Gateway.
This method is called when the interceptor is added to a gateway. It should:
- Grant any necessary permissions (e.g., Lambda invoke permissions)
- Perform any required setup
- Return the CloudFormation configuration

.NET
Go
Java
Python
TypeScript (