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.97.0 (build 729de35)", date="2024-04-18T17:54:17.377Z") @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
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for AwsApi.

    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

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    AwsApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    AwsApi(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(IRule rule)
    Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.
    bind(IRule rule, String id)
    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

      @Stability(Stable) public AwsApi(@NotNull AwsApiProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule rule, @Nullable String id)
      Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.

      Specified by:
      bind in interface IRuleTarget
      Parameters:
      rule - This parameter is required.
      id -
    • bind

      @Stability(Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule rule)
      Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.

      Specified by:
      bind in interface IRuleTarget
      Parameters:
      rule - This parameter is required.