Interface ApiIntegration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApiIntegration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.94.0 (build b380f01)",
date="2024-02-29T18:24:01.194Z")
public interface ApiIntegration
extends software.amazon.jsii.JsiiSerializable
The ApiIntegration interface is used to correlate a user-specified id with either a existing lambda function or set of lambda props.
See the 'Overview of how the OpenAPI file transformation works' section of the README.md for more details on its usage.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApiIntegrationstatic final classAn implementation forApiIntegration -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiIntegration.Builderbuilder()default software.amazon.awscdk.services.lambda.FunctionThe Lambda function to associate with the API method in the OpenAPI file matched by id.getId()Id of the ApiIntegration, used to correlate this lambda function to the api integration in the open api definition.default software.amazon.awscdk.services.lambda.FunctionPropsProperties for the Lambda function to create and associate with the API method in the OpenAPI file matched by id.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getId
Id of the ApiIntegration, used to correlate this lambda function to the api integration in the open api definition.Note this is not a CDK Construct ID, and is instead a client defined string used to map the resolved lambda resource with the OpenAPI definition.
-
getExistingLambdaObj
@Nullable default software.amazon.awscdk.services.lambda.Function getExistingLambdaObj()The Lambda function to associate with the API method in the OpenAPI file matched by id.One and only one of existingLambdaObj or lambdaFunctionProps must be specified, any other combination will cause an error.
-
getLambdaFunctionProps
@Nullable default software.amazon.awscdk.services.lambda.FunctionProps getLambdaFunctionProps()Properties for the Lambda function to create and associate with the API method in the OpenAPI file matched by id.One and only one of existingLambdaObj or lambdaFunctionProps must be specified, any other combination will cause an error.
-
builder
- Returns:
- a
ApiIntegration.BuilderofApiIntegration
-