interface RequestHeaderConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.RequestHeaderConfiguration |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#RequestHeaderConfiguration |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.RequestHeaderConfiguration |
Python | aws_cdk.aws_bedrock_agentcore_alpha.RequestHeaderConfiguration |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป RequestHeaderConfiguration |
Configuration for HTTP request headers that will be passed through to the runtime.
Example
const repository = new ecr.Repository(this, "TestRepository", {
repositoryName: "test-agent-runtime",
});
const agentRuntimeArtifact = agentcore.AgentRuntimeArtifact.fromEcrRepository(repository, "v1.0.0");
new agentcore.Runtime(this, 'test-runtime', {
runtimeName: 'test_runtime',
agentRuntimeArtifact: agentRuntimeArtifact,
requestHeaderConfiguration: {
allowlistedHeaders: ['X-Amzn-Bedrock-AgentCore-Runtime-Custom-H1'],
},
});
Properties
| Name | Type | Description |
|---|---|---|
| allowlisted | string[] | A list of HTTP request headers that are allowed to be passed through to the runtime. |
allowlistedHeaders?
Type:
string[]
(optional, default: No request headers allowed)
A list of HTTP request headers that are allowed to be passed through to the runtime.

.NET
Go
Java
Python
TypeScript (