aws-cdk-lib.aws_appsync.CfnDataSource.DynamoDBConfigProperty

interface DynamoDBConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.AppSync.CfnDataSource.DynamoDBConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappsync#CfnDataSource_DynamoDBConfigProperty
Javasoftware.amazon.awscdk.services.appsync.CfnDataSource.DynamoDBConfigProperty
Pythonaws_cdk.aws_appsync.CfnDataSource.DynamoDBConfigProperty
TypeScript aws-cdk-lib » 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 { aws_appsync as appsync } from 'aws-cdk-lib';
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

NameTypeDescription
awsRegionstringThe AWS Region.
tableNamestringThe table name.
deltaSyncConfig?IResolvable | DeltaSyncConfigPropertyThe DeltaSyncConfig for a versioned datasource.
useCallerCredentials?boolean | IResolvableSet to TRUE to use AWS Identity and Access Management with this data source.
versioned?boolean | IResolvableSet 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 | DeltaSyncConfigProperty (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.