RequestHeaderConfiguration

class aws_cdk.aws_bedrock_agentcore_alpha.RequestHeaderConfiguration(*, allowlisted_headers=None)

Bases: object

(experimental) Configuration for HTTP request headers that will be passed through to the runtime.

Parameters:

allowlisted_headers (Optional[Sequence[str]]) – (experimental) A list of HTTP request headers that are allowed to be passed through to the runtime. Default: - No request headers allowed

Stability:

experimental

ExampleMetadata:

fixture=default infused

Example:

repository = ecr.Repository(self, "TestRepository",
    repository_name="test-agent-runtime"
)

agent_runtime_artifact = agentcore.AgentRuntimeArtifact.from_ecr_repository(repository, "v1.0.0")

agentcore.Runtime(self, "test-runtime",
    runtime_name="test_runtime",
    agent_runtime_artifact=agent_runtime_artifact,
    request_header_configuration=agentcore.RequestHeaderConfiguration(
        allowlisted_headers=["X-Amzn-Bedrock-AgentCore-Runtime-Custom-H1"]
    )
)

Attributes

allowlisted_headers

(experimental) A list of HTTP request headers that are allowed to be passed through to the runtime.

Default:
  • No request headers allowed

Stability:

experimental