BaseDataSourceProps

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

Bases: object

(experimental) Base properties for an AppSync datasource.

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

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

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

Stability

experimental

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_appsync as appsync

# graphql_api is of type GraphqlApi

base_data_source_props = appsync.BaseDataSourceProps(
    api=graphql_api,

    # the properties below are optional
    description="description",
    name="name"
)

Attributes

api

(experimental) The API to attach this data source to.

Stability

experimental

Return type

IGraphqlApi

description

(experimental) the description of the data source.

Default
  • None

Stability

experimental

Return type

Optional[str]

name

(experimental) The name of the data source.

Default
  • id of data source

Stability

experimental

Return type

Optional[str]