Interface DynamoDbDataSourceProps
- All Superinterfaces:
BackedDataSourceProps,BaseDataSourceProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DynamoDbDataSourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:58.971Z")
@Stability(Stable)
public interface DynamoDbDataSourceProps
extends software.amazon.jsii.JsiiSerializable, BackedDataSourceProps
Properties for an AppSync DynamoDB datasource.
Example:
// 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.*;
import software.amazon.awscdk.services.dynamodb.*;
import software.amazon.awscdk.services.iam.*;
GraphqlApi graphqlApi;
Role role;
Table table;
DynamoDbDataSourceProps dynamoDbDataSourceProps = DynamoDbDataSourceProps.builder()
.api(graphqlApi)
.table(table)
// the properties below are optional
.description("description")
.name("name")
.readOnlyAccess(false)
.serviceRole(role)
.useCallerCredentials(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDynamoDbDataSourcePropsstatic final classAn implementation forDynamoDbDataSourceProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.appsync.BackedDataSourceProps
getServiceRoleMethods inherited from interface software.amazon.awscdk.services.appsync.BaseDataSourceProps
getApi, getDescription, getNameMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTable
The DynamoDB table backing this data source. -
getReadOnlyAccess
Specify whether this DS is read only or has read and write permissions to the DynamoDB table.Default: false
-
getUseCallerCredentials
use credentials of caller to access DynamoDB.Default: false
-
builder
- Returns:
- a
DynamoDbDataSourceProps.BuilderofDynamoDbDataSourceProps
-