Class ApiGatewayV2
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.ApiGatewayV2
- All Implemented Interfaces:
IRuleTarget,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:21.241Z")
@Stability(Stable)
public class ApiGatewayV2
extends software.amazon.jsii.JsiiObject
implements IRuleTarget
Use an API Gateway V2 HTTP APIs as a target for Amazon EventBridge rules.
Example:
import software.amazon.awscdk.services.apigatewayv2.*; HttpApi httpApi; Rule rule; rule.addTarget(new ApiGatewayV2(httpApi));
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.events.IRuleTarget
IRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionApiGatewayV2(IHttpApi httpApi) ApiGatewayV2(IHttpApi httpApi, ApiGatewayProps props) protectedApiGatewayV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedApiGatewayV2(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns a RuleTarget that can be used to trigger this API Gateway HTTP APIs as a result from an EventBridge event.Returns a RuleTarget that can be used to trigger this API Gateway HTTP APIs as a result from an EventBridge event.Returns the target IHttpApi.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ApiGatewayV2
protected ApiGatewayV2(software.amazon.jsii.JsiiObjectRef objRef) -
ApiGatewayV2
protected ApiGatewayV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ApiGatewayV2
- Parameters:
httpApi-- IHttpApi implementation to use as event target.
props-- Properties to configure the APIGateway target.
-
ApiGatewayV2
- Parameters:
httpApi-- IHttpApi implementation to use as event target.
-
-
Method Details
-
bind
Returns a RuleTarget that can be used to trigger this API Gateway HTTP APIs as a result from an EventBridge event.- Specified by:
bindin interfaceIRuleTarget- Parameters:
rule- This parameter is required._id-- See Also:
-
bind
Returns a RuleTarget that can be used to trigger this API Gateway HTTP APIs as a result from an EventBridge event.- Specified by:
bindin interfaceIRuleTarget- Parameters:
rule- This parameter is required.- See Also:
-
getIHttpApi
Returns the target IHttpApi.
-