Show / Hide Table of Contents

Interface ILambdaDataSourceProps

Properties for an AppSync Lambda datasource.

Inherited Members
IBackedDataSourceProps.ServiceRole
IBaseDataSourceProps.Api
IBaseDataSourceProps.Description
IBaseDataSourceProps.Name
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILambdaDataSourceProps : IBackedDataSourceProps, IBaseDataSourceProps
Syntax (vb)
Public Interface ILambdaDataSourceProps Inherits IBackedDataSourceProps, IBaseDataSourceProps
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;
            using Amazon.CDK.Interfaces.AppSync;

            Function function_;
            IGraphQLApiRef graphQLApiRef;
            Role role;

            var lambdaDataSourceProps = new LambdaDataSourceProps {
                Api = graphQLApiRef,
                LambdaFunction = function_,

                // the properties below are optional
                Description = "description",
                Name = "name",
                ServiceRole = role
            };

Synopsis

Properties

LambdaFunction

The Lambda function to call to interact with this data source.

Properties

LambdaFunction

The Lambda function to call to interact with this data source.

IFunction LambdaFunction { get; }
Property Value

IFunction

Remarks

ExampleMetadata: fixture=_generated

Back to top Generated by DocFX