Show / Hide Table of Contents

Interface IDynamoDbDataSourceProps

Properties for an AppSync DynamoDB datasource.

Inherited Members
IBackedDataSourceProps.ServiceRole
IBaseDataSourceProps.Api
IBaseDataSourceProps.Description
IBaseDataSourceProps.Name
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IDynamoDbDataSourceProps : IBackedDataSourceProps, IBaseDataSourceProps
Syntax (vb)
Public Interface IDynamoDbDataSourceProps Inherits IBackedDataSourceProps, IBaseDataSourceProps
Remarks

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;
            using Amazon.CDK.Interfaces.AppSync;

            IGraphQLApiRef graphQLApiRef;
            Role role;
            Table table;

            var dynamoDbDataSourceProps = new DynamoDbDataSourceProps {
                Api = graphQLApiRef,
                Table = table,

                // the properties below are optional
                Description = "description",
                Name = "name",
                ReadOnlyAccess = false,
                ServiceRole = role,
                UseCallerCredentials = false
            };

Synopsis

Properties

ReadOnlyAccess

Specify whether this DS is read only or has read and write permissions to the DynamoDB table.

Table

The DynamoDB table backing this data source.

UseCallerCredentials

use credentials of caller to access DynamoDB.

Properties

ReadOnlyAccess

Specify whether this DS is read only or has read and write permissions to the DynamoDB table.

bool? ReadOnlyAccess { get; }
Property Value

bool?

Remarks

Default: false

Table

The DynamoDB table backing this data source.

ITable Table { get; }
Property Value

ITable

Remarks

ExampleMetadata: fixture=_generated

UseCallerCredentials

use credentials of caller to access DynamoDB.

bool? UseCallerCredentials { get; }
Property Value

bool?

Remarks

Default: false

Back to top Generated by DocFX