Class ApiGatewayTargetConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.ApiGatewayTargetConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiGatewayTargetConfiguration>
- Enclosing class:
ApiGatewayTargetConfiguration
@Stability(Stable)
public static final class ApiGatewayTargetConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<ApiGatewayTargetConfiguration>
A fluent builder for
ApiGatewayTargetConfiguration.-
Method Summary
Modifier and TypeMethodDescriptionapiGatewayToolConfiguration(ApiGatewayToolConfiguration apiGatewayToolConfiguration) Tool configuration defining which operations to expose.build()create()metadataConfiguration(MetadataConfiguration metadataConfiguration) Metadata 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.The stage name of the REST API.
-
Method Details
-
create
- Returns:
- a new instance of
ApiGatewayTargetConfiguration.Builder.
-
apiGatewayToolConfiguration
@Stability(Stable) public ApiGatewayTargetConfiguration.Builder apiGatewayToolConfiguration(ApiGatewayToolConfiguration apiGatewayToolConfiguration) Tool configuration defining which operations to expose.- Parameters:
apiGatewayToolConfiguration- Tool configuration defining which operations to expose. This parameter is required.- Returns:
this
-
restApi
The REST API to integrate with Must be in the same account and region as the gateway.- Parameters:
restApi- The REST API to integrate with Must be in the same account and region as the gateway. This parameter is required.- Returns:
this
-
metadataConfiguration
@Stability(Stable) public ApiGatewayTargetConfiguration.Builder metadataConfiguration(MetadataConfiguration metadataConfiguration) Metadata configuration for passing headers and query parameters Allows you to pass additional context through headers and query parameters.Default: - No metadata configuration
- Parameters:
metadataConfiguration- Metadata configuration for passing headers and query parameters Allows you to pass additional context through headers and query parameters. This parameter is required.- Returns:
this
-
stage
The stage name of the REST API.Default: - Uses the deployment stage from the RestApi (restApi.deploymentStage.stageName)
- Parameters:
stage- The stage name of the REST API. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiGatewayTargetConfiguration>- Returns:
- a newly built instance of
ApiGatewayTargetConfiguration.
-