@aws-cdk/aws-dynamodb
Advanced tools
Comparing version 0.21.0 to 0.22.0
@@ -20,3 +20,3 @@ import cdk = require('@aws-cdk/cdk'); | ||
*/ | ||
billingMode?: string | cdk.Token; | ||
billingMode?: string; | ||
/** | ||
@@ -56,3 +56,3 @@ * ``AWS::DynamoDB::Table.GlobalSecondaryIndexes`` | ||
*/ | ||
tableName?: string | cdk.Token; | ||
tableName?: string; | ||
/** | ||
@@ -89,7 +89,7 @@ * ``AWS::DynamoDB::Table.Tags`` | ||
* | ||
* @param parent the ``cdk.Construct`` this ``CfnTable`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``CfnTable`` | ||
* @param scope scope in which this resource is defined | ||
* @param id scoped id of the resource | ||
* @param props resource properties | ||
*/ | ||
constructor(parent: cdk.Construct, name: string, properties: CfnTableProps); | ||
constructor(scope: cdk.Construct, id: string, props: CfnTableProps); | ||
readonly propertyOverrides: CfnTableProps; | ||
@@ -109,3 +109,3 @@ protected renderProperties(properties: any): { | ||
*/ | ||
attributeName: string | cdk.Token; | ||
attributeName: string; | ||
/** | ||
@@ -115,3 +115,3 @@ * ``CfnTable.AttributeDefinitionProperty.AttributeType`` | ||
*/ | ||
attributeType: string | cdk.Token; | ||
attributeType: string; | ||
} | ||
@@ -128,3 +128,3 @@ } | ||
*/ | ||
indexName: string | cdk.Token; | ||
indexName: string; | ||
/** | ||
@@ -156,3 +156,3 @@ * ``CfnTable.GlobalSecondaryIndexProperty.KeySchema`` | ||
*/ | ||
attributeName: string | cdk.Token; | ||
attributeName: string; | ||
/** | ||
@@ -162,3 +162,3 @@ * ``CfnTable.KeySchemaProperty.KeyType`` | ||
*/ | ||
keyType: string | cdk.Token; | ||
keyType: string; | ||
} | ||
@@ -175,3 +175,3 @@ } | ||
*/ | ||
indexName: string | cdk.Token; | ||
indexName: string; | ||
/** | ||
@@ -215,3 +215,3 @@ * ``CfnTable.LocalSecondaryIndexProperty.KeySchema`` | ||
*/ | ||
projectionType?: string | cdk.Token; | ||
projectionType?: string; | ||
} | ||
@@ -257,3 +257,3 @@ } | ||
*/ | ||
streamViewType: string | cdk.Token; | ||
streamViewType: string; | ||
} | ||
@@ -270,3 +270,3 @@ } | ||
*/ | ||
attributeName: string | cdk.Token; | ||
attributeName: string; | ||
/** | ||
@@ -279,269 +279,1 @@ * ``CfnTable.TimeToLiveSpecificationProperty.Enabled`` | ||
} | ||
export declare namespace cloudformation { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html | ||
*/ | ||
interface TableResourceProps { | ||
/** | ||
* ``AWS::DynamoDB::Table.KeySchema`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-keyschema | ||
*/ | ||
keySchema: Array<TableResource.KeySchemaProperty | cdk.Token> | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.AttributeDefinitions`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-attributedef | ||
*/ | ||
attributeDefinitions?: Array<TableResource.AttributeDefinitionProperty | cdk.Token> | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.BillingMode`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-billingmode | ||
*/ | ||
billingMode?: string | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.GlobalSecondaryIndexes`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-gsi | ||
*/ | ||
globalSecondaryIndexes?: Array<TableResource.GlobalSecondaryIndexProperty | cdk.Token> | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.LocalSecondaryIndexes`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-lsi | ||
*/ | ||
localSecondaryIndexes?: Array<TableResource.LocalSecondaryIndexProperty | cdk.Token> | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.PointInTimeRecoverySpecification`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-pointintimerecoveryspecification | ||
*/ | ||
pointInTimeRecoverySpecification?: TableResource.PointInTimeRecoverySpecificationProperty | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.ProvisionedThroughput`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-provisionedthroughput | ||
*/ | ||
provisionedThroughput?: TableResource.ProvisionedThroughputProperty | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.SSESpecification`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ssespecification | ||
*/ | ||
sseSpecification?: TableResource.SSESpecificationProperty | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.StreamSpecification`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-streamspecification | ||
*/ | ||
streamSpecification?: TableResource.StreamSpecificationProperty | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.TableName`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tablename | ||
*/ | ||
tableName?: string | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.Tags`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tags | ||
*/ | ||
tags?: Array<cdk.Tag | cdk.Token> | cdk.Token; | ||
/** | ||
* ``AWS::DynamoDB::Table.TimeToLiveSpecification`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-timetolivespecification | ||
*/ | ||
timeToLiveSpecification?: TableResource.TimeToLiveSpecificationProperty | cdk.Token; | ||
} | ||
/** | ||
* @deprecated "cloudformation.TableResource" will be deprecated in a future release in favor of "CfnTable" (see https://github.com/awslabs/aws-cdk/issues/878) | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html | ||
*/ | ||
class TableResource extends cdk.Resource { | ||
/** | ||
* The CloudFormation resource type name for this resource class. | ||
*/ | ||
static readonly resourceTypeName = "AWS::DynamoDB::Table"; | ||
/** | ||
* @cloudformation_attribute Arn | ||
*/ | ||
readonly tableArn: string; | ||
/** | ||
* @cloudformation_attribute StreamArn | ||
*/ | ||
readonly tableStreamArn: string; | ||
readonly tableName: string; | ||
/** | ||
* Creates a new ``AWS::DynamoDB::Table``. | ||
* | ||
* @param parent the ``cdk.Construct`` this ``TableResource`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``TableResource`` | ||
*/ | ||
constructor(parent: cdk.Construct, name: string, properties: TableResourceProps); | ||
readonly propertyOverrides: TableResourceProps; | ||
protected renderProperties(properties: any): { | ||
[key: string]: any; | ||
}; | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html | ||
*/ | ||
interface AttributeDefinitionProperty { | ||
/** | ||
* ``TableResource.AttributeDefinitionProperty.AttributeName`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html#cfn-dynamodb-attributedef-attributename | ||
*/ | ||
attributeName: string | cdk.Token; | ||
/** | ||
* ``TableResource.AttributeDefinitionProperty.AttributeType`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html#cfn-dynamodb-attributedef-attributename-attributetype | ||
*/ | ||
attributeType: string | cdk.Token; | ||
} | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html | ||
*/ | ||
interface GlobalSecondaryIndexProperty { | ||
/** | ||
* ``TableResource.GlobalSecondaryIndexProperty.IndexName`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html#cfn-dynamodb-gsi-indexname | ||
*/ | ||
indexName: string | cdk.Token; | ||
/** | ||
* ``TableResource.GlobalSecondaryIndexProperty.KeySchema`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html#cfn-dynamodb-gsi-keyschema | ||
*/ | ||
keySchema: Array<TableResource.KeySchemaProperty | cdk.Token> | cdk.Token; | ||
/** | ||
* ``TableResource.GlobalSecondaryIndexProperty.Projection`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html#cfn-dynamodb-gsi-projection | ||
*/ | ||
projection: TableResource.ProjectionProperty | cdk.Token; | ||
/** | ||
* ``TableResource.GlobalSecondaryIndexProperty.ProvisionedThroughput`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-gsi.html#cfn-dynamodb-gsi-provisionedthroughput | ||
*/ | ||
provisionedThroughput?: TableResource.ProvisionedThroughputProperty | cdk.Token; | ||
} | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-keyschema.html | ||
*/ | ||
interface KeySchemaProperty { | ||
/** | ||
* ``TableResource.KeySchemaProperty.AttributeName`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-keyschema.html#aws-properties-dynamodb-keyschema-attributename | ||
*/ | ||
attributeName: string | cdk.Token; | ||
/** | ||
* ``TableResource.KeySchemaProperty.KeyType`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-keyschema.html#aws-properties-dynamodb-keyschema-keytype | ||
*/ | ||
keyType: string | cdk.Token; | ||
} | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html | ||
*/ | ||
interface LocalSecondaryIndexProperty { | ||
/** | ||
* ``TableResource.LocalSecondaryIndexProperty.IndexName`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html#cfn-dynamodb-lsi-indexname | ||
*/ | ||
indexName: string | cdk.Token; | ||
/** | ||
* ``TableResource.LocalSecondaryIndexProperty.KeySchema`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html#cfn-dynamodb-lsi-keyschema | ||
*/ | ||
keySchema: Array<TableResource.KeySchemaProperty | cdk.Token> | cdk.Token; | ||
/** | ||
* ``TableResource.LocalSecondaryIndexProperty.Projection`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-lsi.html#cfn-dynamodb-lsi-projection | ||
*/ | ||
projection: TableResource.ProjectionProperty | cdk.Token; | ||
} | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html | ||
*/ | ||
interface PointInTimeRecoverySpecificationProperty { | ||
/** | ||
* ``TableResource.PointInTimeRecoverySpecificationProperty.PointInTimeRecoveryEnabled`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html#cfn-dynamodb-table-pointintimerecoveryspecification-pointintimerecoveryenabled | ||
*/ | ||
pointInTimeRecoveryEnabled?: boolean | cdk.Token; | ||
} | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-projectionobject.html | ||
*/ | ||
interface ProjectionProperty { | ||
/** | ||
* ``TableResource.ProjectionProperty.NonKeyAttributes`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-projectionobject.html#cfn-dynamodb-projectionobj-nonkeyatt | ||
*/ | ||
nonKeyAttributes?: Array<string | cdk.Token> | cdk.Token; | ||
/** | ||
* ``TableResource.ProjectionProperty.ProjectionType`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-projectionobject.html#cfn-dynamodb-projectionobj-projtype | ||
*/ | ||
projectionType?: string | cdk.Token; | ||
} | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html | ||
*/ | ||
interface ProvisionedThroughputProperty { | ||
/** | ||
* ``TableResource.ProvisionedThroughputProperty.ReadCapacityUnits`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html#cfn-dynamodb-provisionedthroughput-readcapacityunits | ||
*/ | ||
readCapacityUnits: number | cdk.Token; | ||
/** | ||
* ``TableResource.ProvisionedThroughputProperty.WriteCapacityUnits`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html#cfn-dynamodb-provisionedthroughput-writecapacityunits | ||
*/ | ||
writeCapacityUnits: number | cdk.Token; | ||
} | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html | ||
*/ | ||
interface SSESpecificationProperty { | ||
/** | ||
* ``TableResource.SSESpecificationProperty.SSEEnabled`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html#cfn-dynamodb-table-ssespecification-sseenabled | ||
*/ | ||
sseEnabled: boolean | cdk.Token; | ||
} | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-streamspecification.html | ||
*/ | ||
interface StreamSpecificationProperty { | ||
/** | ||
* ``TableResource.StreamSpecificationProperty.StreamViewType`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-streamspecification.html#cfn-dynamodb-streamspecification-streamviewtype | ||
*/ | ||
streamViewType: string | cdk.Token; | ||
} | ||
} | ||
namespace TableResource { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-timetolivespecification.html | ||
*/ | ||
interface TimeToLiveSpecificationProperty { | ||
/** | ||
* ``TableResource.TimeToLiveSpecificationProperty.AttributeName`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-timetolivespecification.html#cfn-dynamodb-timetolivespecification-attributename | ||
*/ | ||
attributeName: string | cdk.Token; | ||
/** | ||
* ``TableResource.TimeToLiveSpecificationProperty.Enabled`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-timetolivespecification.html#cfn-dynamodb-timetolivespecification-enabled | ||
*/ | ||
enabled: boolean | cdk.Token; | ||
} | ||
} | ||
} |
@@ -149,3 +149,3 @@ import iam = require('@aws-cdk/aws-iam'); | ||
private readonly scalingRole; | ||
constructor(parent: Construct, name: string, props?: TableProps); | ||
constructor(scope: Construct, id: string, props?: TableProps); | ||
/** | ||
@@ -237,3 +237,3 @@ * Add a partition key of table. | ||
*/ | ||
validate(): string[]; | ||
protected validate(): string[]; | ||
/** | ||
@@ -240,0 +240,0 @@ * Validate read and write capacity are not specified for on-demand tables (billing mode PAY_PER_REQUEST). |
{ | ||
"name": "@aws-cdk/aws-dynamodb", | ||
"version": "0.21.0", | ||
"version": "0.22.0", | ||
"description": "CDK Constructs for AWS DynamoDB", | ||
@@ -37,3 +37,5 @@ "main": "lib/index.js", | ||
"pkglint": "pkglint -f", | ||
"package": "cdk-package" | ||
"package": "cdk-package", | ||
"awslint": "cdk-awslint", | ||
"cfn2ts": "cfn2ts" | ||
}, | ||
@@ -56,18 +58,18 @@ "cdk-build": { | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.21.0", | ||
"cdk-build-tools": "^0.21.0", | ||
"cdk-integ-tools": "^0.21.0", | ||
"cfn2ts": "^0.21.0", | ||
"pkglint": "^0.21.0" | ||
"@aws-cdk/assert": "^0.22.0", | ||
"cdk-build-tools": "^0.22.0", | ||
"cdk-integ-tools": "^0.22.0", | ||
"cfn2ts": "^0.22.0", | ||
"pkglint": "^0.22.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-applicationautoscaling": "^0.21.0", | ||
"@aws-cdk/aws-iam": "^0.21.0", | ||
"@aws-cdk/cdk": "^0.21.0" | ||
"@aws-cdk/aws-applicationautoscaling": "^0.22.0", | ||
"@aws-cdk/aws-iam": "^0.22.0", | ||
"@aws-cdk/cdk": "^0.22.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-applicationautoscaling": "^0.21.0", | ||
"@aws-cdk/aws-iam": "^0.21.0", | ||
"@aws-cdk/cdk": "^0.21.0" | ||
"@aws-cdk/aws-applicationautoscaling": "^0.22.0", | ||
"@aws-cdk/aws-iam": "^0.22.0", | ||
"@aws-cdk/cdk": "^0.22.0" | ||
}, | ||
@@ -74,0 +76,0 @@ "engines": { |
@@ -25,5 +25,26 @@ { | ||
"strictNullChecks": true, | ||
"target": "ES2018" | ||
"target": "ES2018", | ||
"composite": true | ||
}, | ||
"include": [ | ||
"**/*.ts" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../aws-applicationautoscaling" | ||
}, | ||
{ | ||
"path": "../aws-iam" | ||
}, | ||
{ | ||
"path": "../cdk" | ||
}, | ||
{ | ||
"path": "../assert" | ||
} | ||
], | ||
"_generated_by_jsii_": "Generated by jsii - safe to delete, and ideally should be in .gitignore" | ||
} |
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 not supported yet
Sorry, the diff of this file is not supported yet
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
511520
3951
+ Added@aws-cdk/aws-applicationautoscaling@0.22.0(transitive)
+ Added@aws-cdk/aws-autoscaling-common@0.22.0(transitive)
+ Added@aws-cdk/aws-cloudwatch@0.22.0(transitive)
+ Added@aws-cdk/aws-iam@0.22.0(transitive)
+ Added@aws-cdk/cdk@0.22.0(transitive)
+ Added@aws-cdk/cx-api@0.22.0(transitive)
- Removed@aws-cdk/aws-applicationautoscaling@0.21.0(transitive)
- Removed@aws-cdk/aws-autoscaling-common@0.21.0(transitive)
- Removed@aws-cdk/aws-cloudwatch@0.21.0(transitive)
- Removed@aws-cdk/aws-iam@0.21.0(transitive)
- Removed@aws-cdk/cdk@0.21.0(transitive)
- Removed@aws-cdk/cx-api@0.21.0(transitive)
Updated@aws-cdk/aws-iam@^0.22.0
Updated@aws-cdk/cdk@^0.22.0