software.aws.awsprototypingsdk.openapigateway.LambdaIntegration Maven / Gradle / Ivy
Show all versions of open-api-gateway Show documentation
package software.aws.awsprototypingsdk.openapigateway;
/**
* (experimental) A lambda integration.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.82.0 (build 2d2ddd7)", date = "2023-08-15T05:38:04.578Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.aws.awsprototypingsdk.openapigateway.$Module.class, fqn = "@aws-prototyping-sdk/open-api-gateway.LambdaIntegration")
public class LambdaIntegration extends software.aws.awsprototypingsdk.openapigateway.Integration {
protected LambdaIntegration(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected LambdaIntegration(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param lambdaFunction This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public LambdaIntegration(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.lambda.IFunction lambdaFunction) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(lambdaFunction, "lambdaFunction is required") });
}
/**
* (experimental) Grant API Gateway permissions to invoke the lambda.
*
* @param __0 This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public void grant(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.IntegrationGrantProps __0) {
software.amazon.jsii.Kernel.call(this, "grant", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(__0, "__0 is required") });
}
/**
* (experimental) Render the lambda integration as a snippet of OpenAPI.
*
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.ApiGatewayIntegration render(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.openapigateway.IntegrationRenderProps props) {
return software.amazon.jsii.Kernel.call(this, "render", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.openapigateway.ApiGatewayIntegration.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
}