InterceptorOptions

class aws_cdk.aws_bedrock_agentcore_alpha.InterceptorOptions(*, pass_request_headers=None)

Bases: object

(experimental) Options for configuring an interceptor.

Parameters:

pass_request_headers (Optional[bool]) – (experimental) Whether to pass request headers to the interceptor Lambda function. 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. Default: false - Headers are not passed to interceptor for security

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# 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
)

Attributes

pass_request_headers

(experimental) Whether to pass request headers to the interceptor Lambda function.

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.

Default:

false - Headers are not passed to interceptor for security

Stability:

experimental