UNPKG

105 kBTypeScriptView Raw
1import * as cdk from '@aws-cdk/core';
2import * as cfn_parse from '@aws-cdk/core/lib/helpers-internal';
3/**
4 * Properties for defining a `CfnGlobalTable`
5 *
6 * @struct
7 * @stability external
8 *
9 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html
10 */
11export interface CfnGlobalTableProps {
12 /**
13 * A list of attributes that describe the key schema for the global table and indexes.
14 *
15 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-attributedefinitions
16 */
17 readonly attributeDefinitions: Array<CfnGlobalTable.AttributeDefinitionProperty | cdk.IResolvable> | cdk.IResolvable;
18 /**
19 * Specifies the attributes that make up the primary key for the table. The attributes in the `KeySchema` property must also be defined in the `AttributeDefinitions` property.
20 *
21 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-keyschema
22 */
23 readonly keySchema: Array<CfnGlobalTable.KeySchemaProperty | cdk.IResolvable> | cdk.IResolvable;
24 /**
25 * Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
26 *
27 * > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
28 * >
29 * > If you add or delete a replica during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new replica, you might need to manually delete the replica.
30 *
31 * You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
32 *
33 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-replicas
34 */
35 readonly replicas: Array<CfnGlobalTable.ReplicaSpecificationProperty | cdk.IResolvable> | cdk.IResolvable;
36 /**
37 * Specifies how you are charged for read and write throughput and how you manage capacity. Valid values are:
38 *
39 * - `PAY_PER_REQUEST`
40 * - `PROVISIONED`
41 *
42 * All replicas in your global table will have the same billing mode. If you use `PROVISIONED` billing mode, you must provide an auto scaling configuration via the `WriteProvisionedThroughputSettings` property. The default value of this property is `PROVISIONED` .
43 *
44 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-billingmode
45 */
46 readonly billingMode?: string;
47 /**
48 * Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
49 *
50 * Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
51 *
52 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-globalsecondaryindexes
53 */
54 readonly globalSecondaryIndexes?: Array<CfnGlobalTable.GlobalSecondaryIndexProperty | cdk.IResolvable> | cdk.IResolvable;
55 /**
56 * Local secondary indexes to be created on the table. You can create up to five local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes. Each replica in your global table will have the same local secondary index settings.
57 *
58 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-localsecondaryindexes
59 */
60 readonly localSecondaryIndexes?: Array<CfnGlobalTable.LocalSecondaryIndexProperty | cdk.IResolvable> | cdk.IResolvable;
61 /**
62 * Specifies the settings to enable server-side encryption. These settings will be applied to all replicas. If you plan to use customer-managed KMS keys, you must provide a key for each replica using the `ReplicaSpecification.ReplicaSSESpecification` property.
63 *
64 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-ssespecification
65 */
66 readonly sseSpecification?: CfnGlobalTable.SSESpecificationProperty | cdk.IResolvable;
67 /**
68 * Specifies the streams settings on your global table. You must provide a value for this property if your global table contains more than one replica. You can only change the streams settings if your global table has only one replica.
69 *
70 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-streamspecification
71 */
72 readonly streamSpecification?: CfnGlobalTable.StreamSpecificationProperty | cdk.IResolvable;
73 /**
74 * A name for the global table. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID as the table name. For more information, see [Name type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) .
75 *
76 * > If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
77 *
78 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-tablename
79 */
80 readonly tableName?: string;
81 /**
82 * Specifies the time to live (TTL) settings for the table. This setting will be applied to all replicas.
83 *
84 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-timetolivespecification
85 */
86 readonly timeToLiveSpecification?: CfnGlobalTable.TimeToLiveSpecificationProperty | cdk.IResolvable;
87 /**
88 * Specifies an auto scaling policy for write capacity. This policy will be applied to all replicas. This setting must be specified if `BillingMode` is set to `PROVISIONED` .
89 *
90 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeprovisionedthroughputsettings
91 */
92 readonly writeProvisionedThroughputSettings?: CfnGlobalTable.WriteProvisionedThroughputSettingsProperty | cdk.IResolvable;
93}
94/**
95 * A CloudFormation `AWS::DynamoDB::GlobalTable`
96 *
97 * The `AWS::DynamoDB::GlobalTable` resource enables you to create and manage a Version 2019.11.21 global table. This resource cannot be used to create or manage a Version 2017.11.29 global table. For more information, see [Global tables](https://docs.aws.amazon.com//amazondynamodb/latest/developerguide/GlobalTables.html) .
98 *
99 * > You cannot convert a resource of type `AWS::DynamoDB::Table` into a resource of type `AWS::DynamoDB::GlobalTable` by changing its type in your template. *Doing so might result in the deletion of your DynamoDB table.*
100 * >
101 * > You can instead use the GlobalTable resource to create a new table in a single Region. This will be billed the same as a single Region table. If you later update the stack to add other Regions then Global Tables pricing will apply.
102 *
103 * You should be aware of the following behaviors when working with DynamoDB global tables.
104 *
105 * - The IAM Principal executing the stack operation must have the permissions listed below in all regions where you plan to have a global table replica. The IAM Principal's permissions should not have restrictions based on IP source address. Some global tables operations (for example, adding a replica) are asynchronous, and require that the IAM Principal is valid until they complete. You should not delete the Principal (user or IAM role) until CloudFormation has finished updating your stack.
106 *
107 * - `dynamodb:CreateTable`
108 * - `dynamodb:UpdateTable`
109 * - `dynamodb:DeleteTable`
110 * - `dynamodb:DescribeContinuousBackups`
111 * - `dynamodb:DescribeContributorInsights`
112 * - `dynamodb:DescribeTable`
113 * - `dynamodb:DescribeTableReplicaAutoScaling`
114 * - `dynamodb:DescribeTimeToLive`
115 * - `dynamodb:ListTables`
116 * - `dynamodb:UpdateTimeToLive`
117 * - `dynamodb:UpdateContributorInsights`
118 * - `dynamodb:UpdateContinuousBackups`
119 * - `dynamodb:ListTagsOfResource`
120 * - `dynamodb:TableClass`
121 * - `dynamodb:TagResource`
122 * - `dynamodb:UntagResource`
123 * - `dynamodb:BatchWriteItem`
124 * - `dynamodb:CreateTableReplica`
125 * - `dynamodb:DeleteItem`
126 * - `dynamodb:DeleteTableReplica`
127 * - `dynamodb:DisableKinesisStreamingDestination`
128 * - `dynamodb:EnableKinesisStreamingDestination`
129 * - `dynamodb:GetItem`
130 * - `dynamodb:PutItem`
131 * - `dynamodb:Query`
132 * - `dynamodb:Scan`
133 * - `dynamodb:UpdateItem`
134 * - `dynamodb:DescribeTableReplicaAutoScaling`
135 * - `dynamodb:UpdateTableReplicaAutoScaling`
136 * - `iam:CreateServiceLinkedRole`
137 * - `kms:CreateGrant`
138 * - `kms:DescribeKey`
139 * - `application-autoscaling:DeleteScalingPolicy`
140 * - `application-autoscaling:DeleteScheduledAction`
141 * - `application-autoscaling:DeregisterScalableTarget`
142 * - `application-autoscaling:DescribeScalingPolicies`
143 * - `application-autoscaling:DescribeScalableTargets`
144 * - `application-autoscaling:PutScalingPolicy`
145 * - `application-autoscaling:PutScheduledAction`
146 * - `application-autoscaling:RegisterScalableTarget`
147 * - When using provisioned billing mode, CloudFormation will create an auto scaling policy on each of your replicas to control their write capacities. You must configure this policy using the `WriteProvisionedThroughputSettings` property. CloudFormation will ensure that all replicas have the same write capacity auto scaling property. You cannot directly specify a value for write capacity for a global table.
148 * - If your table uses provisioned capacity, you must configure auto scaling directly in the `AWS::DynamoDB::GlobalTable` resource. You should not configure additional auto scaling policies on any of the table replicas or global secondary indexes, either via API or via `AWS::ApplicationAutoScaling::ScalableTarget` or `AWS::ApplicationAutoScaling::ScalingPolicy` . Doing so might result in unexpected behavior and is unsupported.
149 * - In AWS CloudFormation , each global table is controlled by a single stack, in a single region, regardless of the number of replicas. When you deploy your template, CloudFormation will create/update all replicas as part of a single stack operation. You should not deploy the same `AWS::DynamoDB::GlobalTable` resource in multiple regions. Doing so will result in errors, and is unsupported. If you deploy your application template in multiple regions, you can use conditions to only create the resource in a single region. Alternatively, you can choose to define your `AWS::DynamoDB::GlobalTable` resources in a stack separate from your application stack, and make sure it is only deployed to a single region.
150 *
151 * @cloudformationResource AWS::DynamoDB::GlobalTable
152 * @stability external
153 *
154 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html
155 */
156export declare class CfnGlobalTable extends cdk.CfnResource implements cdk.IInspectable {
157 /**
158 * The CloudFormation resource type name for this resource class.
159 */
160 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::DynamoDB::GlobalTable";
161 /**
162 * A factory method that creates a new instance of this class from an object
163 * containing the CloudFormation properties of this resource.
164 * Used in the @aws-cdk/cloudformation-include module.
165 *
166 * @internal
167 */
168 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnGlobalTable;
169 /**
170 * The Amazon Resource Name (ARN) of the DynamoDB table, such as `arn:aws:dynamodb:us-east-2:123456789012:table/myDynamoDBTable` . The ARN returned is that of the replica in the region the stack is deployed to.
171 * @cloudformationAttribute Arn
172 */
173 readonly attrArn: string;
174 /**
175 * The ARN of the DynamoDB stream, such as `arn:aws:dynamodb:us-east-1:123456789012:table/testddbstack-myDynamoDBTable-012A1SL7SMP5Q/stream/2015-11-30T20:10:00.000` . The `StreamArn` returned is that of the replica in the region the stack is deployed to.
176 *
177 * > You must specify the `StreamSpecification` property to use this attribute.
178 * @cloudformationAttribute StreamArn
179 */
180 readonly attrStreamArn: string;
181 /**
182 * Unique identifier for the table, such as `a123b456-01ab-23cd-123a-111222aaabbb` . The `TableId` returned is that of the replica in the region the stack is deployed to.
183 * @cloudformationAttribute TableId
184 */
185 readonly attrTableId: string;
186 /**
187 * A list of attributes that describe the key schema for the global table and indexes.
188 *
189 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-attributedefinitions
190 */
191 attributeDefinitions: Array<CfnGlobalTable.AttributeDefinitionProperty | cdk.IResolvable> | cdk.IResolvable;
192 /**
193 * Specifies the attributes that make up the primary key for the table. The attributes in the `KeySchema` property must also be defined in the `AttributeDefinitions` property.
194 *
195 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-keyschema
196 */
197 keySchema: Array<CfnGlobalTable.KeySchemaProperty | cdk.IResolvable> | cdk.IResolvable;
198 /**
199 * Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
200 *
201 * > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
202 * >
203 * > If you add or delete a replica during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new replica, you might need to manually delete the replica.
204 *
205 * You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
206 *
207 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-replicas
208 */
209 replicas: Array<CfnGlobalTable.ReplicaSpecificationProperty | cdk.IResolvable> | cdk.IResolvable;
210 /**
211 * Specifies how you are charged for read and write throughput and how you manage capacity. Valid values are:
212 *
213 * - `PAY_PER_REQUEST`
214 * - `PROVISIONED`
215 *
216 * All replicas in your global table will have the same billing mode. If you use `PROVISIONED` billing mode, you must provide an auto scaling configuration via the `WriteProvisionedThroughputSettings` property. The default value of this property is `PROVISIONED` .
217 *
218 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-billingmode
219 */
220 billingMode: string | undefined;
221 /**
222 * Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
223 *
224 * Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
225 *
226 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-globalsecondaryindexes
227 */
228 globalSecondaryIndexes: Array<CfnGlobalTable.GlobalSecondaryIndexProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
229 /**
230 * Local secondary indexes to be created on the table. You can create up to five local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes. Each replica in your global table will have the same local secondary index settings.
231 *
232 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-localsecondaryindexes
233 */
234 localSecondaryIndexes: Array<CfnGlobalTable.LocalSecondaryIndexProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
235 /**
236 * Specifies the settings to enable server-side encryption. These settings will be applied to all replicas. If you plan to use customer-managed KMS keys, you must provide a key for each replica using the `ReplicaSpecification.ReplicaSSESpecification` property.
237 *
238 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-ssespecification
239 */
240 sseSpecification: CfnGlobalTable.SSESpecificationProperty | cdk.IResolvable | undefined;
241 /**
242 * Specifies the streams settings on your global table. You must provide a value for this property if your global table contains more than one replica. You can only change the streams settings if your global table has only one replica.
243 *
244 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-streamspecification
245 */
246 streamSpecification: CfnGlobalTable.StreamSpecificationProperty | cdk.IResolvable | undefined;
247 /**
248 * A name for the global table. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID as the table name. For more information, see [Name type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) .
249 *
250 * > If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
251 *
252 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-tablename
253 */
254 tableName: string | undefined;
255 /**
256 * Specifies the time to live (TTL) settings for the table. This setting will be applied to all replicas.
257 *
258 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-timetolivespecification
259 */
260 timeToLiveSpecification: CfnGlobalTable.TimeToLiveSpecificationProperty | cdk.IResolvable | undefined;
261 /**
262 * Specifies an auto scaling policy for write capacity. This policy will be applied to all replicas. This setting must be specified if `BillingMode` is set to `PROVISIONED` .
263 *
264 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-globaltable.html#cfn-dynamodb-globaltable-writeprovisionedthroughputsettings
265 */
266 writeProvisionedThroughputSettings: CfnGlobalTable.WriteProvisionedThroughputSettingsProperty | cdk.IResolvable | undefined;
267 /**
268 * Create a new `AWS::DynamoDB::GlobalTable`.
269 *
270 * @param scope - scope in which this resource is defined
271 * @param id - scoped id of the resource
272 * @param props - resource properties
273 */
274 constructor(scope: cdk.Construct, id: string, props: CfnGlobalTableProps);
275 /**
276 * Examines the CloudFormation resource and discloses attributes.
277 *
278 * @param inspector - tree inspector to collect and process attributes
279 *
280 */
281 inspect(inspector: cdk.TreeInspector): void;
282 protected get cfnProperties(): {
283 [key: string]: any;
284 };
285 protected renderProperties(props: {
286 [key: string]: any;
287 }): {
288 [key: string]: any;
289 };
290}
291export declare namespace CfnGlobalTable {
292 /**
293 * Represents an attribute for describing the key schema for the table and indexes.
294 *
295 * @struct
296 * @stability external
297 *
298 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-attributedefinition.html
299 */
300 interface AttributeDefinitionProperty {
301 /**
302 * A name for the attribute.
303 *
304 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-attributedefinition.html#cfn-dynamodb-globaltable-attributedefinition-attributename
305 */
306 readonly attributeName: string;
307 /**
308 * The data type for the attribute, where:
309 *
310 * - `S` - the attribute is of type String
311 * - `N` - the attribute is of type Number
312 * - `B` - the attribute is of type Binary
313 *
314 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-attributedefinition.html#cfn-dynamodb-globaltable-attributedefinition-attributetype
315 */
316 readonly attributeType: string;
317 }
318}
319export declare namespace CfnGlobalTable {
320 /**
321 * Configures a scalable target and an autoscaling policy for a table or global secondary index's read or write capacity.
322 *
323 * @struct
324 * @stability external
325 *
326 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-capacityautoscalingsettings.html
327 */
328 interface CapacityAutoScalingSettingsProperty {
329 /**
330 * The maximum provisioned capacity units for the global table.
331 *
332 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-capacityautoscalingsettings.html#cfn-dynamodb-globaltable-capacityautoscalingsettings-maxcapacity
333 */
334 readonly maxCapacity: number;
335 /**
336 * The minimum provisioned capacity units for the global table.
337 *
338 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-capacityautoscalingsettings.html#cfn-dynamodb-globaltable-capacityautoscalingsettings-mincapacity
339 */
340 readonly minCapacity: number;
341 /**
342 * When switching billing mode from `PAY_PER_REQUEST` to `PROVISIONED` , DynamoDB requires you to specify read and write capacity unit values for the table and for each global secondary index. These values will be applied to all replicas. The table will use these provisioned values until CloudFormation creates the autoscaling policies you configured in your template. CloudFormation cannot determine what capacity the table and its global secondary indexes will require in this time period, since they are application-dependent.
343 *
344 * If you want to switch a table's billing mode from `PAY_PER_REQUEST` to `PROVISIONED` , you must specify a value for this property for each autoscaled resource. If you specify different values for the same resource in different regions, CloudFormation will use the highest value found in either the `SeedCapacity` or `ReadCapacityUnits` properties. For example, if your global secondary index `myGSI` has a `SeedCapacity` of 10 in us-east-1 and a fixed `ReadCapacityUnits` of 20 in eu-west-1, CloudFormation will initially set the read capacity for `myGSI` to 20. Note that if you disable `ScaleIn` for `myGSI` in us-east-1, its read capacity units might not be set back to 10.
345 *
346 * You must also specify a value for `SeedCapacity` when you plan to switch a table's billing mode from `PROVISIONED` to `PAY_PER_REQUEST` , because CloudFormation might need to roll back the operation (reverting the billing mode to `PROVISIONED` ) and this cannot succeed without specifying a value for `SeedCapacity` .
347 *
348 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-capacityautoscalingsettings.html#cfn-dynamodb-globaltable-capacityautoscalingsettings-seedcapacity
349 */
350 readonly seedCapacity?: number;
351 /**
352 * Defines a target tracking scaling policy.
353 *
354 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-capacityautoscalingsettings.html#cfn-dynamodb-globaltable-capacityautoscalingsettings-targettrackingscalingpolicyconfiguration
355 */
356 readonly targetTrackingScalingPolicyConfiguration: CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty | cdk.IResolvable;
357 }
358}
359export declare namespace CfnGlobalTable {
360 /**
361 * Configures contributor insights settings for a replica or one of its indexes.
362 *
363 * @struct
364 * @stability external
365 *
366 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-contributorinsightsspecification.html
367 */
368 interface ContributorInsightsSpecificationProperty {
369 /**
370 * Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false).
371 *
372 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-contributorinsightsspecification.html#cfn-dynamodb-globaltable-contributorinsightsspecification-enabled
373 */
374 readonly enabled: boolean | cdk.IResolvable;
375 }
376}
377export declare namespace CfnGlobalTable {
378 /**
379 * Allows you to specify a global secondary index for the global table. The index will be defined on all replicas.
380 *
381 * @struct
382 * @stability external
383 *
384 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-globalsecondaryindex.html
385 */
386 interface GlobalSecondaryIndexProperty {
387 /**
388 * The name of the global secondary index. The name must be unique among all other indexes on this table.
389 *
390 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-globalsecondaryindex.html#cfn-dynamodb-globaltable-globalsecondaryindex-indexname
391 */
392 readonly indexName: string;
393 /**
394 * The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:
395 *
396 * - `HASH` - partition key
397 * - `RANGE` - sort key
398 *
399 * > The partition key of an item is also known as its *hash attribute* . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
400 * >
401 * > The sort key of an item is also known as its *range attribute* . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
402 *
403 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-globalsecondaryindex.html#cfn-dynamodb-globaltable-globalsecondaryindex-keyschema
404 */
405 readonly keySchema: Array<CfnGlobalTable.KeySchemaProperty | cdk.IResolvable> | cdk.IResolvable;
406 /**
407 * Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
408 *
409 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-globalsecondaryindex.html#cfn-dynamodb-globaltable-globalsecondaryindex-projection
410 */
411 readonly projection: CfnGlobalTable.ProjectionProperty | cdk.IResolvable;
412 /**
413 * Defines write capacity settings for the global secondary index. You must specify a value for this property if the table's `BillingMode` is `PROVISIONED` . All replicas will have the same write capacity settings for this global secondary index.
414 *
415 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-globalsecondaryindex.html#cfn-dynamodb-globaltable-globalsecondaryindex-writeprovisionedthroughputsettings
416 */
417 readonly writeProvisionedThroughputSettings?: CfnGlobalTable.WriteProvisionedThroughputSettingsProperty | cdk.IResolvable;
418 }
419}
420export declare namespace CfnGlobalTable {
421 /**
422 * Represents *a single element* of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.
423 *
424 * A `KeySchemaElement` represents exactly one attribute of the primary key. For example, a simple primary key would be represented by one `KeySchemaElement` (for the partition key). A composite primary key would require one `KeySchemaElement` for the partition key, and another `KeySchemaElement` for the sort key.
425 *
426 * A `KeySchemaElement` must be a scalar, top-level attribute (not a nested attribute). The data type must be one of String, Number, or Binary. The attribute cannot be nested within a List or a Map.
427 *
428 * @struct
429 * @stability external
430 *
431 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-keyschema.html
432 */
433 interface KeySchemaProperty {
434 /**
435 * The name of a key attribute.
436 *
437 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-keyschema.html#cfn-dynamodb-globaltable-keyschema-attributename
438 */
439 readonly attributeName: string;
440 /**
441 * The role that this key attribute will assume:
442 *
443 * - `HASH` - partition key
444 * - `RANGE` - sort key
445 *
446 * > The partition key of an item is also known as its *hash attribute* . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
447 * >
448 * > The sort key of an item is also known as its *range attribute* . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
449 *
450 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-keyschema.html#cfn-dynamodb-globaltable-keyschema-keytype
451 */
452 readonly keyType: string;
453 }
454}
455export declare namespace CfnGlobalTable {
456 /**
457 * The Kinesis Data Streams configuration for the specified global table replica.
458 *
459 * @struct
460 * @stability external
461 *
462 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-kinesisstreamspecification.html
463 */
464 interface KinesisStreamSpecificationProperty {
465 /**
466 * The ARN for a specific Kinesis data stream.
467 *
468 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-kinesisstreamspecification.html#cfn-dynamodb-globaltable-kinesisstreamspecification-streamarn
469 */
470 readonly streamArn: string;
471 }
472}
473export declare namespace CfnGlobalTable {
474 /**
475 * Represents the properties of a local secondary index. A local secondary index can only be created when its parent table is created.
476 *
477 * @struct
478 * @stability external
479 *
480 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-localsecondaryindex.html
481 */
482 interface LocalSecondaryIndexProperty {
483 /**
484 * The name of the local secondary index. The name must be unique among all other indexes on this table.
485 *
486 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-localsecondaryindex.html#cfn-dynamodb-globaltable-localsecondaryindex-indexname
487 */
488 readonly indexName: string;
489 /**
490 * The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:
491 *
492 * - `HASH` - partition key
493 * - `RANGE` - sort key
494 *
495 * > The partition key of an item is also known as its *hash attribute* . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
496 * >
497 * > The sort key of an item is also known as its *range attribute* . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
498 *
499 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-localsecondaryindex.html#cfn-dynamodb-globaltable-localsecondaryindex-keyschema
500 */
501 readonly keySchema: Array<CfnGlobalTable.KeySchemaProperty | cdk.IResolvable> | cdk.IResolvable;
502 /**
503 * Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
504 *
505 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-localsecondaryindex.html#cfn-dynamodb-globaltable-localsecondaryindex-projection
506 */
507 readonly projection: CfnGlobalTable.ProjectionProperty | cdk.IResolvable;
508 }
509}
510export declare namespace CfnGlobalTable {
511 /**
512 * Represents the settings used to enable point in time recovery.
513 *
514 * @struct
515 * @stability external
516 *
517 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-pointintimerecoveryspecification.html
518 */
519 interface PointInTimeRecoverySpecificationProperty {
520 /**
521 * Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
522 *
523 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-pointintimerecoveryspecification.html#cfn-dynamodb-globaltable-pointintimerecoveryspecification-pointintimerecoveryenabled
524 */
525 readonly pointInTimeRecoveryEnabled?: boolean | cdk.IResolvable;
526 }
527}
528export declare namespace CfnGlobalTable {
529 /**
530 * Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
531 *
532 * @struct
533 * @stability external
534 *
535 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-projection.html
536 */
537 interface ProjectionProperty {
538 /**
539 * Represents the non-key attribute names which will be projected into the index.
540 *
541 * For local secondary indexes, the total count of `NonKeyAttributes` summed across all of the local secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
542 *
543 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-projection.html#cfn-dynamodb-globaltable-projection-nonkeyattributes
544 */
545 readonly nonKeyAttributes?: string[];
546 /**
547 * The set of attributes that are projected into the index:
548 *
549 * - `KEYS_ONLY` - Only the index and primary keys are projected into the index.
550 * - `INCLUDE` - In addition to the attributes described in `KEYS_ONLY` , the secondary index will include other non-key attributes that you specify.
551 * - `ALL` - All of the table attributes are projected into the index.
552 *
553 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-projection.html#cfn-dynamodb-globaltable-projection-projectiontype
554 */
555 readonly projectionType?: string;
556 }
557}
558export declare namespace CfnGlobalTable {
559 /**
560 * Allows you to specify the read capacity settings for a replica table or a replica global secondary index when the `BillingMode` is set to `PROVISIONED` . You must specify a value for either `ReadCapacityUnits` or `ReadCapacityAutoScalingSettings` , but not both. You can switch between fixed capacity and auto scaling.
561 *
562 * @struct
563 * @stability external
564 *
565 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-readprovisionedthroughputsettings.html
566 */
567 interface ReadProvisionedThroughputSettingsProperty {
568 /**
569 * Specifies auto scaling settings for the replica table or global secondary index.
570 *
571 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-readprovisionedthroughputsettings.html#cfn-dynamodb-globaltable-readprovisionedthroughputsettings-readcapacityautoscalingsettings
572 */
573 readonly readCapacityAutoScalingSettings?: CfnGlobalTable.CapacityAutoScalingSettingsProperty | cdk.IResolvable;
574 /**
575 * Specifies a fixed read capacity for the replica table or global secondary index.
576 *
577 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-readprovisionedthroughputsettings.html#cfn-dynamodb-globaltable-readprovisionedthroughputsettings-readcapacityunits
578 */
579 readonly readCapacityUnits?: number;
580 }
581}
582export declare namespace CfnGlobalTable {
583 /**
584 * Represents the properties of a global secondary index that can be set on a per-replica basis.
585 *
586 * @struct
587 * @stability external
588 *
589 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaglobalsecondaryindexspecification.html
590 */
591 interface ReplicaGlobalSecondaryIndexSpecificationProperty {
592 /**
593 * Updates the status for contributor insights for a specific table or index. CloudWatch Contributor Insights for DynamoDB graphs display the partition key and (if applicable) sort key of frequently accessed items and frequently throttled items in plaintext. If you require the use of AWS Key Management Service (KMS) to encrypt this table’s partition key and sort key data with an AWS managed key or customer managed key, you should not enable CloudWatch Contributor Insights for DynamoDB for this table.
594 *
595 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaglobalsecondaryindexspecification.html#cfn-dynamodb-globaltable-replicaglobalsecondaryindexspecification-contributorinsightsspecification
596 */
597 readonly contributorInsightsSpecification?: CfnGlobalTable.ContributorInsightsSpecificationProperty | cdk.IResolvable;
598 /**
599 * The name of the global secondary index. The name must be unique among all other indexes on this table.
600 *
601 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaglobalsecondaryindexspecification.html#cfn-dynamodb-globaltable-replicaglobalsecondaryindexspecification-indexname
602 */
603 readonly indexName: string;
604 /**
605 * Allows you to specify the read capacity settings for a replica global secondary index when the `BillingMode` is set to `PROVISIONED` .
606 *
607 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaglobalsecondaryindexspecification.html#cfn-dynamodb-globaltable-replicaglobalsecondaryindexspecification-readprovisionedthroughputsettings
608 */
609 readonly readProvisionedThroughputSettings?: CfnGlobalTable.ReadProvisionedThroughputSettingsProperty | cdk.IResolvable;
610 }
611}
612export declare namespace CfnGlobalTable {
613 /**
614 * Allows you to specify a KMS key identifier to be used for server-side encryption. The key can be specified via ARN, key ID, or alias. The key must be created in the same region as the replica.
615 *
616 * @struct
617 * @stability external
618 *
619 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicassespecification.html
620 */
621 interface ReplicaSSESpecificationProperty {
622 /**
623 * The AWS KMS key that should be used for the AWS KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key `alias/aws/dynamodb` .
624 *
625 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicassespecification.html#cfn-dynamodb-globaltable-replicassespecification-kmsmasterkeyid
626 */
627 readonly kmsMasterKeyId: string;
628 }
629}
630export declare namespace CfnGlobalTable {
631 /**
632 * Defines settings specific to a single replica of a global table.
633 *
634 * @struct
635 * @stability external
636 *
637 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html
638 */
639 interface ReplicaSpecificationProperty {
640 /**
641 * The settings used to enable or disable CloudWatch Contributor Insights for the specified replica. When not specified, defaults to contributor insights disabled for the replica.
642 *
643 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-contributorinsightsspecification
644 */
645 readonly contributorInsightsSpecification?: CfnGlobalTable.ContributorInsightsSpecificationProperty | cdk.IResolvable;
646 /**
647 * Determines if a replica is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Amazon DynamoDB Developer Guide* .
648 *
649 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-deletionprotectionenabled
650 */
651 readonly deletionProtectionEnabled?: boolean | cdk.IResolvable;
652 /**
653 * Defines additional settings for the global secondary indexes of this replica.
654 *
655 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-globalsecondaryindexes
656 */
657 readonly globalSecondaryIndexes?: Array<CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty | cdk.IResolvable> | cdk.IResolvable;
658 /**
659 * Defines the Kinesis Data Streams configuration for the specified replica.
660 *
661 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-kinesisstreamspecification
662 */
663 readonly kinesisStreamSpecification?: CfnGlobalTable.KinesisStreamSpecificationProperty | cdk.IResolvable;
664 /**
665 * The settings used to enable point in time recovery. When not specified, defaults to point in time recovery disabled for the replica.
666 *
667 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-pointintimerecoveryspecification
668 */
669 readonly pointInTimeRecoverySpecification?: CfnGlobalTable.PointInTimeRecoverySpecificationProperty | cdk.IResolvable;
670 /**
671 * Defines read capacity settings for the replica table.
672 *
673 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-readprovisionedthroughputsettings
674 */
675 readonly readProvisionedThroughputSettings?: CfnGlobalTable.ReadProvisionedThroughputSettingsProperty | cdk.IResolvable;
676 /**
677 * The region in which this replica exists.
678 *
679 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-region
680 */
681 readonly region: string;
682 /**
683 * Allows you to specify a customer-managed key for the replica. When using customer-managed keys for server-side encryption, this property must have a value in all replicas.
684 *
685 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-ssespecification
686 */
687 readonly sseSpecification?: CfnGlobalTable.ReplicaSSESpecificationProperty | cdk.IResolvable;
688 /**
689 * The table class of the specified table. Valid values are `STANDARD` and `STANDARD_INFREQUENT_ACCESS` .
690 *
691 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-tableclass
692 */
693 readonly tableClass?: string;
694 /**
695 * An array of key-value pairs to apply to this replica.
696 *
697 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
698 *
699 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html#cfn-dynamodb-globaltable-replicaspecification-tags
700 */
701 readonly tags?: cdk.CfnTag[];
702 }
703}
704export declare namespace CfnGlobalTable {
705 /**
706 * Represents the settings used to enable server-side encryption.
707 *
708 * @struct
709 * @stability external
710 *
711 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-ssespecification.html
712 */
713 interface SSESpecificationProperty {
714 /**
715 * Indicates whether server-side encryption is performed using an AWS managed key or an AWS owned key. If enabled (true), server-side encryption type is set to KMS and an AWS managed key is used ( AWS KMS charges apply). If disabled (false) or not specified,server-side encryption is set to an AWS owned key. If you choose to use KMS encryption, you can also use customer managed KMS keys by specifying them in the `ReplicaSpecification.SSESpecification` object. You cannot mix AWS managed and customer managed KMS keys.
716 *
717 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-ssespecification.html#cfn-dynamodb-globaltable-ssespecification-sseenabled
718 */
719 readonly sseEnabled: boolean | cdk.IResolvable;
720 /**
721 * Server-side encryption type. The only supported value is:
722 *
723 * - `KMS` - Server-side encryption that uses AWS Key Management Service . The key is stored in your account and is managed by AWS KMS ( AWS KMS charges apply).
724 *
725 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-ssespecification.html#cfn-dynamodb-globaltable-ssespecification-ssetype
726 */
727 readonly sseType?: string;
728 }
729}
730export declare namespace CfnGlobalTable {
731 /**
732 * Represents the DynamoDB Streams configuration for a table in DynamoDB.
733 *
734 * You can only modify this value if your `AWS::DynamoDB::GlobalTable` contains only one entry in `Replicas` . You must specify a value for this property if your `AWS::DynamoDB::GlobalTable` contains more than one replica.
735 *
736 * @struct
737 * @stability external
738 *
739 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-streamspecification.html
740 */
741 interface StreamSpecificationProperty {
742 /**
743 * When an item in the table is modified, `StreamViewType` determines what information is written to the stream for this table. Valid values for `StreamViewType` are:
744 *
745 * - `KEYS_ONLY` - Only the key attributes of the modified item are written to the stream.
746 * - `NEW_IMAGE` - The entire item, as it appears after it was modified, is written to the stream.
747 * - `OLD_IMAGE` - The entire item, as it appeared before it was modified, is written to the stream.
748 * - `NEW_AND_OLD_IMAGES` - Both the new and the old item images of the item are written to the stream.
749 *
750 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-streamspecification.html#cfn-dynamodb-globaltable-streamspecification-streamviewtype
751 */
752 readonly streamViewType: string;
753 }
754}
755export declare namespace CfnGlobalTable {
756 /**
757 * Defines a target tracking scaling policy.
758 *
759 * @struct
760 * @stability external
761 *
762 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-targettrackingscalingpolicyconfiguration.html
763 */
764 interface TargetTrackingScalingPolicyConfigurationProperty {
765 /**
766 * Indicates whether scale in by the target tracking scaling policy is disabled. The default value is `false` .
767 *
768 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-targettrackingscalingpolicyconfiguration.html#cfn-dynamodb-globaltable-targettrackingscalingpolicyconfiguration-disablescalein
769 */
770 readonly disableScaleIn?: boolean | cdk.IResolvable;
771 /**
772 * The amount of time, in seconds, after a scale-in activity completes before another scale-in activity can start.
773 *
774 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-targettrackingscalingpolicyconfiguration.html#cfn-dynamodb-globaltable-targettrackingscalingpolicyconfiguration-scaleincooldown
775 */
776 readonly scaleInCooldown?: number;
777 /**
778 * The amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start.
779 *
780 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-targettrackingscalingpolicyconfiguration.html#cfn-dynamodb-globaltable-targettrackingscalingpolicyconfiguration-scaleoutcooldown
781 */
782 readonly scaleOutCooldown?: number;
783 /**
784 * Defines a target value for the scaling policy.
785 *
786 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-targettrackingscalingpolicyconfiguration.html#cfn-dynamodb-globaltable-targettrackingscalingpolicyconfiguration-targetvalue
787 */
788 readonly targetValue: number;
789 }
790}
791export declare namespace CfnGlobalTable {
792 /**
793 * Represents the settings used to enable or disable Time to Live (TTL) for the specified table. All replicas will have the same time to live configuration.
794 *
795 * @struct
796 * @stability external
797 *
798 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-timetolivespecification.html
799 */
800 interface TimeToLiveSpecificationProperty {
801 /**
802 * The name of the attribute used to store the expiration time for items in the table.
803 *
804 * Currently, you cannot directly change the attribute name used to evaluate time to live. In order to do so, you must first disable time to live, and then re-enable it with the new attribute name. It can take up to one hour for changes to time to live to take effect. If you attempt to modify time to live within that time window, your stack operation might be delayed.
805 *
806 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-timetolivespecification.html#cfn-dynamodb-globaltable-timetolivespecification-attributename
807 */
808 readonly attributeName?: string;
809 /**
810 * Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
811 *
812 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-timetolivespecification.html#cfn-dynamodb-globaltable-timetolivespecification-enabled
813 */
814 readonly enabled: boolean | cdk.IResolvable;
815 }
816}
817export declare namespace CfnGlobalTable {
818 /**
819 * Specifies an auto scaling policy for write capacity. This policy will be applied to all replicas. This setting must be specified if `BillingMode` is set to `PROVISIONED` .
820 *
821 * @struct
822 * @stability external
823 *
824 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-writeprovisionedthroughputsettings.html
825 */
826 interface WriteProvisionedThroughputSettingsProperty {
827 /**
828 * Specifies auto scaling settings for the replica table or global secondary index.
829 *
830 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-writeprovisionedthroughputsettings.html#cfn-dynamodb-globaltable-writeprovisionedthroughputsettings-writecapacityautoscalingsettings
831 */
832 readonly writeCapacityAutoScalingSettings?: CfnGlobalTable.CapacityAutoScalingSettingsProperty | cdk.IResolvable;
833 }
834}
835/**
836 * Properties for defining a `CfnTable`
837 *
838 * @struct
839 * @stability external
840 *
841 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html
842 */
843export interface CfnTableProps {
844 /**
845 * Specifies the attributes that make up the primary key for the table. The attributes in the `KeySchema` property must also be defined in the `AttributeDefinitions` property.
846 *
847 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-keyschema
848 */
849 readonly keySchema: Array<CfnTable.KeySchemaProperty | cdk.IResolvable> | cdk.IResolvable;
850 /**
851 * A list of attributes that describe the key schema for the table and indexes.
852 *
853 * This property is required to create a DynamoDB table.
854 *
855 * Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) . Replacement if you edit an existing AttributeDefinition.
856 *
857 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-attributedefinitions
858 */
859 readonly attributeDefinitions?: Array<CfnTable.AttributeDefinitionProperty | cdk.IResolvable> | cdk.IResolvable;
860 /**
861 * Specify how you are charged for read and write throughput and how you manage capacity.
862 *
863 * Valid values include:
864 *
865 * - `PROVISIONED` - We recommend using `PROVISIONED` for predictable workloads. `PROVISIONED` sets the billing mode to [Provisioned Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual) .
866 * - `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for unpredictable workloads. `PAY_PER_REQUEST` sets the billing mode to [On-Demand Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand) .
867 *
868 * If not specified, the default is `PROVISIONED` .
869 *
870 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-billingmode
871 */
872 readonly billingMode?: string;
873 /**
874 * The settings used to enable or disable CloudWatch Contributor Insights for the specified table.
875 *
876 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-contributorinsightsspecification
877 */
878 readonly contributorInsightsSpecification?: CfnTable.ContributorInsightsSpecificationProperty | cdk.IResolvable;
879 /**
880 * Determines if a table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Amazon DynamoDB Developer Guide* .
881 *
882 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-deletionprotectionenabled
883 */
884 readonly deletionProtectionEnabled?: boolean | cdk.IResolvable;
885 /**
886 * Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
887 *
888 * > If you update a table to include a new global secondary index, AWS CloudFormation initiates the index creation and then proceeds with the stack update. AWS CloudFormation doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is `ACTIVE` . You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
889 * >
890 * > If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
891 * >
892 * > Updates are not supported. The following are exceptions:
893 * >
894 * > - If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
895 * > - You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
896 *
897 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-globalsecondaryindexes
898 */
899 readonly globalSecondaryIndexes?: Array<CfnTable.GlobalSecondaryIndexProperty | cdk.IResolvable> | cdk.IResolvable;
900 /**
901 * Specifies the properties of data being imported from the S3 bucket source to the table.
902 *
903 * > If you specify the `ImportSourceSpecification` property, and also specify either the `StreamSpecification` , the `TableClass` property, or the `DeletionProtectionEnabled` property, the IAM entity creating/updating stack must have `UpdateTable` permission.
904 *
905 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-importsourcespecification
906 */
907 readonly importSourceSpecification?: CfnTable.ImportSourceSpecificationProperty | cdk.IResolvable;
908 /**
909 * The Kinesis Data Streams configuration for the specified table.
910 *
911 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-kinesisstreamspecification
912 */
913 readonly kinesisStreamSpecification?: CfnTable.KinesisStreamSpecificationProperty | cdk.IResolvable;
914 /**
915 * Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
916 *
917 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-localsecondaryindexes
918 */
919 readonly localSecondaryIndexes?: Array<CfnTable.LocalSecondaryIndexProperty | cdk.IResolvable> | cdk.IResolvable;
920 /**
921 * The settings used to enable point in time recovery.
922 *
923 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-pointintimerecoveryspecification
924 */
925 readonly pointInTimeRecoverySpecification?: CfnTable.PointInTimeRecoverySpecificationProperty | cdk.IResolvable;
926 /**
927 * Throughput for the specified table, which consists of values for `ReadCapacityUnits` and `WriteCapacityUnits` . For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html) .
928 *
929 * If you set `BillingMode` as `PROVISIONED` , you must specify this property. If you set `BillingMode` as `PAY_PER_REQUEST` , you cannot specify this property.
930 *
931 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-provisionedthroughput
932 */
933 readonly provisionedThroughput?: CfnTable.ProvisionedThroughputProperty | cdk.IResolvable;
934 /**
935 * Specifies the settings to enable server-side encryption.
936 *
937 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ssespecification
938 */
939 readonly sseSpecification?: CfnTable.SSESpecificationProperty | cdk.IResolvable;
940 /**
941 * The settings for the DynamoDB table stream, which capture changes to items stored in the table.
942 *
943 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-streamspecification
944 */
945 readonly streamSpecification?: CfnTable.StreamSpecificationProperty | cdk.IResolvable;
946 /**
947 * The table class of the new table. Valid values are `STANDARD` and `STANDARD_INFREQUENT_ACCESS` .
948 *
949 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tableclass
950 */
951 readonly tableClass?: string;
952 /**
953 * A name for the table. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) .
954 *
955 * > If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
956 *
957 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tablename
958 */
959 readonly tableName?: string;
960 /**
961 * An array of key-value pairs to apply to this resource.
962 *
963 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
964 *
965 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tags
966 */
967 readonly tags?: cdk.CfnTag[];
968 /**
969 * Specifies the Time to Live (TTL) settings for the table.
970 *
971 * > For detailed information about the limits in DynamoDB, see [Limits in Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide.
972 *
973 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-timetolivespecification
974 */
975 readonly timeToLiveSpecification?: CfnTable.TimeToLiveSpecificationProperty | cdk.IResolvable;
976}
977/**
978 * A CloudFormation `AWS::DynamoDB::Table`
979 *
980 * The `AWS::DynamoDB::Table` resource creates a DynamoDB table. For more information, see [CreateTable](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CreateTable.html) in the *Amazon DynamoDB API Reference* .
981 *
982 * You should be aware of the following behaviors when working with DynamoDB tables:
983 *
984 * - AWS CloudFormation typically creates DynamoDB tables in parallel. However, if your template includes multiple DynamoDB tables with indexes, you must declare dependencies so that the tables are created sequentially. Amazon DynamoDB limits the number of tables with secondary indexes that are in the creating state. If you create multiple tables with indexes at the same time, DynamoDB returns an error and the stack operation fails. For an example, see [DynamoDB Table with a DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#aws-resource-dynamodb-table--examples--DynamoDB_Table_with_a_DependsOn_Attribute) .
985 *
986 * > Our guidance is to use the latest schema documented here for your AWS CloudFormation templates. This schema supports the provisioning of all table settings below. When using this schema in your AWS CloudFormation templates, please ensure that your Identity and Access Management ( IAM ) policies are updated with appropriate permissions to allow for the authorization of these setting changes.
987 *
988 * @cloudformationResource AWS::DynamoDB::Table
989 * @stability external
990 *
991 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html
992 */
993export declare class CfnTable extends cdk.CfnResource implements cdk.IInspectable {
994 /**
995 * The CloudFormation resource type name for this resource class.
996 */
997 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::DynamoDB::Table";
998 /**
999 * A factory method that creates a new instance of this class from an object
1000 * containing the CloudFormation properties of this resource.
1001 * Used in the @aws-cdk/cloudformation-include module.
1002 *
1003 * @internal
1004 */
1005 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnTable;
1006 /**
1007 * The Amazon Resource Name (ARN) of the DynamoDB table, such as `arn:aws:dynamodb:us-east-2:123456789012:table/myDynamoDBTable` .
1008 * @cloudformationAttribute Arn
1009 */
1010 readonly attrArn: string;
1011 /**
1012 * The ARN of the DynamoDB stream, such as `arn:aws:dynamodb:us-east-1:123456789012:table/testddbstack-myDynamoDBTable-012A1SL7SMP5Q/stream/2015-11-30T20:10:00.000` .
1013 *
1014 * > You must specify the `StreamSpecification` property to use this attribute.
1015 * @cloudformationAttribute StreamArn
1016 */
1017 readonly attrStreamArn: string;
1018 /**
1019 * Specifies the attributes that make up the primary key for the table. The attributes in the `KeySchema` property must also be defined in the `AttributeDefinitions` property.
1020 *
1021 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-keyschema
1022 */
1023 keySchema: Array<CfnTable.KeySchemaProperty | cdk.IResolvable> | cdk.IResolvable;
1024 /**
1025 * A list of attributes that describe the key schema for the table and indexes.
1026 *
1027 * This property is required to create a DynamoDB table.
1028 *
1029 * Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) . Replacement if you edit an existing AttributeDefinition.
1030 *
1031 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-attributedefinitions
1032 */
1033 attributeDefinitions: Array<CfnTable.AttributeDefinitionProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1034 /**
1035 * Specify how you are charged for read and write throughput and how you manage capacity.
1036 *
1037 * Valid values include:
1038 *
1039 * - `PROVISIONED` - We recommend using `PROVISIONED` for predictable workloads. `PROVISIONED` sets the billing mode to [Provisioned Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual) .
1040 * - `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for unpredictable workloads. `PAY_PER_REQUEST` sets the billing mode to [On-Demand Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand) .
1041 *
1042 * If not specified, the default is `PROVISIONED` .
1043 *
1044 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-billingmode
1045 */
1046 billingMode: string | undefined;
1047 /**
1048 * The settings used to enable or disable CloudWatch Contributor Insights for the specified table.
1049 *
1050 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-contributorinsightsspecification
1051 */
1052 contributorInsightsSpecification: CfnTable.ContributorInsightsSpecificationProperty | cdk.IResolvable | undefined;
1053 /**
1054 * Determines if a table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Amazon DynamoDB Developer Guide* .
1055 *
1056 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-deletionprotectionenabled
1057 */
1058 deletionProtectionEnabled: boolean | cdk.IResolvable | undefined;
1059 /**
1060 * Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
1061 *
1062 * > If you update a table to include a new global secondary index, AWS CloudFormation initiates the index creation and then proceeds with the stack update. AWS CloudFormation doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is `ACTIVE` . You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
1063 * >
1064 * > If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
1065 * >
1066 * > Updates are not supported. The following are exceptions:
1067 * >
1068 * > - If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
1069 * > - You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
1070 *
1071 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-globalsecondaryindexes
1072 */
1073 globalSecondaryIndexes: Array<CfnTable.GlobalSecondaryIndexProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1074 /**
1075 * Specifies the properties of data being imported from the S3 bucket source to the table.
1076 *
1077 * > If you specify the `ImportSourceSpecification` property, and also specify either the `StreamSpecification` , the `TableClass` property, or the `DeletionProtectionEnabled` property, the IAM entity creating/updating stack must have `UpdateTable` permission.
1078 *
1079 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-importsourcespecification
1080 */
1081 importSourceSpecification: CfnTable.ImportSourceSpecificationProperty | cdk.IResolvable | undefined;
1082 /**
1083 * The Kinesis Data Streams configuration for the specified table.
1084 *
1085 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-kinesisstreamspecification
1086 */
1087 kinesisStreamSpecification: CfnTable.KinesisStreamSpecificationProperty | cdk.IResolvable | undefined;
1088 /**
1089 * Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
1090 *
1091 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-localsecondaryindexes
1092 */
1093 localSecondaryIndexes: Array<CfnTable.LocalSecondaryIndexProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1094 /**
1095 * The settings used to enable point in time recovery.
1096 *
1097 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-pointintimerecoveryspecification
1098 */
1099 pointInTimeRecoverySpecification: CfnTable.PointInTimeRecoverySpecificationProperty | cdk.IResolvable | undefined;
1100 /**
1101 * Throughput for the specified table, which consists of values for `ReadCapacityUnits` and `WriteCapacityUnits` . For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html) .
1102 *
1103 * If you set `BillingMode` as `PROVISIONED` , you must specify this property. If you set `BillingMode` as `PAY_PER_REQUEST` , you cannot specify this property.
1104 *
1105 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-provisionedthroughput
1106 */
1107 provisionedThroughput: CfnTable.ProvisionedThroughputProperty | cdk.IResolvable | undefined;
1108 /**
1109 * Specifies the settings to enable server-side encryption.
1110 *
1111 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-ssespecification
1112 */
1113 sseSpecification: CfnTable.SSESpecificationProperty | cdk.IResolvable | undefined;
1114 /**
1115 * The settings for the DynamoDB table stream, which capture changes to items stored in the table.
1116 *
1117 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-streamspecification
1118 */
1119 streamSpecification: CfnTable.StreamSpecificationProperty | cdk.IResolvable | undefined;
1120 /**
1121 * The table class of the new table. Valid values are `STANDARD` and `STANDARD_INFREQUENT_ACCESS` .
1122 *
1123 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tableclass
1124 */
1125 tableClass: string | undefined;
1126 /**
1127 * A name for the table. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) .
1128 *
1129 * > If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
1130 *
1131 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tablename
1132 */
1133 tableName: string | undefined;
1134 /**
1135 * An array of key-value pairs to apply to this resource.
1136 *
1137 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
1138 *
1139 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tags
1140 */
1141 readonly tags: cdk.TagManager;
1142 /**
1143 * Specifies the Time to Live (TTL) settings for the table.
1144 *
1145 * > For detailed information about the limits in DynamoDB, see [Limits in Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide.
1146 *
1147 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-timetolivespecification
1148 */
1149 timeToLiveSpecification: CfnTable.TimeToLiveSpecificationProperty | cdk.IResolvable | undefined;
1150 /**
1151 * Create a new `AWS::DynamoDB::Table`.
1152 *
1153 * @param scope - scope in which this resource is defined
1154 * @param id - scoped id of the resource
1155 * @param props - resource properties
1156 */
1157 constructor(scope: cdk.Construct, id: string, props: CfnTableProps);
1158 /**
1159 * Examines the CloudFormation resource and discloses attributes.
1160 *
1161 * @param inspector - tree inspector to collect and process attributes
1162 *
1163 */
1164 inspect(inspector: cdk.TreeInspector): void;
1165 protected get cfnProperties(): {
1166 [key: string]: any;
1167 };
1168 protected renderProperties(props: {
1169 [key: string]: any;
1170 }): {
1171 [key: string]: any;
1172 };
1173}
1174export declare namespace CfnTable {
1175 /**
1176 * Represents an attribute for describing the key schema for the table and indexes.
1177 *
1178 * @struct
1179 * @stability external
1180 *
1181 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-attributedefinition.html
1182 */
1183 interface AttributeDefinitionProperty {
1184 /**
1185 * A name for the attribute.
1186 *
1187 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-attributedefinition.html#cfn-dynamodb-table-attributedefinition-attributename
1188 */
1189 readonly attributeName: string;
1190 /**
1191 * The data type for the attribute, where:
1192 *
1193 * - `S` - the attribute is of type String
1194 * - `N` - the attribute is of type Number
1195 * - `B` - the attribute is of type Binary
1196 *
1197 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-attributedefinition.html#cfn-dynamodb-table-attributedefinition-attributetype
1198 */
1199 readonly attributeType: string;
1200 }
1201}
1202export declare namespace CfnTable {
1203 /**
1204 * The settings used to enable or disable CloudWatch Contributor Insights.
1205 *
1206 * @struct
1207 * @stability external
1208 *
1209 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-contributorinsightsspecification.html
1210 */
1211 interface ContributorInsightsSpecificationProperty {
1212 /**
1213 * Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false).
1214 *
1215 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-contributorinsightsspecification.html#cfn-dynamodb-table-contributorinsightsspecification-enabled
1216 */
1217 readonly enabled: boolean | cdk.IResolvable;
1218 }
1219}
1220export declare namespace CfnTable {
1221 /**
1222 * The options for imported source files in CSV format. The values are Delimiter and HeaderList.
1223 *
1224 * @struct
1225 * @stability external
1226 *
1227 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-csv.html
1228 */
1229 interface CsvProperty {
1230 /**
1231 * The delimiter used for separating items in the CSV file being imported.
1232 *
1233 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-csv.html#cfn-dynamodb-table-csv-delimiter
1234 */
1235 readonly delimiter?: string;
1236 /**
1237 * List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.
1238 *
1239 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-csv.html#cfn-dynamodb-table-csv-headerlist
1240 */
1241 readonly headerList?: string[];
1242 }
1243}
1244export declare namespace CfnTable {
1245 /**
1246 * Represents the properties of a global secondary index.
1247 *
1248 * @struct
1249 * @stability external
1250 *
1251 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html
1252 */
1253 interface GlobalSecondaryIndexProperty {
1254 /**
1255 * The settings used to enable or disable CloudWatch Contributor Insights for the specified global secondary index.
1256 *
1257 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html#cfn-dynamodb-table-globalsecondaryindex-contributorinsightsspecification
1258 */
1259 readonly contributorInsightsSpecification?: CfnTable.ContributorInsightsSpecificationProperty | cdk.IResolvable;
1260 /**
1261 * The name of the global secondary index. The name must be unique among all other indexes on this table.
1262 *
1263 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html#cfn-dynamodb-table-globalsecondaryindex-indexname
1264 */
1265 readonly indexName: string;
1266 /**
1267 * The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:
1268 *
1269 * - `HASH` - partition key
1270 * - `RANGE` - sort key
1271 *
1272 * > The partition key of an item is also known as its *hash attribute* . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
1273 * >
1274 * > The sort key of an item is also known as its *range attribute* . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
1275 *
1276 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html#cfn-dynamodb-table-globalsecondaryindex-keyschema
1277 */
1278 readonly keySchema: Array<CfnTable.KeySchemaProperty | cdk.IResolvable> | cdk.IResolvable;
1279 /**
1280 * Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
1281 *
1282 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html#cfn-dynamodb-table-globalsecondaryindex-projection
1283 */
1284 readonly projection: CfnTable.ProjectionProperty | cdk.IResolvable;
1285 /**
1286 * Represents the provisioned throughput settings for the specified global secondary index.
1287 *
1288 * For current minimum and maximum provisioned throughput values, see [Service, Account, and Table Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the *Amazon DynamoDB Developer Guide* .
1289 *
1290 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html#cfn-dynamodb-table-globalsecondaryindex-provisionedthroughput
1291 */
1292 readonly provisionedThroughput?: CfnTable.ProvisionedThroughputProperty | cdk.IResolvable;
1293 }
1294}
1295export declare namespace CfnTable {
1296 /**
1297 * Specifies the properties of data being imported from the S3 bucket source to the table.
1298 *
1299 * @struct
1300 * @stability external
1301 *
1302 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-importsourcespecification.html
1303 */
1304 interface ImportSourceSpecificationProperty {
1305 /**
1306 * Type of compression to be used on the input coming from the imported table.
1307 *
1308 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-importsourcespecification.html#cfn-dynamodb-table-importsourcespecification-inputcompressiontype
1309 */
1310 readonly inputCompressionType?: string;
1311 /**
1312 * The format of the source data. Valid values for `ImportFormat` are `CSV` , `DYNAMODB_JSON` or `ION` .
1313 *
1314 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-importsourcespecification.html#cfn-dynamodb-table-importsourcespecification-inputformat
1315 */
1316 readonly inputFormat: string;
1317 /**
1318 * Additional properties that specify how the input is formatted,
1319 *
1320 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-importsourcespecification.html#cfn-dynamodb-table-importsourcespecification-inputformatoptions
1321 */
1322 readonly inputFormatOptions?: CfnTable.InputFormatOptionsProperty | cdk.IResolvable;
1323 /**
1324 * The S3 bucket that provides the source for the import.
1325 *
1326 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-importsourcespecification.html#cfn-dynamodb-table-importsourcespecification-s3bucketsource
1327 */
1328 readonly s3BucketSource: CfnTable.S3BucketSourceProperty | cdk.IResolvable;
1329 }
1330}
1331export declare namespace CfnTable {
1332 /**
1333 * The format options for the data that was imported into the target table. There is one value, CsvOption.
1334 *
1335 * @struct
1336 * @stability external
1337 *
1338 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-inputformatoptions.html
1339 */
1340 interface InputFormatOptionsProperty {
1341 /**
1342 * The options for imported source files in CSV format. The values are Delimiter and HeaderList.
1343 *
1344 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-inputformatoptions.html#cfn-dynamodb-table-inputformatoptions-csv
1345 */
1346 readonly csv?: CfnTable.CsvProperty | cdk.IResolvable;
1347 }
1348}
1349export declare namespace CfnTable {
1350 /**
1351 * Represents *a single element* of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.
1352 *
1353 * A `KeySchemaElement` represents exactly one attribute of the primary key. For example, a simple primary key would be represented by one `KeySchemaElement` (for the partition key). A composite primary key would require one `KeySchemaElement` for the partition key, and another `KeySchemaElement` for the sort key.
1354 *
1355 * A `KeySchemaElement` must be a scalar, top-level attribute (not a nested attribute). The data type must be one of String, Number, or Binary. The attribute cannot be nested within a List or a Map.
1356 *
1357 * @struct
1358 * @stability external
1359 *
1360 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-keyschema.html
1361 */
1362 interface KeySchemaProperty {
1363 /**
1364 * The name of a key attribute.
1365 *
1366 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-keyschema.html#cfn-dynamodb-table-keyschema-attributename
1367 */
1368 readonly attributeName: string;
1369 /**
1370 * The role that this key attribute will assume:
1371 *
1372 * - `HASH` - partition key
1373 * - `RANGE` - sort key
1374 *
1375 * > The partition key of an item is also known as its *hash attribute* . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
1376 * >
1377 * > The sort key of an item is also known as its *range attribute* . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
1378 *
1379 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-keyschema.html#cfn-dynamodb-table-keyschema-keytype
1380 */
1381 readonly keyType: string;
1382 }
1383}
1384export declare namespace CfnTable {
1385 /**
1386 * The Kinesis Data Streams configuration for the specified table.
1387 *
1388 * @struct
1389 * @stability external
1390 *
1391 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-kinesisstreamspecification.html
1392 */
1393 interface KinesisStreamSpecificationProperty {
1394 /**
1395 * The ARN for a specific Kinesis data stream.
1396 *
1397 * Length Constraints: Minimum length of 37. Maximum length of 1024.
1398 *
1399 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-kinesisstreamspecification.html#cfn-dynamodb-table-kinesisstreamspecification-streamarn
1400 */
1401 readonly streamArn: string;
1402 }
1403}
1404export declare namespace CfnTable {
1405 /**
1406 * Represents the properties of a local secondary index. A local secondary index can only be created when its parent table is created.
1407 *
1408 * @struct
1409 * @stability external
1410 *
1411 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-localsecondaryindex.html
1412 */
1413 interface LocalSecondaryIndexProperty {
1414 /**
1415 * The name of the local secondary index. The name must be unique among all other indexes on this table.
1416 *
1417 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-localsecondaryindex.html#cfn-dynamodb-table-localsecondaryindex-indexname
1418 */
1419 readonly indexName: string;
1420 /**
1421 * The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:
1422 *
1423 * - `HASH` - partition key
1424 * - `RANGE` - sort key
1425 *
1426 * > The partition key of an item is also known as its *hash attribute* . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
1427 * >
1428 * > The sort key of an item is also known as its *range attribute* . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
1429 *
1430 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-localsecondaryindex.html#cfn-dynamodb-table-localsecondaryindex-keyschema
1431 */
1432 readonly keySchema: Array<CfnTable.KeySchemaProperty | cdk.IResolvable> | cdk.IResolvable;
1433 /**
1434 * Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
1435 *
1436 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-localsecondaryindex.html#cfn-dynamodb-table-localsecondaryindex-projection
1437 */
1438 readonly projection: CfnTable.ProjectionProperty | cdk.IResolvable;
1439 }
1440}
1441export declare namespace CfnTable {
1442 /**
1443 * The settings used to enable point in time recovery.
1444 *
1445 * @struct
1446 * @stability external
1447 *
1448 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html
1449 */
1450 interface PointInTimeRecoverySpecificationProperty {
1451 /**
1452 * Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
1453 *
1454 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html#cfn-dynamodb-table-pointintimerecoveryspecification-pointintimerecoveryenabled
1455 */
1456 readonly pointInTimeRecoveryEnabled?: boolean | cdk.IResolvable;
1457 }
1458}
1459export declare namespace CfnTable {
1460 /**
1461 * Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
1462 *
1463 * @struct
1464 * @stability external
1465 *
1466 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-projection.html
1467 */
1468 interface ProjectionProperty {
1469 /**
1470 * Represents the non-key attribute names which will be projected into the index.
1471 *
1472 * For local secondary indexes, the total count of `NonKeyAttributes` summed across all of the local secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
1473 *
1474 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-projection.html#cfn-dynamodb-table-projection-nonkeyattributes
1475 */
1476 readonly nonKeyAttributes?: string[];
1477 /**
1478 * The set of attributes that are projected into the index:
1479 *
1480 * - `KEYS_ONLY` - Only the index and primary keys are projected into the index.
1481 * - `INCLUDE` - In addition to the attributes described in `KEYS_ONLY` , the secondary index will include other non-key attributes that you specify.
1482 * - `ALL` - All of the table attributes are projected into the index.
1483 *
1484 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-projection.html#cfn-dynamodb-table-projection-projectiontype
1485 */
1486 readonly projectionType?: string;
1487 }
1488}
1489export declare namespace CfnTable {
1490 /**
1491 * Throughput for the specified table, which consists of values for `ReadCapacityUnits` and `WriteCapacityUnits` . For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html) .
1492 *
1493 * @struct
1494 * @stability external
1495 *
1496 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-provisionedthroughput.html
1497 */
1498 interface ProvisionedThroughputProperty {
1499 /**
1500 * The maximum number of strongly consistent reads consumed per second before DynamoDB returns a `ThrottlingException` . For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide* .
1501 *
1502 * If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0.
1503 *
1504 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-provisionedthroughput.html#cfn-dynamodb-table-provisionedthroughput-readcapacityunits
1505 */
1506 readonly readCapacityUnits: number;
1507 /**
1508 * The maximum number of writes consumed per second before DynamoDB returns a `ThrottlingException` . For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide* .
1509 *
1510 * If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0.
1511 *
1512 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-provisionedthroughput.html#cfn-dynamodb-table-provisionedthroughput-writecapacityunits
1513 */
1514 readonly writeCapacityUnits: number;
1515 }
1516}
1517export declare namespace CfnTable {
1518 /**
1519 * The S3 bucket that is being imported from.
1520 *
1521 * @struct
1522 * @stability external
1523 *
1524 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-s3bucketsource.html
1525 */
1526 interface S3BucketSourceProperty {
1527 /**
1528 * The S3 bucket that is being imported from.
1529 *
1530 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-s3bucketsource.html#cfn-dynamodb-table-s3bucketsource-s3bucket
1531 */
1532 readonly s3Bucket: string;
1533 /**
1534 * The account number of the S3 bucket that is being imported from. If the bucket is owned by the requester this is optional.
1535 *
1536 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-s3bucketsource.html#cfn-dynamodb-table-s3bucketsource-s3bucketowner
1537 */
1538 readonly s3BucketOwner?: string;
1539 /**
1540 * The key prefix shared by all S3 Objects that are being imported.
1541 *
1542 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-s3bucketsource.html#cfn-dynamodb-table-s3bucketsource-s3keyprefix
1543 */
1544 readonly s3KeyPrefix?: string;
1545 }
1546}
1547export declare namespace CfnTable {
1548 /**
1549 * Represents the settings used to enable server-side encryption.
1550 *
1551 * @struct
1552 * @stability external
1553 *
1554 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html
1555 */
1556 interface SSESpecificationProperty {
1557 /**
1558 * The AWS KMS key that should be used for the AWS KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key `alias/aws/dynamodb` .
1559 *
1560 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html#cfn-dynamodb-table-ssespecification-kmsmasterkeyid
1561 */
1562 readonly kmsMasterKeyId?: string;
1563 /**
1564 * Indicates whether server-side encryption is done using an AWS managed key or an AWS owned key. If enabled (true), server-side encryption type is set to `KMS` and an AWS managed key is used ( AWS KMS charges apply). If disabled (false) or not specified, server-side encryption is set to AWS owned key.
1565 *
1566 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html#cfn-dynamodb-table-ssespecification-sseenabled
1567 */
1568 readonly sseEnabled: boolean | cdk.IResolvable;
1569 /**
1570 * Server-side encryption type. The only supported value is:
1571 *
1572 * - `KMS` - Server-side encryption that uses AWS Key Management Service . The key is stored in your account and is managed by AWS KMS ( AWS KMS charges apply).
1573 *
1574 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ssespecification.html#cfn-dynamodb-table-ssespecification-ssetype
1575 */
1576 readonly sseType?: string;
1577 }
1578}
1579export declare namespace CfnTable {
1580 /**
1581 * Represents the DynamoDB Streams configuration for a table in DynamoDB.
1582 *
1583 * @struct
1584 * @stability external
1585 *
1586 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-streamspecification.html
1587 */
1588 interface StreamSpecificationProperty {
1589 /**
1590 * When an item in the table is modified, `StreamViewType` determines what information is written to the stream for this table. Valid values for `StreamViewType` are:
1591 *
1592 * - `KEYS_ONLY` - Only the key attributes of the modified item are written to the stream.
1593 * - `NEW_IMAGE` - The entire item, as it appears after it was modified, is written to the stream.
1594 * - `OLD_IMAGE` - The entire item, as it appeared before it was modified, is written to the stream.
1595 * - `NEW_AND_OLD_IMAGES` - Both the new and the old item images of the item are written to the stream.
1596 *
1597 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-streamspecification.html#cfn-dynamodb-table-streamspecification-streamviewtype
1598 */
1599 readonly streamViewType: string;
1600 }
1601}
1602export declare namespace CfnTable {
1603 /**
1604 * Represents the settings used to enable or disable Time to Live (TTL) for the specified table.
1605 *
1606 * @struct
1607 * @stability external
1608 *
1609 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-timetolivespecification.html
1610 */
1611 interface TimeToLiveSpecificationProperty {
1612 /**
1613 * The name of the TTL attribute used to store the expiration time for items in the table.
1614 *
1615 * > - To update this property, you must first disable TTL and then enable TTL with the new attribute name.
1616 *
1617 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-timetolivespecification.html#cfn-dynamodb-table-timetolivespecification-attributename
1618 */
1619 readonly attributeName: string;
1620 /**
1621 * Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
1622 *
1623 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-timetolivespecification.html#cfn-dynamodb-table-timetolivespecification-enabled
1624 */
1625 readonly enabled: boolean | cdk.IResolvable;
1626 }
1627}