Skip to content
v2.278.0

MetadataConfigurationProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const metadataConfigurationProperty: bedrockagentcore.CfnGatewayTarget.MetadataConfigurationProperty = {
  allowedQueryParameters: ['allowedQueryParameters'],
  allowedRequestHeaders: ['allowedRequestHeaders'],
  allowedResponseHeaders: ['allowedResponseHeaders'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

metadata_configuration_property = bedrockagentcore.CfnGatewayTarget.MetadataConfigurationProperty(
    allowed_query_parameters=["allowedQueryParameters"],
    allowed_request_headers=["allowedRequestHeaders"],
    allowed_response_headers=["allowedResponseHeaders"]
)
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.bedrockagentcore.*;

MetadataConfigurationProperty metadataConfigurationProperty = MetadataConfigurationProperty.builder()
        .allowedQueryParameters(List.of("allowedQueryParameters"))
        .allowedRequestHeaders(List.of("allowedRequestHeaders"))
        .allowedResponseHeaders(List.of("allowedResponseHeaders"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var metadataConfigurationProperty = new MetadataConfigurationProperty {
    AllowedQueryParameters = new [] { "allowedQueryParameters" },
    AllowedRequestHeaders = new [] { "allowedRequestHeaders" },
    AllowedResponseHeaders = new [] { "allowedResponseHeaders" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

metadataConfigurationProperty := &MetadataConfigurationProperty{
	AllowedQueryParameters: []*string{
		jsii.String("allowedQueryParameters"),
	},
	AllowedRequestHeaders: []*string{
		jsii.String("allowedRequestHeaders"),
	},
	AllowedResponseHeaders: []*string{
		jsii.String("allowedResponseHeaders"),
	},
}

Properties ​

allowedQueryParametersoptionalstring[]allowed_query_parametersoptionaltyping.List[str]allowedQueryParametersoptionalList<String>AllowedQueryParametersoptionalstring[]AllowedQueryParametersoptional*[]*string #
allowedRequestHeadersoptionalstring[]allowed_request_headersoptionaltyping.List[str]allowedRequestHeadersoptionalList<String>AllowedRequestHeadersoptionalstring[]AllowedRequestHeadersoptional*[]*string #
allowedResponseHeadersoptionalstring[]allowed_response_headersoptionaltyping.List[str]allowedResponseHeadersoptionalList<String>AllowedResponseHeadersoptionalstring[]AllowedResponseHeadersoptional*[]*string #