interface DynamoDBConfigProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.CfnDataSource.DynamoDBConfigProperty |
Java | software.amazon.awscdk.services.appsync.CfnDataSource.DynamoDBConfigProperty |
Python | aws_cdk.aws_appsync.CfnDataSource.DynamoDBConfigProperty |
TypeScript | @aws-cdk/aws-appsync » CfnDataSource » DynamoDBConfigProperty |
The DynamoDBConfig
property type specifies the AwsRegion
and TableName
for an Amazon DynamoDB table in your account for an AWS AppSync data source.
DynamoDBConfig
is a property of the AWS::AppSync::DataSource property type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appsync from '@aws-cdk/aws-appsync';
const dynamoDBConfigProperty: appsync.CfnDataSource.DynamoDBConfigProperty = {
awsRegion: 'awsRegion',
tableName: 'tableName',
// the properties below are optional
deltaSyncConfig: {
baseTableTtl: 'baseTableTtl',
deltaSyncTableName: 'deltaSyncTableName',
deltaSyncTableTtl: 'deltaSyncTableTtl',
},
useCallerCredentials: false,
versioned: false,
};
Properties
Name | Type | Description |
---|---|---|
aws | string | The AWS Region. |
table | string | The table name. |
delta | IResolvable | Delta | The DeltaSyncConfig for a versioned datasource. |
use | boolean | IResolvable | Set to TRUE to use AWS Identity and Access Management with this data source. |
versioned? | boolean | IResolvable | Set to TRUE to use Conflict Detection and Resolution with this data source. |
awsRegion
Type:
string
The AWS Region.
tableName
Type:
string
The table name.
deltaSyncConfig?
Type:
IResolvable
|
Delta
(optional)
The DeltaSyncConfig
for a versioned datasource.
useCallerCredentials?
Type:
boolean |
IResolvable
(optional)
Set to TRUE
to use AWS Identity and Access Management with this data source.
versioned?
Type:
boolean |
IResolvable
(optional)
Set to TRUE to use Conflict Detection and Resolution with this data source.