Interface AddApiGatewayTargetOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AddApiGatewayTargetOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.195Z")
@Stability(Stable)
public interface AddApiGatewayTargetOptions
extends software.amazon.jsii.JsiiSerializable
Options for adding an API Gateway target to a gateway.
Example:
Gateway gateway = Gateway.Builder.create(this, "MyGateway")
.gatewayName("my-gateway")
.build();
RestApi api = RestApi.Builder.create(this, "MyApi")
.restApiName("my-api")
.build();
// Uses IAM authorization for outbound auth by default
GatewayTarget apiGatewayTarget = gateway.addApiGatewayTarget("MyApiGatewayTarget", AddApiGatewayTargetOptions.builder()
.restApi(api)
.apiGatewayToolConfiguration(ApiGatewayToolConfiguration.builder()
.toolFilters(List.of(ApiGatewayToolFilter.builder()
.filterPath("/pets/*")
.methods(List.of(ApiGatewayHttpMethod.GET))
.build()))
.build())
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAddApiGatewayTargetOptionsstatic final classAn implementation forAddApiGatewayTargetOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Tool configuration defining which operations to expose.default List<ICredentialProviderConfig> Credential providers for authentication API Gateway targets support IAM and API key authentication.default StringOptional description for the gateway target.default StringThe name of the gateway target Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen).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 [disable-awslint:prefer-ref-interface].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 [disable-awslint:prefer-ref-interface]. -
getCredentialProviderConfigurations
@Stability(Stable) @Nullable default List<ICredentialProviderConfig> getCredentialProviderConfigurations()Credential providers for authentication API Gateway targets support IAM and API key authentication.Default: - Empty array (service handles IAM automatically)
-
getDescription
Optional description for the gateway target.Default: - No description
-
getGatewayTargetName
The name of the gateway target Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen).Default: - auto generate
-
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
- Returns:
- a
AddApiGatewayTargetOptions.BuilderofAddApiGatewayTargetOptions
-