Interface ApiGatewayTargetConfigurationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApiGatewayTargetConfigurationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.215Z")
@Stability(Stable)
public interface ApiGatewayTargetConfigurationProps
extends software.amazon.jsii.JsiiSerializable
Properties for creating an API Gateway target configuration.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;
import software.amazon.awscdk.services.bedrockagentcore.*;
ApiGatewayHttpMethod apiGatewayHttpMethod;
RestApi restApi;
ApiGatewayTargetConfigurationProps apiGatewayTargetConfigurationProps = ApiGatewayTargetConfigurationProps.builder()
.apiGatewayToolConfiguration(ApiGatewayToolConfiguration.builder()
.toolFilters(List.of(ApiGatewayToolFilter.builder()
.filterPath("filterPath")
.methods(List.of(apiGatewayHttpMethod))
.build()))
// the properties below are optional
.toolOverrides(List.of(ApiGatewayToolOverride.builder()
.method(apiGatewayHttpMethod)
.name("name")
.path("path")
// the properties below are optional
.description("description")
.build()))
.build())
.restApi(restApi)
// the properties below are optional
.metadataConfiguration(MetadataConfiguration.builder()
.allowedQueryParameters(List.of("allowedQueryParameters"))
.allowedRequestHeaders(List.of("allowedRequestHeaders"))
.allowedResponseHeaders(List.of("allowedResponseHeaders"))
.build())
.stage("stage")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApiGatewayTargetConfigurationPropsstatic final classAn implementation forApiGatewayTargetConfigurationProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Tool configuration defining which operations to expose.default MetadataConfigurationMetadata configuration for passing headers and query parameters Allows you to pass additional context through headers and query parameters.The REST API to integrate with Must be in the same account and region as the gateway.default StringgetStage()The stage name of the REST API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiGatewayToolConfiguration
Tool configuration defining which operations to expose. -
getRestApi
The REST API to integrate with Must be in the same account and region as the gateway. -
getMetadataConfiguration
Metadata configuration for passing headers and query parameters Allows you to pass additional context through headers and query parameters.Default: - No metadata configuration
-
getStage
The stage name of the REST API.Default: - Uses the deployment stage from the RestApi (restApi.deploymentStage.stageName)
-
builder
-