aws-sdk 2.1610.0 → 2.1612.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/core.js CHANGED
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.1610.0',
23
+ VERSION: '2.1612.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -655,6 +655,10 @@ export namespace DocumentClient {
655
655
  * Represents the provisioned throughput settings for the specified global secondary index. For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
656
656
  */
657
657
  ProvisionedThroughput?: ProvisionedThroughput;
658
+ /**
659
+ * The maximum number of read and write units for the global secondary index being created. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
660
+ */
661
+ OnDemandThroughput?: OnDemandThroughput;
658
662
  }
659
663
  export interface CreateGlobalTableInput {
660
664
  /**
@@ -691,6 +695,10 @@ export namespace DocumentClient {
691
695
  * Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.
692
696
  */
693
697
  ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
698
+ /**
699
+ * The maximum on-demand throughput settings for the specified replica table being created. You can only modify MaxReadRequestUnits, because you can't modify MaxWriteRequestUnits for individual replica tables.
700
+ */
701
+ OnDemandThroughputOverride?: OnDemandThroughputOverride;
694
702
  /**
695
703
  * Replica-specific global secondary index settings.
696
704
  */
@@ -750,9 +758,13 @@ export namespace DocumentClient {
750
758
  */
751
759
  DeletionProtectionEnabled?: DeletionProtectionEnabled;
752
760
  /**
753
- * An Amazon Web Services resource-based policy document in JSON format that will be attached to the table. When you attach a resource-based policy while creating a table, the policy creation is strongly consistent. The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. You can’t request an increase for this limit. For a full list of all considerations that you should keep in mind while attaching a resource-based policy, see Resource-based policy considerations.
761
+ * An Amazon Web Services resource-based policy document in JSON format that will be attached to the table. When you attach a resource-based policy while creating a table, the policy application is strongly consistent. The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that apply for resource-based policies, see Resource-based policy considerations.
754
762
  */
755
763
  ResourcePolicy?: ResourcePolicy;
764
+ /**
765
+ * Sets the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
766
+ */
767
+ OnDemandThroughput?: OnDemandThroughput;
756
768
  }
757
769
  export interface CreateTableOutput {
758
770
  /**
@@ -905,7 +917,7 @@ export namespace DocumentClient {
905
917
  }
906
918
  export interface DeleteResourcePolicyOutput {
907
919
  /**
908
- * A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic. This value will be empty if you make a request against a resource without a policy.
920
+ * A unique string that represents the revision ID of the policy. If you're comparing revision IDs, make sure to always use string comparison logic. This value will be empty if you make a request against a resource without a policy.
909
921
  */
910
922
  RevisionId?: PolicyRevisionId;
911
923
  }
@@ -1470,7 +1482,7 @@ export namespace DocumentClient {
1470
1482
  */
1471
1483
  Policy?: ResourcePolicy;
1472
1484
  /**
1473
- * A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
1485
+ * A unique string that represents the revision ID of the policy. If you're comparing revision IDs, make sure to always use string comparison logic.
1474
1486
  */
1475
1487
  RevisionId?: PolicyRevisionId;
1476
1488
  }
@@ -1491,6 +1503,10 @@ export namespace DocumentClient {
1491
1503
  * Represents the provisioned throughput settings for the specified global secondary index. For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
1492
1504
  */
1493
1505
  ProvisionedThroughput?: ProvisionedThroughput;
1506
+ /**
1507
+ * The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
1508
+ */
1509
+ OnDemandThroughput?: OnDemandThroughput;
1494
1510
  }
1495
1511
  export interface GlobalSecondaryIndexAutoScalingUpdate {
1496
1512
  /**
@@ -1537,6 +1553,10 @@ export namespace DocumentClient {
1537
1553
  * The Amazon Resource Name (ARN) that uniquely identifies the index.
1538
1554
  */
1539
1555
  IndexArn?: String;
1556
+ /**
1557
+ * The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
1558
+ */
1559
+ OnDemandThroughput?: OnDemandThroughput;
1540
1560
  }
1541
1561
  export type GlobalSecondaryIndexDescriptionList = GlobalSecondaryIndexDescription[];
1542
1562
  export interface GlobalSecondaryIndexInfo {
@@ -1556,6 +1576,7 @@ export namespace DocumentClient {
1556
1576
  * Represents the provisioned throughput settings for the specified global secondary index.
1557
1577
  */
1558
1578
  ProvisionedThroughput?: ProvisionedThroughput;
1579
+ OnDemandThroughput?: OnDemandThroughput;
1559
1580
  }
1560
1581
  export type GlobalSecondaryIndexList = GlobalSecondaryIndex[];
1561
1582
  export interface GlobalSecondaryIndexUpdate {
@@ -2162,6 +2183,22 @@ export namespace DocumentClient {
2162
2183
  export type NullAttributeValue = boolean;
2163
2184
  export type NumberAttributeValue = string;
2164
2185
  export type NumberSetAttributeValue = NumberAttributeValue[];
2186
+ export interface OnDemandThroughput {
2187
+ /**
2188
+ * Maximum number of read request units for the specified table. To specify a maximum OnDemandThroughput on your table, set the value of MaxReadRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxReadRequestUnits to -1.
2189
+ */
2190
+ MaxReadRequestUnits?: LongObject;
2191
+ /**
2192
+ * Maximum number of write request units for the specified table. To specify a maximum OnDemandThroughput on your table, set the value of MaxWriteRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxWriteRequestUnits to -1.
2193
+ */
2194
+ MaxWriteRequestUnits?: LongObject;
2195
+ }
2196
+ export interface OnDemandThroughputOverride {
2197
+ /**
2198
+ * Maximum number of read request units for the specified replica table.
2199
+ */
2200
+ MaxReadRequestUnits?: LongObject;
2201
+ }
2165
2202
  export interface ParameterizedStatement {
2166
2203
  /**
2167
2204
  * A PartiQL statement that uses parameters.
@@ -2353,11 +2390,11 @@ export namespace DocumentClient {
2353
2390
  */
2354
2391
  ResourceArn: ResourceArnString;
2355
2392
  /**
2356
- * An Amazon Web Services resource-based policy document in JSON format. The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that you should keep in mind while attaching a resource-based policy, see Resource-based policy considerations.
2393
+ * An Amazon Web Services resource-based policy document in JSON format. The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. Within a resource-based policy, if the action for a DynamoDB service-linked role (SLR) to replicate data for a global table is denied, adding or deleting a replica will fail with an error. For a full list of all considerations that apply while attaching a resource-based policy, see Resource-based policy considerations.
2357
2394
  */
2358
2395
  Policy: ResourcePolicy;
2359
2396
  /**
2360
- * A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy. When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, your request will be rejected with a PolicyNotFoundException. To conditionally put a policy when no policy exists for the resource, specify NO_POLICY for the revision ID.
2397
+ * A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy. When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, your request will be rejected with a PolicyNotFoundException. To conditionally attach a policy when no policy exists for the resource, specify NO_POLICY for the revision ID.
2361
2398
  */
2362
2399
  ExpectedRevisionId?: PolicyRevisionId;
2363
2400
  /**
@@ -2367,7 +2404,7 @@ export namespace DocumentClient {
2367
2404
  }
2368
2405
  export interface PutResourcePolicyOutput {
2369
2406
  /**
2370
- * A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
2407
+ * A unique string that represents the revision ID of the policy. If you're comparing revision IDs, make sure to always use string comparison logic.
2371
2408
  */
2372
2409
  RevisionId?: PolicyRevisionId;
2373
2410
  }
@@ -2521,6 +2558,10 @@ export namespace DocumentClient {
2521
2558
  * Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.
2522
2559
  */
2523
2560
  ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
2561
+ /**
2562
+ * Overrides the maximum on-demand throughput settings for the specified replica table.
2563
+ */
2564
+ OnDemandThroughputOverride?: OnDemandThroughputOverride;
2524
2565
  /**
2525
2566
  * Replica-specific global secondary index settings.
2526
2567
  */
@@ -2541,6 +2582,10 @@ export namespace DocumentClient {
2541
2582
  * Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.
2542
2583
  */
2543
2584
  ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
2585
+ /**
2586
+ * Overrides the maximum on-demand throughput settings for the specified global secondary index in the specified replica table.
2587
+ */
2588
+ OnDemandThroughputOverride?: OnDemandThroughputOverride;
2544
2589
  }
2545
2590
  export interface ReplicaGlobalSecondaryIndexAutoScalingDescription {
2546
2591
  /**
@@ -2572,6 +2617,10 @@ export namespace DocumentClient {
2572
2617
  * If not described, uses the source table GSI's read capacity settings.
2573
2618
  */
2574
2619
  ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
2620
+ /**
2621
+ * Overrides the maximum on-demand throughput for the specified global secondary index in the specified replica table.
2622
+ */
2623
+ OnDemandThroughputOverride?: OnDemandThroughputOverride;
2575
2624
  }
2576
2625
  export type ReplicaGlobalSecondaryIndexDescriptionList = ReplicaGlobalSecondaryIndexDescription[];
2577
2626
  export type ReplicaGlobalSecondaryIndexList = ReplicaGlobalSecondaryIndex[];
@@ -2752,6 +2801,7 @@ export namespace DocumentClient {
2752
2801
  * Provisioned throughput settings for the restored table.
2753
2802
  */
2754
2803
  ProvisionedThroughputOverride?: ProvisionedThroughput;
2804
+ OnDemandThroughputOverride?: OnDemandThroughput;
2755
2805
  /**
2756
2806
  * The new server-side encryption settings for the restored table.
2757
2807
  */
@@ -2800,6 +2850,7 @@ export namespace DocumentClient {
2800
2850
  * Provisioned throughput settings for the restored table.
2801
2851
  */
2802
2852
  ProvisionedThroughputOverride?: ProvisionedThroughput;
2853
+ OnDemandThroughputOverride?: OnDemandThroughput;
2803
2854
  /**
2804
2855
  * The new server-side encryption settings for the restored table.
2805
2856
  */
@@ -2988,6 +3039,7 @@ export namespace DocumentClient {
2988
3039
  * Read IOPs and Write IOPS on the table when the backup was created.
2989
3040
  */
2990
3041
  ProvisionedThroughput: ProvisionedThroughput;
3042
+ OnDemandThroughput?: OnDemandThroughput;
2991
3043
  /**
2992
3044
  * Number of items in the table. Note that this is an approximate value.
2993
3045
  */
@@ -3080,6 +3132,7 @@ export namespace DocumentClient {
3080
3132
  */
3081
3133
  BillingMode?: BillingMode;
3082
3134
  ProvisionedThroughput?: ProvisionedThroughput;
3135
+ OnDemandThroughput?: OnDemandThroughput;
3083
3136
  SSESpecification?: SSESpecification;
3084
3137
  /**
3085
3138
  * The Global Secondary Indexes (GSI) of the table to be created as part of the import operation.
@@ -3179,6 +3232,10 @@ export namespace DocumentClient {
3179
3232
  * Indicates whether deletion protection is enabled (true) or disabled (false) on the table.
3180
3233
  */
3181
3234
  DeletionProtectionEnabled?: DeletionProtectionEnabled;
3235
+ /**
3236
+ * The maximum number of read and write units for the specified on-demand table. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
3237
+ */
3238
+ OnDemandThroughput?: OnDemandThroughput;
3182
3239
  }
3183
3240
  export type TableId = string;
3184
3241
  export type TableName = string;
@@ -3397,7 +3454,11 @@ export namespace DocumentClient {
3397
3454
  /**
3398
3455
  * Represents the provisioned throughput settings for the specified global secondary index. For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
3399
3456
  */
3400
- ProvisionedThroughput: ProvisionedThroughput;
3457
+ ProvisionedThroughput?: ProvisionedThroughput;
3458
+ /**
3459
+ * Updates the maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
3460
+ */
3461
+ OnDemandThroughput?: OnDemandThroughput;
3401
3462
  }
3402
3463
  export interface UpdateGlobalTableInput {
3403
3464
  /**
@@ -3567,6 +3628,10 @@ export namespace DocumentClient {
3567
3628
  * Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.
3568
3629
  */
3569
3630
  ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
3631
+ /**
3632
+ * Overrides the maximum on-demand throughput for the replica table.
3633
+ */
3634
+ OnDemandThroughputOverride?: OnDemandThroughputOverride;
3570
3635
  /**
3571
3636
  * Replica-specific global secondary index settings.
3572
3637
  */
@@ -3617,6 +3682,10 @@ export namespace DocumentClient {
3617
3682
  * Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
3618
3683
  */
3619
3684
  DeletionProtectionEnabled?: DeletionProtectionEnabled;
3685
+ /**
3686
+ * Updates the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify MaxReadRequestUnits, MaxWriteRequestUnits, or both.
3687
+ */
3688
+ OnDemandThroughput?: OnDemandThroughput;
3620
3689
  }
3621
3690
  export interface UpdateTableOutput {
3622
3691
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.1610.0",
4
+ "version": "2.1612.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",