Skip to content
v2.274.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 ​

allowlistedHeadersstring[]allowlisted_headerstyping.List[str]allowlistedHeadersList<String>AllowlistedHeadersstring[]AllowlistedHeaders*[]*string#
A list of HTTP request headers that are allowed to be passed through to the runtime.

Default: No request headers allowed