@Stability(value=Experimental) public static final class DynamoDbDataSource.Builder extends Object implements software.amazon.jsii.Builder<DynamoDbDataSource>
DynamoDbDataSource.| Modifier and Type | Method and Description |
|---|---|
DynamoDbDataSource.Builder |
api(IGraphqlApi api)
(experimental) The API to attach this data source to.
|
DynamoDbDataSource |
build() |
static DynamoDbDataSource.Builder |
create(software.constructs.Construct scope,
String id) |
DynamoDbDataSource.Builder |
description(String description)
(experimental) the description of the data source.
|
DynamoDbDataSource.Builder |
name(String name)
(experimental) The name of the data source.
|
DynamoDbDataSource.Builder |
readOnlyAccess(Boolean readOnlyAccess)
(experimental) Specify whether this DS is read only or has read and write permissions to the DynamoDB table.
|
DynamoDbDataSource.Builder |
serviceRole(IRole serviceRole)
(experimental) The IAM service role to be assumed by AppSync to interact with the data source.
|
DynamoDbDataSource.Builder |
table(ITable table)
(experimental) The DynamoDB table backing this data source.
|
DynamoDbDataSource.Builder |
useCallerCredentials(Boolean useCallerCredentials)
(experimental) use credentials of caller to access DynamoDB.
|
@Stability(value=Experimental) public static DynamoDbDataSource.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.DynamoDbDataSource.Builder.@Stability(value=Experimental) public DynamoDbDataSource.Builder api(IGraphqlApi api)
api - The API to attach this data source to. This parameter is required.this@Stability(value=Experimental) public DynamoDbDataSource.Builder description(String description)
Default: - None
description - the description of the data source. This parameter is required.this@Stability(value=Experimental) public DynamoDbDataSource.Builder name(String name)
Default: - id of data source
name - The name of the data source. This parameter is required.this@Stability(value=Experimental) public DynamoDbDataSource.Builder serviceRole(IRole serviceRole)
Default: - Create a new role
serviceRole - The IAM service role to be assumed by AppSync to interact with the data source. This parameter is required.this@Stability(value=Experimental) public DynamoDbDataSource.Builder table(ITable table)
table - The DynamoDB table backing this data source. This parameter is required.this@Stability(value=Experimental) public DynamoDbDataSource.Builder readOnlyAccess(Boolean readOnlyAccess)
Default: false
readOnlyAccess - Specify whether this DS is read only or has read and write permissions to the DynamoDB table. This parameter is required.this@Stability(value=Experimental) public DynamoDbDataSource.Builder useCallerCredentials(Boolean useCallerCredentials)
Default: false
useCallerCredentials - use credentials of caller to access DynamoDB. This parameter is required.this@Stability(value=Experimental) public DynamoDbDataSource build()
build in interface software.amazon.jsii.Builder<DynamoDbDataSource>Copyright © 2022. All rights reserved.