Experimental
@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
RequestHeaderConfiguration Struct
Configuration for HTTP request headers that will be passed through to the runtime.
| Source | lib/runtime/types.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const requestHeaderConfiguration: bedrock_agentcore_alpha.RequestHeaderConfiguration = {
allowlistedHeaders: ['allowlistedHeaders'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
request_header_configuration = bedrock_agentcore_alpha.RequestHeaderConfiguration(
allowlisted_headers=["allowlistedHeaders"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
RequestHeaderConfiguration requestHeaderConfiguration = RequestHeaderConfiguration.builder()
.allowlistedHeaders(List.of("allowlistedHeaders"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
var requestHeaderConfiguration = new RequestHeaderConfiguration {
AllowlistedHeaders = new [] { "allowlistedHeaders" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
requestHeaderConfiguration := &RequestHeaderConfiguration{
AllowlistedHeaders: []*string{
jsii.String("allowlistedHeaders"),
},
}
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