Class LambdaDataSourceProps
(experimental) Properties for an AppSync Lambda datasource.
Inheritance
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class LambdaDataSourceProps : Object, ILambdaDataSourceProps, IBackedDataSourceProps, IBaseDataSourceProps
Syntax (vb)
Public Class LambdaDataSourceProps
Inherits Object
Implements ILambdaDataSourceProps, IBackedDataSourceProps, IBaseDataSourceProps
Remarks
Stability: Experimental
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 lambdaDataSourceProps = new LambdaDataSourceProps {
Api = graphqlApi,
LambdaFunction = function_,
// the properties below are optional
Description = "description",
Name = "name",
ServiceRole = role
};
Synopsis
Constructors
LambdaDataSourceProps() |
Properties
Api | (experimental) The API to attach this data source to. |
Description | (experimental) the description of the data source. |
LambdaFunction | (experimental) The Lambda function to call to interact with this data source. |
Name | (experimental) The name of the data source. |
ServiceRole | (experimental) The IAM service role to be assumed by AppSync to interact with the data source. |
Constructors
LambdaDataSourceProps()
public LambdaDataSourceProps()
Properties
Api
(experimental) The API to attach this data source to.
public IGraphqlApi Api { get; set; }
Property Value
Remarks
Stability: Experimental
Description
(experimental) the description of the data source.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - None
Stability: Experimental
LambdaFunction
(experimental) The Lambda function to call to interact with this data source.
public IFunction LambdaFunction { get; set; }
Property Value
Remarks
Stability: Experimental
Name
(experimental) The name of the data source.
public string Name { get; set; }
Property Value
System.String
Remarks
Default: - id of data source
Stability: Experimental
ServiceRole
(experimental) The IAM service role to be assumed by AppSync to interact with the data source.
public IRole ServiceRole { get; set; }
Property Value
Remarks
Default: - Create a new role
Stability: Experimental