Class LambdaDataSource

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IGrantable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.526Z") @Stability(Experimental) public class LambdaDataSource extends BackedDataSource
(experimental) An AppSync datasource backed by a Lambda function.

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.appsync.*;
 import software.amazon.awscdk.services.iam.*;
 import software.amazon.awscdk.services.lambda.*;
 Function function_;
 GraphqlApi graphqlApi;
 Role role;
 LambdaDataSource lambdaDataSource = LambdaDataSource.Builder.create(this, "MyLambdaDataSource")
         .api(graphqlApi)
         .lambdaFunction(function_)
         // the properties below are optional
         .description("description")
         .name("name")
         .serviceRole(role)
         .build();
 
  • Constructor Details

    • LambdaDataSource

      protected LambdaDataSource(software.amazon.jsii.JsiiObjectRef objRef)
    • LambdaDataSource

      protected LambdaDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • LambdaDataSource

      @Stability(Experimental) public LambdaDataSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull LambdaDataSourceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.