@aws-cdk/aws-dynamodb
Advanced tools
Comparing version 0.28.0 to 0.29.0
import iam = require('@aws-cdk/aws-iam'); | ||
import { Construct } from '@aws-cdk/cdk'; | ||
import { Construct, Resource } from '@aws-cdk/cdk'; | ||
import { EnableScalingProps, IScalableTableAttribute } from './scalable-attribute-api'; | ||
@@ -14,3 +14,3 @@ export interface Attribute { | ||
} | ||
export interface TableProps { | ||
export interface TableOptions { | ||
/** | ||
@@ -50,7 +50,2 @@ * Partition key attribute definition. | ||
/** | ||
* Enforces a particular physical table name. | ||
* @default <generated> | ||
*/ | ||
readonly tableName?: string; | ||
/** | ||
* Whether point-in-time recovery is enabled. | ||
@@ -66,2 +61,7 @@ * @default undefined, point-in-time recovery is disabled | ||
/** | ||
* The name of TTL attribute. | ||
* @default undefined, TTL is disabled | ||
*/ | ||
readonly ttlAttributeName?: string; | ||
/** | ||
* When an item in the table is modified, StreamViewType determines what information | ||
@@ -72,7 +72,9 @@ * is written to the stream for this table. Valid values for StreamViewType are: | ||
readonly streamSpecification?: StreamViewType; | ||
} | ||
export interface TableProps extends TableOptions { | ||
/** | ||
* The name of TTL attribute. | ||
* @default undefined, TTL is disabled | ||
* Enforces a particular physical table name. | ||
* @default <generated> | ||
*/ | ||
readonly ttlAttributeName?: string; | ||
readonly tableName?: string; | ||
} | ||
@@ -131,3 +133,3 @@ export interface SecondaryIndexProps { | ||
*/ | ||
export declare class Table extends Construct { | ||
export declare class Table extends Resource { | ||
/** | ||
@@ -208,3 +210,3 @@ * Permits an IAM Principal to list all DynamoDB Streams. | ||
* BatchGetItem, GetRecords, GetShardIterator, Query, GetItem, Scan. | ||
* @param principal The principal to grant access to | ||
* @param grantee The principal to grant access to | ||
*/ | ||
@@ -222,3 +224,3 @@ grantReadData(grantee: iam.IGrantable): iam.Grant; | ||
* BatchWriteItem, PutItem, UpdateItem, DeleteItem. | ||
* @param principal The principal to grant access to | ||
* @param grantee The principal to grant access to | ||
*/ | ||
@@ -225,0 +227,0 @@ grantWriteData(grantee: iam.IGrantable): iam.Grant; |
{ | ||
"name": "@aws-cdk/aws-dynamodb", | ||
"version": "0.28.0", | ||
"version": "0.29.0", | ||
"description": "CDK Constructs for AWS DynamoDB", | ||
@@ -32,3 +32,4 @@ "main": "lib/index.js", | ||
"type": "git", | ||
"url": "https://github.com/awslabs/aws-cdk.git" | ||
"url": "https://github.com/awslabs/aws-cdk.git", | ||
"directory": "packages/@aws-cdk/aws-dynamodb" | ||
}, | ||
@@ -62,18 +63,18 @@ "scripts": { | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.28.0", | ||
"cdk-build-tools": "^0.28.0", | ||
"cdk-integ-tools": "^0.28.0", | ||
"cfn2ts": "^0.28.0", | ||
"pkglint": "^0.28.0" | ||
"@aws-cdk/assert": "^0.29.0", | ||
"cdk-build-tools": "^0.29.0", | ||
"cdk-integ-tools": "^0.29.0", | ||
"cfn2ts": "^0.29.0", | ||
"pkglint": "^0.29.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-applicationautoscaling": "^0.28.0", | ||
"@aws-cdk/aws-iam": "^0.28.0", | ||
"@aws-cdk/cdk": "^0.28.0" | ||
"@aws-cdk/aws-applicationautoscaling": "^0.29.0", | ||
"@aws-cdk/aws-iam": "^0.29.0", | ||
"@aws-cdk/cdk": "^0.29.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-applicationautoscaling": "^0.28.0", | ||
"@aws-cdk/aws-iam": "^0.28.0", | ||
"@aws-cdk/cdk": "^0.28.0" | ||
"@aws-cdk/aws-applicationautoscaling": "^0.29.0", | ||
"@aws-cdk/aws-iam": "^0.29.0", | ||
"@aws-cdk/cdk": "^0.29.0" | ||
}, | ||
@@ -83,2 +84,2 @@ "engines": { | ||
} | ||
} | ||
} |
@@ -50,1 +50,4 @@ ## AWS DynamoDB Construct Library | ||
https://aws.amazon.com/blogs/database/how-to-use-aws-cloudformation-to-configure-auto-scaling-for-amazon-dynamodb-tables-and-indexes/ | ||
### Amazon DynamoDB Global Tables | ||
Please see the `@aws-cdk/aws-dynamodb-global` package [here](../aws-dynamodb-global/). |
@@ -30,3 +30,2 @@ import { Test } from 'nodeunit'; | ||
'when adding multiple global secondary indexes'(test: Test): void; | ||
'error when adding more than 5 global secondary indexes'(test: Test): void; | ||
'when adding a global secondary index without specifying read and write capacity'(test: Test): void; | ||
@@ -33,0 +32,0 @@ 'when adding a local secondary index with hash + range key'(test: Test): void; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52
508357
26
3920
+ Added@aws-cdk/aws-applicationautoscaling@0.29.0(transitive)
+ Added@aws-cdk/aws-autoscaling-common@0.29.0(transitive)
+ Added@aws-cdk/aws-cloudwatch@0.29.0(transitive)
+ Added@aws-cdk/aws-iam@0.29.0(transitive)
+ Added@aws-cdk/cdk@0.29.0(transitive)
+ Added@aws-cdk/cx-api@0.29.0(transitive)
+ Added@aws-cdk/region-info@0.29.0(transitive)
- Removed@aws-cdk/aws-applicationautoscaling@0.28.0(transitive)
- Removed@aws-cdk/aws-autoscaling-common@0.28.0(transitive)
- Removed@aws-cdk/aws-cloudwatch@0.28.0(transitive)
- Removed@aws-cdk/aws-iam@0.28.0(transitive)
- Removed@aws-cdk/cdk@0.28.0(transitive)
- Removed@aws-cdk/cx-api@0.28.0(transitive)
- Removed@aws-cdk/region-info@0.28.0(transitive)
Updated@aws-cdk/aws-iam@^0.29.0
Updated@aws-cdk/cdk@^0.29.0