RdsDataSourceProps

class aws_cdk.aws_appsync.RdsDataSourceProps(*, api, description=None, name=None, service_role=None, database_cluster, secret_store)

Bases: aws_cdk.aws_appsync.BackedDataSourceProps

(experimental) Properties for an AppSync RDS 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

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

  • database_cluster (IDatabaseCluster) – (experimental) The database cluster to call to interact with this data source.

  • secret_store (ISecret) – (experimental) The secret containing the credentials for the database.

Stability

experimental

Attributes

api

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

Stability

experimental

Return type

IGraphqlApi

database_cluster

(experimental) The database cluster to call to interact with this data source.

Stability

experimental

Return type

IDatabaseCluster

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]

secret_store

(experimental) The secret containing the credentials for the database.

Stability

experimental

Return type

ISecret

service_role

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

Default
  • Create a new role

Stability

experimental

Return type

Optional[IRole]