Show / Hide Table of Contents

Class RequestHeaderConfiguration

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

Inheritance
object
RequestHeaderConfiguration
Implements
IRequestHeaderConfiguration
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.BedrockAgentCore
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RequestHeaderConfiguration : IRequestHeaderConfiguration
Syntax (vb)
Public Class RequestHeaderConfiguration Implements IRequestHeaderConfiguration
Remarks

ExampleMetadata: fixture=default infused

Examples
var repository = new Repository(this, "TestRepository", new RepositoryProps {
                RepositoryName = "test-agent-runtime"
            });

            var agentRuntimeArtifact = AgentRuntimeArtifact.FromEcrRepository(repository, "v1.0.0");

            new Runtime(this, "test-runtime", new RuntimeProps {
                RuntimeName = "test_runtime",
                AgentRuntimeArtifact = agentRuntimeArtifact,
                RequestHeaderConfiguration = new RequestHeaderConfiguration {
                    AllowlistedHeaders = new [] { "X-Amzn-Bedrock-AgentCore-Runtime-Custom-H1" }
                }
            });

Synopsis

Constructors

RequestHeaderConfiguration()

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

Properties

AllowlistedHeaders

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

Constructors

RequestHeaderConfiguration()

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

public RequestHeaderConfiguration()
Remarks

ExampleMetadata: fixture=default infused

Examples
var repository = new Repository(this, "TestRepository", new RepositoryProps {
                RepositoryName = "test-agent-runtime"
            });

            var agentRuntimeArtifact = AgentRuntimeArtifact.FromEcrRepository(repository, "v1.0.0");

            new Runtime(this, "test-runtime", new RuntimeProps {
                RuntimeName = "test_runtime",
                AgentRuntimeArtifact = agentRuntimeArtifact,
                RequestHeaderConfiguration = new RequestHeaderConfiguration {
                    AllowlistedHeaders = new [] { "X-Amzn-Bedrock-AgentCore-Runtime-Custom-H1" }
                }
            });

Properties

AllowlistedHeaders

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

public string[]? AllowlistedHeaders { get; set; }
Property Value

string[]

Remarks

Default: - No request headers allowed

Implements

IRequestHeaderConfiguration
Back to top Generated by DocFX