Class DynamoDbDataSource.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.DynamoDbDataSource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DynamoDbDataSource>
- Enclosing class:
DynamoDbDataSource
@Stability(Stable)
public static final class DynamoDbDataSource.Builder
extends Object
implements software.amazon.jsii.Builder<DynamoDbDataSource>
A fluent builder for
DynamoDbDataSource
.-
Method Summary
Modifier and TypeMethodDescriptionapi
(IGraphqlApi api) The API to attach this data source to.build()
static DynamoDbDataSource.Builder
description
(String description) the description of the data source.The name of the data source.readOnlyAccess
(Boolean readOnlyAccess) Specify whether this DS is read only or has read and write permissions to the DynamoDB table.serviceRole
(IRole serviceRole) The IAM service role to be assumed by AppSync to interact with the data source.The DynamoDB table backing this data source.useCallerCredentials
(Boolean useCallerCredentials) use credentials of caller to access DynamoDB.
-
Method Details
-
create
@Stability(Stable) public static DynamoDbDataSource.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
DynamoDbDataSource.Builder
.
-
api
The API to attach this data source to.- Parameters:
api
- The API to attach this data source to. This parameter is required.- Returns:
this
-
description
the description of the data source.Default: - None
- Parameters:
description
- the description of the data source. This parameter is required.- Returns:
this
-
name
The name of the data source.Default: - id of data source
- Parameters:
name
- The name of the data source. This parameter is required.- Returns:
this
-
serviceRole
The IAM service role to be assumed by AppSync to interact with the data source.Default: - Create a new role
- Parameters:
serviceRole
- The IAM service role to be assumed by AppSync to interact with the data source. This parameter is required.- Returns:
this
-
table
The DynamoDB table backing this data source.- Parameters:
table
- The DynamoDB table backing this data source. This parameter is required.- Returns:
this
-
readOnlyAccess
Specify whether this DS is read only or has read and write permissions to the DynamoDB table.Default: false
- Parameters:
readOnlyAccess
- Specify whether this DS is read only or has read and write permissions to the DynamoDB table. This parameter is required.- Returns:
this
-
useCallerCredentials
@Stability(Stable) public DynamoDbDataSource.Builder useCallerCredentials(Boolean useCallerCredentials) use credentials of caller to access DynamoDB.Default: false
- Parameters:
useCallerCredentials
- use credentials of caller to access DynamoDB. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DynamoDbDataSource>
- Returns:
- a newly built instance of
DynamoDbDataSource
.
-