Class AppSyncLambdaDataSourceProps
Properties for an AppSync Lambda datasource.
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AppSyncLambdaDataSourceProps : IAppSyncLambdaDataSourceProps, IAppSyncBackedDataSourceProps, IAppSyncBaseDataSourceProps
Syntax (vb)
Public Class AppSyncLambdaDataSourceProps Implements IAppSyncLambdaDataSourceProps, IAppSyncBackedDataSourceProps, IAppSyncBaseDataSourceProps
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;
IApi api;
Function function_;
Role role;
var appSyncLambdaDataSourceProps = new AppSyncLambdaDataSourceProps {
Api = api,
LambdaFunction = function_,
// the properties below are optional
Description = "description",
Name = "name",
ServiceRole = role
};
Synopsis
Constructors
AppSyncLambdaDataSourceProps() | Properties for an AppSync Lambda datasource. |
Properties
Api | The API to attach this data source to. |
Description | The description of the data source. |
LambdaFunction | The Lambda function to call to interact with this data source. |
Name | The name of the data source. |
ServiceRole | The IAM service role to be assumed by AppSync to interact with the data source. |
Constructors
AppSyncLambdaDataSourceProps()
Properties for an AppSync Lambda datasource.
public AppSyncLambdaDataSourceProps()
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;
IApi api;
Function function_;
Role role;
var appSyncLambdaDataSourceProps = new AppSyncLambdaDataSourceProps {
Api = api,
LambdaFunction = function_,
// the properties below are optional
Description = "description",
Name = "name",
ServiceRole = role
};
Properties
Api
The API to attach this data source to.
public IApi Api { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Description
The description of the data source.
public string? Description { get; set; }
Property Value
Remarks
Default: - None
LambdaFunction
The Lambda function to call to interact with this data source.
public IFunction LambdaFunction { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Name
The name of the data source.
public string? Name { get; set; }
Property Value
Remarks
The only allowed pattern is: {[_A-Za-z][_0-9A-Za-z]*}. Any invalid characters will be automatically removed.
Default: - id of data source
ServiceRole
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