BackedDataSourceProps

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

Bases: aws_cdk.aws_appsync.BaseDataSourceProps

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

properties for an AppSync datasource backed by a resource.

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

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

  • name (Optional[str]) – The name of the data source. Default: - id of data source

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

stability :stability: experimental

Return type

None

Attributes

api

The API to attach this data source to.

stability :stability: experimental

Return type

IGraphqlApi

description

the description of the data source.

default :default: - None

stability :stability: experimental

Return type

Optional[str]

name

The name of the data source.

default :default: - id of data source

stability :stability: experimental

Return type

Optional[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]