Class CfnDataSource.DynamoDBConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnDataSource.DynamoDBConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.DynamoDBConfigProperty>
- Enclosing interface:
CfnDataSource.DynamoDBConfigProperty
@Stability(Stable)
public static final class CfnDataSource.DynamoDBConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.DynamoDBConfigProperty>
A builder for
CfnDataSource.DynamoDBConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDataSource.DynamoDBConfigProperty.getAwsRegion()
build()
Builds the configured instance.deltaSyncConfig
(IResolvable deltaSyncConfig) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getDeltaSyncConfig()
deltaSyncConfig
(CfnDataSource.DeltaSyncConfigProperty deltaSyncConfig) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getDeltaSyncConfig()
Sets the value ofCfnDataSource.DynamoDBConfigProperty.getTableName()
useCallerCredentials
(Boolean useCallerCredentials) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getUseCallerCredentials()
useCallerCredentials
(IResolvable useCallerCredentials) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getUseCallerCredentials()
Sets the value ofCfnDataSource.DynamoDBConfigProperty.getVersioned()
versioned
(IResolvable versioned) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getVersioned()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsRegion
Sets the value ofCfnDataSource.DynamoDBConfigProperty.getAwsRegion()
- Parameters:
awsRegion
- The AWS Region. This parameter is required.- Returns:
this
-
tableName
Sets the value ofCfnDataSource.DynamoDBConfigProperty.getTableName()
- Parameters:
tableName
- The table name. This parameter is required.- Returns:
this
-
deltaSyncConfig
@Stability(Stable) public CfnDataSource.DynamoDBConfigProperty.Builder deltaSyncConfig(IResolvable deltaSyncConfig) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getDeltaSyncConfig()
- Parameters:
deltaSyncConfig
- TheDeltaSyncConfig
for a versioned datasource.- Returns:
this
-
deltaSyncConfig
@Stability(Stable) public CfnDataSource.DynamoDBConfigProperty.Builder deltaSyncConfig(CfnDataSource.DeltaSyncConfigProperty deltaSyncConfig) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getDeltaSyncConfig()
- Parameters:
deltaSyncConfig
- TheDeltaSyncConfig
for a versioned datasource.- Returns:
this
-
useCallerCredentials
@Stability(Stable) public CfnDataSource.DynamoDBConfigProperty.Builder useCallerCredentials(Boolean useCallerCredentials) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getUseCallerCredentials()
- Parameters:
useCallerCredentials
- Set toTRUE
to use AWS Identity and Access Management with this data source.- Returns:
this
-
useCallerCredentials
@Stability(Stable) public CfnDataSource.DynamoDBConfigProperty.Builder useCallerCredentials(IResolvable useCallerCredentials) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getUseCallerCredentials()
- Parameters:
useCallerCredentials
- Set toTRUE
to use AWS Identity and Access Management with this data source.- Returns:
this
-
versioned
Sets the value ofCfnDataSource.DynamoDBConfigProperty.getVersioned()
- Parameters:
versioned
- Set to TRUE to use Conflict Detection and Resolution with this data source.- Returns:
this
-
versioned
@Stability(Stable) public CfnDataSource.DynamoDBConfigProperty.Builder versioned(IResolvable versioned) Sets the value ofCfnDataSource.DynamoDBConfigProperty.getVersioned()
- Parameters:
versioned
- Set to TRUE to use Conflict Detection and Resolution with this data source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.DynamoDBConfigProperty>
- Returns:
- a new instance of
CfnDataSource.DynamoDBConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-