Skip to content
v2.275.0

RequestHeaderConfiguration Struct ​

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

Example ​

ts
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 ​

allowlistedHeadersoptionalstring[]allowlisted_headersoptionaltyping.List[str]allowlistedHeadersoptionalList<String>AllowlistedHeadersoptionalstring[]AllowlistedHeadersoptional*[]*string#
A list of HTTP request headers that are allowed to be passed through to the runtime.

Default: No request headers allowed