Interface DynamoDbDataSourceProps

All Superinterfaces:
BackedDataSourceProps, BaseDataSourceProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DynamoDbDataSourceProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.490Z") @Stability(Experimental) public interface DynamoDbDataSourceProps extends software.amazon.jsii.JsiiSerializable, BackedDataSourceProps
(experimental) 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();
 
  • Method Details

    • getTable

      @Stability(Experimental) @NotNull ITable getTable()
      (experimental) The DynamoDB table backing this data source.
    • getReadOnlyAccess

      @Stability(Experimental) @Nullable default Boolean getReadOnlyAccess()
      (experimental) Specify whether this DS is read only or has read and write permissions to the DynamoDB table.

      Default: false

    • getUseCallerCredentials

      @Stability(Experimental) @Nullable default Boolean getUseCallerCredentials()
      (experimental) use credentials of caller to access DynamoDB.

      Default: false

    • builder

      @Stability(Experimental) static DynamoDbDataSourceProps.Builder builder()
      Returns:
      a DynamoDbDataSourceProps.Builder of DynamoDbDataSourceProps