interface RequestHeaderConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.RequestHeaderConfiguration |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#RequestHeaderConfiguration |
Java | software.amazon.awscdk.services.bedrockagentcore.RequestHeaderConfiguration |
Python | aws_cdk.aws_bedrockagentcore.RequestHeaderConfiguration |
TypeScript (source) | aws-cdk-lib » aws_bedrockagentcore » 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 (