Class LambdaDataSource
An AppSync datasource backed by a Lambda function.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaDataSource : BackedDataSource, IGrantable
Syntax (vb)
Public Class LambdaDataSource
Inherits BackedDataSource
Implements IGrantable
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.AWS.Lambda;
Function function_;
GraphqlApi graphqlApi;
Role role;
var lambdaDataSource = new LambdaDataSource(this, "MyLambdaDataSource", new LambdaDataSourceProps {
Api = graphqlApi,
LambdaFunction = function_,
// the properties below are optional
Description = "description",
Name = "name",
ServiceRole = role
});
Synopsis
Constructors
LambdaDataSource(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LambdaDataSource(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
LambdaDataSource(Construct, String, ILambdaDataSourceProps) |
Constructors
LambdaDataSource(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LambdaDataSource(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LambdaDataSource(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LambdaDataSource(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
LambdaDataSource(Construct, String, ILambdaDataSourceProps)
public LambdaDataSource(Construct scope, string id, ILambdaDataSourceProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ILambdaDataSourceProps