Interface LambdaDataSourceProps
- All Superinterfaces:
BackedDataSourceProps,BaseDataSourceProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LambdaDataSourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.546Z")
@Stability(Experimental)
public interface LambdaDataSourceProps
extends software.amazon.jsii.JsiiSerializable, BackedDataSourceProps
(experimental) Properties for an AppSync Lambda datasource.
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;
LambdaDataSourceProps lambdaDataSourceProps = LambdaDataSourceProps.builder()
.api(graphqlApi)
.lambdaFunction(function_)
// the properties below are optional
.description("description")
.name("name")
.serviceRole(role)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLambdaDataSourcePropsstatic final classAn implementation forLambdaDataSourceProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()(experimental) The Lambda function to call to interact with this data source.Methods inherited from interface software.amazon.awscdk.services.appsync.BackedDataSourceProps
getServiceRoleMethods inherited from interface software.amazon.awscdk.services.appsync.BaseDataSourceProps
getApi, getDescription, getNameMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLambdaFunction
(experimental) The Lambda function to call to interact with this data source. -
builder
- Returns:
- a
LambdaDataSourceProps.BuilderofLambdaDataSourceProps
-