# 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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-datasource.html) property type.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `awsRegion`: string (required) — The AWS Region.

- `deltaSyncConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DeltaSyncConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.CfnDataSource.DeltaSyncConfigProperty.html) — The `DeltaSyncConfig` for a versioned datasource.

- `tableName`: string (required) — The table name.

- `useCallerCredentials`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Set to `TRUE` to use AWS Identity and Access Management with this data source.

- `versioned`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Set to TRUE to use Conflict Detection and Resolution with this data source.
