class AppSyncBaseDataSource
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppSync.AppSyncBaseDataSource |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#AppSyncBaseDataSource |
Java | software.amazon.awscdk.services.appsync.AppSyncBaseDataSource |
Python | aws_cdk.aws_appsync.AppSyncBaseDataSource |
TypeScript (source) | aws-cdk-lib » aws_appsync » AppSyncBaseDataSource |
Implements
IConstruct, IDependable
Extends
Construct
Implemented by
App, App, App, App, App, App
Abstract AppSync datasource implementation.
Do not use directly but use subclasses for concrete datasources
Initializer
new AppSyncBaseDataSource(scope: Construct, id: string, props: AppSyncBackedDataSourceProps, extended: AppSyncExtendedDataSourceProps)
Parameters
- scope
Construct - id
string - props
AppSync Backed Data Source Props - extended
AppSync Extended Data Source Props
Properties
| Name | Type | Description |
|---|---|---|
| api | IApi | The API this data source is attached to Set the API this data source is attached to. |
| name | string | The name of the data source. |
| node | Node | The tree node. |
| resource | Cfn | The underlying CFN data source resource. |
| service | IRole |
api
Type:
IApi
The API this data source is attached to Set the API this data source is attached to.
name
Type:
string
The name of the data source.
node
Type:
Node
The tree node.
resource
Type:
Cfn
The underlying CFN data source resource.
serviceRole?
Type:
IRole
(optional)
Methods
| Name | Description |
|---|---|
| to | Returns a string representation of this construct. |
| with(...mixins) | Applies one or more mixins to this construct. |
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixin— The mixins to apply.
Returns
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.

.NET
Go
Java
Python
TypeScript (