Experimental
@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
InterceptorOptions Struct
Options for configuring an interceptor.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const interceptorOptions: bedrock_agentcore_alpha.InterceptorOptions = {
passRequestHeaders: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
interceptor_options = bedrock_agentcore_alpha.InterceptorOptions(
pass_request_headers=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
InterceptorOptions interceptorOptions = InterceptorOptions.builder()
.passRequestHeaders(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
var interceptorOptions = new InterceptorOptions {
PassRequestHeaders = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
interceptorOptions := &InterceptorOptions{
PassRequestHeaders: jsii.Boolean(false),
}
Properties
passRequestHeadersoptionalbooleanpass_request_headersoptionalboolpassRequestHeadersoptionalBooleanPassRequestHeadersoptionalboolPassRequestHeadersoptional*bool#Whether to pass request headers to the interceptor Lambda function.
Default: false - Headers are not passed to interceptor for security
notes
Security Warning: Request headers can contain sensitive information such as authentication tokens and credentials. Only enable this if your interceptor needs access to headers and you have verified that sensitive information is not logged or exposed.