interface TableAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.DynamoDB.TableAttributes |
Java | software.amazon.awscdk.services.dynamodb.TableAttributes |
Python | aws_cdk.aws_dynamodb.TableAttributes |
TypeScript (source) | @aws-cdk/aws-dynamodb » TableAttributes |
Reference to a dynamodb table.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as dynamodb from '@aws-cdk/aws-dynamodb';
import * as kms from '@aws-cdk/aws-kms';
declare const key: kms.Key;
const tableAttributes: dynamodb.TableAttributes = {
encryptionKey: key,
globalIndexes: ['globalIndexes'],
localIndexes: ['localIndexes'],
tableArn: 'tableArn',
tableName: 'tableName',
tableStreamArn: 'tableStreamArn',
};
Properties
Name | Type | Description |
---|---|---|
encryption | IKey | KMS encryption key, if this table uses a customer-managed encryption key. |
global | string[] | The name of the global indexes set for this Table. |
local | string[] | The name of the local indexes set for this Table. |
table | string | The ARN of the dynamodb table. |
table | string | The table name of the dynamodb table. |
table | string | The ARN of the table's stream. |
encryptionKey?
Type:
IKey
(optional, default: no key)
KMS encryption key, if this table uses a customer-managed encryption key.
globalIndexes?
Type:
string[]
(optional, default: no global indexes)
The name of the global indexes set for this Table.
Note that you need to set either this property, or {@link localIndexes}, if you want methods like grantReadData() to grant permissions for indexes as well as the table itself.
localIndexes?
Type:
string[]
(optional, default: no local indexes)
The name of the local indexes set for this Table.
Note that you need to set either this property, or {@link globalIndexes}, if you want methods like grantReadData() to grant permissions for indexes as well as the table itself.
tableArn?
Type:
string
(optional, default: no table arn)
The ARN of the dynamodb table.
One of this, or {@link tableName}, is required.
tableName?
Type:
string
(optional, default: no table name)
The table name of the dynamodb table.
One of this, or {@link tableArn}, is required.
tableStreamArn?
Type:
string
(optional, default: no table stream)
The ARN of the table's stream.