DynamoDBConfigProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appsync as appsync
dynamo_db_config_property = appsync.CfnDataSource.DynamoDBConfigProperty(
aws_region="awsRegion",
table_name="tableName",
# the properties below are optional
delta_sync_config=appsync.CfnDataSource.DeltaSyncConfigProperty(
base_table_ttl="baseTableTtl",
delta_sync_table_name="deltaSyncTableName",
delta_sync_table_ttl="deltaSyncTableTtl"
),
use_caller_credentials=False,
versioned=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;
DynamoDBConfigProperty dynamoDBConfigProperty = DynamoDBConfigProperty.builder()
.awsRegion("awsRegion")
.tableName("tableName")
// the properties below are optional
.deltaSyncConfig(DeltaSyncConfigProperty.builder()
.baseTableTtl("baseTableTtl")
.deltaSyncTableName("deltaSyncTableName")
.deltaSyncTableTtl("deltaSyncTableTtl")
.build())
.useCallerCredentials(false)
.versioned(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
var dynamoDBConfigProperty = new DynamoDBConfigProperty {
AwsRegion = "awsRegion",
TableName = "tableName",
// the properties below are optional
DeltaSyncConfig = new DeltaSyncConfigProperty {
BaseTableTtl = "baseTableTtl",
DeltaSyncTableName = "deltaSyncTableName",
DeltaSyncTableTtl = "deltaSyncTableTtl"
},
UseCallerCredentials = false,
Versioned = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
dynamoDBConfigProperty := &DynamoDBConfigProperty{
AwsRegion: jsii.String("awsRegion"),
TableName: jsii.String("tableName"),
// the properties below are optional
DeltaSyncConfig: &DeltaSyncConfigProperty{
BaseTableTtl: jsii.String("baseTableTtl"),
DeltaSyncTableName: jsii.String("deltaSyncTableName"),
DeltaSyncTableTtl: jsii.String("deltaSyncTableTtl"),
},
UseCallerCredentials: jsii.Boolean(false),
Versioned: jsii.Boolean(false),
}
Properties
The AWS Region.
deltaSyncConfigoptionalIResolvable | CfnDataSource.delta_sync_configoptionaltyping.Union[IResolvable, DeltaSyncConfigProperty]deltaSyncConfigoptionalIResolvableDeltaSyncConfigoptionalIResolvableDeltaSyncConfigoptionalinterface{} #The `DeltaSyncConfig` for a versioned datasource.
The table name.
useCallerCredentialsoptionalboolean | IResolvableuse_caller_credentialsoptionaltyping.Union[bool, IResolvable]useCallerCredentialsoptionalBooleanUseCallerCredentialsoptionalboolUseCallerCredentialsoptionalinterface{} #Set to `TRUE` to use AWS Identity and Access Management with this data source.
versionedoptionalboolean | IResolvableversionedoptionaltyping.Union[bool, IResolvable]versionedoptionalBooleanVersionedoptionalboolVersionedoptionalinterface{} #Set to TRUE to use Conflict Detection and Resolution with this data source.