LambdaDataSourceProps

class aws_cdk.aws_appsync.LambdaDataSourceProps(*, api, name, description=None, service_role=None, lambda_function)

Bases: aws_cdk.aws_appsync.BackedDataSourceProps

__init__(*, api, name, description=None, service_role=None, lambda_function)

Properties for an AppSync Lambda datasource.

Parameters
  • api (GraphQLApi) – The API to attach this data source to.

  • name (str) – The name of the data source.

  • description (Optional[str]) – the description of the data source. Default: - None

  • service_role (Optional[IRole]) – The IAM service role to be assumed by AppSync to interact with the data source. Default: - Create a new role

  • lambda_function (IFunction) – The Lambda function to call to interact with this data source.

stability :stability: experimental

Return type

None

Attributes

api

The API to attach this data source to.

stability :stability: experimental

Return type

GraphQLApi

description

the description of the data source.

default :default: - None

stability :stability: experimental

Return type

Optional[str]

lambda_function

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

stability :stability: experimental

Return type

IFunction

name

The name of the data source.

stability :stability: experimental

Return type

str

service_role

The IAM service role to be assumed by AppSync to interact with the data source.

default :default: - Create a new role

stability :stability: experimental

Return type

Optional[IRole]