@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-17T17:31:22.763Z") public class LambdaDataSource extends BackedDataSource
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();
Modifier and Type | Class and Description |
---|---|
static class |
LambdaDataSource.Builder
(experimental) A fluent builder for
LambdaDataSource . |
IGrantable.Jsii$Default
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
LambdaDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LambdaDataSource(software.amazon.jsii.JsiiObjectRef objRef) |
|
LambdaDataSource(software.constructs.Construct scope,
java.lang.String id,
LambdaDataSourceProps props) |
getGrantPrincipal
createFunction, createResolver, getApi, getDs, getName, getServiceRole, setApi, setServiceRole
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected LambdaDataSource(software.amazon.jsii.JsiiObjectRef objRef)
protected LambdaDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public LambdaDataSource(software.constructs.Construct scope, java.lang.String id, LambdaDataSourceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.