Class AwsApi
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.AwsApi
- All Implemented Interfaces:
IRuleTarget
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.707Z")
@Stability(Stable)
public class AwsApi
extends software.amazon.jsii.JsiiObject
implements IRuleTarget
Use an AWS Lambda function that makes API calls as an event rule target.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.events.targets.*; import software.amazon.awscdk.services.iam.*; Object parameters; PolicyStatement policyStatement; AwsApi awsApi = AwsApi.Builder.create() .action("action") .service("service") // the properties below are optional .apiVersion("apiVersion") .catchErrorPattern("catchErrorPattern") .parameters(parameters) .policyStatement(policyStatement) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.events.IRuleTarget
IRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionAwsApi
(AwsApiProps props) protected
AwsApi
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
AwsApi
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AwsApi
protected AwsApi(software.amazon.jsii.JsiiObjectRef objRef) -
AwsApi
protected AwsApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AwsApi
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
bind
Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.- Specified by:
bind
in interfaceIRuleTarget
- Parameters:
rule
- This parameter is required.id
-
-
bind
Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.- Specified by:
bind
in interfaceIRuleTarget
- Parameters:
rule
- This parameter is required.
-