Interface IDynamoDbDataSourceProps
(experimental) Properties for an AppSync DynamoDB datasource.
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public interface IDynamoDbDataSourceProps : IBackedDataSourceProps, IBaseDataSourceProps
Syntax (vb)
Public Interface IDynamoDbDataSourceProps
Inherits IBackedDataSourceProps, IBaseDataSourceProps
Remarks
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
using Amazon.CDK.AWS.DynamoDB;
using Amazon.CDK.AWS.IAM;
GraphqlApi graphqlApi;
Role role;
Table table;
var dynamoDbDataSourceProps = new DynamoDbDataSourceProps {
Api = graphqlApi,
Table = table,
// the properties below are optional
Description = "description",
Name = "name",
ReadOnlyAccess = false,
ServiceRole = role,
UseCallerCredentials = false
};
Synopsis
Properties
ReadOnlyAccess | (experimental) Specify whether this DS is read only or has read and write permissions to the DynamoDB table. |
Table | (experimental) The DynamoDB table backing this data source. |
UseCallerCredentials | (experimental) use credentials of caller to access DynamoDB. |
Properties
ReadOnlyAccess
(experimental) Specify whether this DS is read only or has read and write permissions to the DynamoDB table.
virtual Nullable<bool> ReadOnlyAccess { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Stability: Experimental
Table
(experimental) The DynamoDB table backing this data source.
ITable Table { get; }
Property Value
Remarks
Stability: Experimental
UseCallerCredentials
(experimental) use credentials of caller to access DynamoDB.
virtual Nullable<bool> UseCallerCredentials { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Stability: Experimental