@aws-sdk/client-keyspaces 3.490.0 → 3.495.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.
Files changed (61) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/Keyspaces.js +1 -37
  3. package/dist-cjs/KeyspacesClient.js +1 -43
  4. package/dist-cjs/commands/CreateKeyspaceCommand.js +1 -28
  5. package/dist-cjs/commands/CreateTableCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteKeyspaceCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteTableCommand.js +1 -28
  8. package/dist-cjs/commands/GetKeyspaceCommand.js +1 -28
  9. package/dist-cjs/commands/GetTableAutoScalingSettingsCommand.js +1 -0
  10. package/dist-cjs/commands/GetTableCommand.js +1 -28
  11. package/dist-cjs/commands/ListKeyspacesCommand.js +1 -28
  12. package/dist-cjs/commands/ListTablesCommand.js +1 -28
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  14. package/dist-cjs/commands/RestoreTableCommand.js +1 -28
  15. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  16. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  17. package/dist-cjs/commands/UpdateTableCommand.js +1 -28
  18. package/dist-cjs/commands/index.js +1 -16
  19. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  20. package/dist-cjs/extensionConfiguration.js +1 -2
  21. package/dist-cjs/index.js +1647 -11
  22. package/dist-cjs/models/KeyspacesServiceException.js +1 -12
  23. package/dist-cjs/models/index.js +1 -4
  24. package/dist-cjs/models/models_0.js +1 -118
  25. package/dist-cjs/pagination/Interfaces.js +1 -2
  26. package/dist-cjs/pagination/ListKeyspacesPaginator.js +1 -7
  27. package/dist-cjs/pagination/ListTablesPaginator.js +1 -7
  28. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
  29. package/dist-cjs/pagination/index.js +1 -7
  30. package/dist-cjs/protocols/Aws_json1_0.js +1 -871
  31. package/dist-cjs/runtimeExtensions.js +1 -22
  32. package/dist-es/Keyspaces.js +2 -0
  33. package/dist-es/commands/GetTableAutoScalingSettingsCommand.js +24 -0
  34. package/dist-es/commands/index.js +1 -0
  35. package/dist-es/protocols/Aws_json1_0.js +194 -3
  36. package/dist-types/Keyspaces.d.ts +7 -0
  37. package/dist-types/KeyspacesClient.d.ts +3 -2
  38. package/dist-types/commands/CreateKeyspaceCommand.d.ts +2 -2
  39. package/dist-types/commands/CreateTableCommand.d.ts +49 -2
  40. package/dist-types/commands/DeleteKeyspaceCommand.d.ts +2 -2
  41. package/dist-types/commands/DeleteTableCommand.d.ts +2 -2
  42. package/dist-types/commands/GetKeyspaceCommand.d.ts +1 -1
  43. package/dist-types/commands/GetTableAutoScalingSettingsCommand.d.ts +142 -0
  44. package/dist-types/commands/GetTableCommand.d.ts +13 -1
  45. package/dist-types/commands/ListKeyspacesCommand.d.ts +1 -1
  46. package/dist-types/commands/ListTablesCommand.d.ts +1 -1
  47. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  48. package/dist-types/commands/RestoreTableCommand.d.ts +55 -9
  49. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  50. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  51. package/dist-types/commands/UpdateTableCommand.d.ts +50 -3
  52. package/dist-types/commands/index.d.ts +1 -0
  53. package/dist-types/models/models_0.d.ts +362 -2
  54. package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
  55. package/dist-types/ts3.4/Keyspaces.d.ts +17 -0
  56. package/dist-types/ts3.4/KeyspacesClient.d.ts +6 -0
  57. package/dist-types/ts3.4/commands/GetTableAutoScalingSettingsCommand.d.ts +30 -0
  58. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  59. package/dist-types/ts3.4/models/models_0.d.ts +51 -0
  60. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
  61. package/package.json +40 -40
@@ -96,6 +96,18 @@ declare const GetTableCommand_base: {
96
96
  * // clientSideTimestamps: { // ClientSideTimestamps
97
97
  * // status: "STRING_VALUE", // required
98
98
  * // },
99
+ * // replicaSpecifications: [ // ReplicaSpecificationSummaryList
100
+ * // { // ReplicaSpecificationSummary
101
+ * // region: "STRING_VALUE",
102
+ * // status: "STRING_VALUE",
103
+ * // capacitySpecification: {
104
+ * // throughputMode: "STRING_VALUE", // required
105
+ * // readCapacityUnits: Number("long"),
106
+ * // writeCapacityUnits: Number("long"),
107
+ * // lastUpdateToPayPerRequestTimestamp: new Date("TIMESTAMP"),
108
+ * // },
109
+ * // },
110
+ * // ],
99
111
  * // };
100
112
  *
101
113
  * ```
@@ -107,7 +119,7 @@ declare const GetTableCommand_base: {
107
119
  * @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
108
120
  *
109
121
  * @throws {@link AccessDeniedException} (client fault)
110
- * <p>You do not have sufficient access to perform this action. </p>
122
+ * <p>You don't have sufficient access permissions to perform this action. </p>
111
123
  *
112
124
  * @throws {@link InternalServerException} (server fault)
113
125
  * <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
@@ -62,7 +62,7 @@ declare const ListKeyspacesCommand_base: {
62
62
  * @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
63
63
  *
64
64
  * @throws {@link AccessDeniedException} (client fault)
65
- * <p>You do not have sufficient access to perform this action. </p>
65
+ * <p>You don't have sufficient access permissions to perform this action. </p>
66
66
  *
67
67
  * @throws {@link InternalServerException} (server fault)
68
68
  * <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
@@ -60,7 +60,7 @@ declare const ListTablesCommand_base: {
60
60
  * @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
61
61
  *
62
62
  * @throws {@link AccessDeniedException} (client fault)
63
- * <p>You do not have sufficient access to perform this action. </p>
63
+ * <p>You don't have sufficient access permissions to perform this action. </p>
64
64
  *
65
65
  * @throws {@link InternalServerException} (server fault)
66
66
  * <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
@@ -59,7 +59,7 @@ declare const ListTagsForResourceCommand_base: {
59
59
  * @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
60
60
  *
61
61
  * @throws {@link AccessDeniedException} (client fault)
62
- * <p>You do not have sufficient access to perform this action. </p>
62
+ * <p>You don't have sufficient access permissions to perform this action. </p>
63
63
  *
64
64
  * @throws {@link InternalServerException} (server fault)
65
65
  * <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
@@ -26,7 +26,7 @@ declare const RestoreTableCommand_base: {
26
26
  };
27
27
  /**
28
28
  * @public
29
- * <p>Restores the specified table to the specified point in time within the
29
+ * <p>Restores the table to the specified point in time within the
30
30
  * <code>earliest_restorable_timestamp</code> and the current time. For more information about restore points, see
31
31
  * <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery_HowItWorks.html#howitworks_backup_window">
32
32
  * Time window for PITR continuous backups</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
@@ -36,7 +36,7 @@ declare const RestoreTableCommand_base: {
36
36
  * based on the selected timestamp <code>(day:hour:minute:second)</code> to a new table. The Time to Live (TTL) settings
37
37
  * are also restored to the state based on the selected timestamp.</p>
38
38
  * <p>In addition to the table's schema, data, and TTL settings,
39
- * <code>RestoreTable</code> restores the capacity mode, encryption, and
39
+ * <code>RestoreTable</code> restores the capacity mode, auto scaling settings, encryption settings, and
40
40
  * point-in-time recovery settings from the source table.
41
41
  * Unlike the table's schema data and TTL settings, which are restored based on the selected timestamp,
42
42
  * these settings are always restored based on the table's settings as of the current time or when the table was deleted.</p>
@@ -47,7 +47,10 @@ declare const RestoreTableCommand_base: {
47
47
  * <p>Read/write capacity mode</p>
48
48
  * </li>
49
49
  * <li>
50
- * <p>Provisioned throughput capacity settings</p>
50
+ * <p>Provisioned throughput capacity units</p>
51
+ * </li>
52
+ * <li>
53
+ * <p>Auto scaling settings</p>
51
54
  * </li>
52
55
  * <li>
53
56
  * <p>Point-in-time (PITR) settings</p>
@@ -63,10 +66,6 @@ declare const RestoreTableCommand_base: {
63
66
  * the new table:</p>
64
67
  * <ul>
65
68
  * <li>
66
- * <p>Automatic scaling policies (for tables that use provisioned capacity
67
- * mode)</p>
68
- * </li>
69
- * <li>
70
69
  * <p>Identity and Access Management (IAM) policies</p>
71
70
  * </li>
72
71
  * <li>
@@ -103,6 +102,53 @@ declare const RestoreTableCommand_base: {
103
102
  * value: "STRING_VALUE", // required
104
103
  * },
105
104
  * ],
105
+ * autoScalingSpecification: { // AutoScalingSpecification
106
+ * writeCapacityAutoScaling: { // AutoScalingSettings
107
+ * autoScalingDisabled: true || false,
108
+ * minimumUnits: Number("long"),
109
+ * maximumUnits: Number("long"),
110
+ * scalingPolicy: { // AutoScalingPolicy
111
+ * targetTrackingScalingPolicyConfiguration: { // TargetTrackingScalingPolicyConfiguration
112
+ * disableScaleIn: true || false,
113
+ * scaleInCooldown: Number("int"),
114
+ * scaleOutCooldown: Number("int"),
115
+ * targetValue: Number("double"), // required
116
+ * },
117
+ * },
118
+ * },
119
+ * readCapacityAutoScaling: {
120
+ * autoScalingDisabled: true || false,
121
+ * minimumUnits: Number("long"),
122
+ * maximumUnits: Number("long"),
123
+ * scalingPolicy: {
124
+ * targetTrackingScalingPolicyConfiguration: {
125
+ * disableScaleIn: true || false,
126
+ * scaleInCooldown: Number("int"),
127
+ * scaleOutCooldown: Number("int"),
128
+ * targetValue: Number("double"), // required
129
+ * },
130
+ * },
131
+ * },
132
+ * },
133
+ * replicaSpecifications: [ // ReplicaSpecificationList
134
+ * { // ReplicaSpecification
135
+ * region: "STRING_VALUE", // required
136
+ * readCapacityUnits: Number("long"),
137
+ * readCapacityAutoScaling: {
138
+ * autoScalingDisabled: true || false,
139
+ * minimumUnits: Number("long"),
140
+ * maximumUnits: Number("long"),
141
+ * scalingPolicy: {
142
+ * targetTrackingScalingPolicyConfiguration: {
143
+ * disableScaleIn: true || false,
144
+ * scaleInCooldown: Number("int"),
145
+ * scaleOutCooldown: Number("int"),
146
+ * targetValue: Number("double"), // required
147
+ * },
148
+ * },
149
+ * },
150
+ * },
151
+ * ],
106
152
  * };
107
153
  * const command = new RestoreTableCommand(input);
108
154
  * const response = await client.send(command);
@@ -119,10 +165,10 @@ declare const RestoreTableCommand_base: {
119
165
  * @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
120
166
  *
121
167
  * @throws {@link AccessDeniedException} (client fault)
122
- * <p>You do not have sufficient access to perform this action. </p>
168
+ * <p>You don't have sufficient access permissions to perform this action. </p>
123
169
  *
124
170
  * @throws {@link ConflictException} (client fault)
125
- * <p>Amazon Keyspaces could not complete the requested action. This error may occur if you try to
171
+ * <p>Amazon Keyspaces couldn't complete the requested action. This error may occur if you try to
126
172
  * perform an action and the same or a different action is already
127
173
  * in progress, or if you try to create a resource that already exists. </p>
128
174
  *
@@ -61,7 +61,7 @@ declare const TagResourceCommand_base: {
61
61
  * @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
62
62
  *
63
63
  * @throws {@link AccessDeniedException} (client fault)
64
- * <p>You do not have sufficient access to perform this action. </p>
64
+ * <p>You don't have sufficient access permissions to perform this action. </p>
65
65
  *
66
66
  * @throws {@link InternalServerException} (server fault)
67
67
  * <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
@@ -55,10 +55,10 @@ declare const UntagResourceCommand_base: {
55
55
  * @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
56
56
  *
57
57
  * @throws {@link AccessDeniedException} (client fault)
58
- * <p>You do not have sufficient access to perform this action. </p>
58
+ * <p>You don't have sufficient access permissions to perform this action. </p>
59
59
  *
60
60
  * @throws {@link ConflictException} (client fault)
61
- * <p>Amazon Keyspaces could not complete the requested action. This error may occur if you try to
61
+ * <p>Amazon Keyspaces couldn't complete the requested action. This error may occur if you try to
62
62
  * perform an action and the same or a different action is already
63
63
  * in progress, or if you try to create a resource that already exists. </p>
64
64
  *
@@ -27,7 +27,7 @@ declare const UpdateTableCommand_base: {
27
27
  /**
28
28
  * @public
29
29
  * <p>Adds new columns to the table or updates one of the table's settings, for example
30
- * capacity mode, encryption, point-in-time recovery, or ttl settings.
30
+ * capacity mode, auto scaling, encryption, point-in-time recovery, or ttl settings.
31
31
  * Note that you can only update one specific table setting per update operation.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
@@ -63,6 +63,53 @@ declare const UpdateTableCommand_base: {
63
63
  * clientSideTimestamps: { // ClientSideTimestamps
64
64
  * status: "STRING_VALUE", // required
65
65
  * },
66
+ * autoScalingSpecification: { // AutoScalingSpecification
67
+ * writeCapacityAutoScaling: { // AutoScalingSettings
68
+ * autoScalingDisabled: true || false,
69
+ * minimumUnits: Number("long"),
70
+ * maximumUnits: Number("long"),
71
+ * scalingPolicy: { // AutoScalingPolicy
72
+ * targetTrackingScalingPolicyConfiguration: { // TargetTrackingScalingPolicyConfiguration
73
+ * disableScaleIn: true || false,
74
+ * scaleInCooldown: Number("int"),
75
+ * scaleOutCooldown: Number("int"),
76
+ * targetValue: Number("double"), // required
77
+ * },
78
+ * },
79
+ * },
80
+ * readCapacityAutoScaling: {
81
+ * autoScalingDisabled: true || false,
82
+ * minimumUnits: Number("long"),
83
+ * maximumUnits: Number("long"),
84
+ * scalingPolicy: {
85
+ * targetTrackingScalingPolicyConfiguration: {
86
+ * disableScaleIn: true || false,
87
+ * scaleInCooldown: Number("int"),
88
+ * scaleOutCooldown: Number("int"),
89
+ * targetValue: Number("double"), // required
90
+ * },
91
+ * },
92
+ * },
93
+ * },
94
+ * replicaSpecifications: [ // ReplicaSpecificationList
95
+ * { // ReplicaSpecification
96
+ * region: "STRING_VALUE", // required
97
+ * readCapacityUnits: Number("long"),
98
+ * readCapacityAutoScaling: {
99
+ * autoScalingDisabled: true || false,
100
+ * minimumUnits: Number("long"),
101
+ * maximumUnits: Number("long"),
102
+ * scalingPolicy: {
103
+ * targetTrackingScalingPolicyConfiguration: {
104
+ * disableScaleIn: true || false,
105
+ * scaleInCooldown: Number("int"),
106
+ * scaleOutCooldown: Number("int"),
107
+ * targetValue: Number("double"), // required
108
+ * },
109
+ * },
110
+ * },
111
+ * },
112
+ * ],
66
113
  * };
67
114
  * const command = new UpdateTableCommand(input);
68
115
  * const response = await client.send(command);
@@ -79,10 +126,10 @@ declare const UpdateTableCommand_base: {
79
126
  * @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
80
127
  *
81
128
  * @throws {@link AccessDeniedException} (client fault)
82
- * <p>You do not have sufficient access to perform this action. </p>
129
+ * <p>You don't have sufficient access permissions to perform this action. </p>
83
130
  *
84
131
  * @throws {@link ConflictException} (client fault)
85
- * <p>Amazon Keyspaces could not complete the requested action. This error may occur if you try to
132
+ * <p>Amazon Keyspaces couldn't complete the requested action. This error may occur if you try to
86
133
  * perform an action and the same or a different action is already
87
134
  * in progress, or if you try to create a resource that already exists. </p>
88
135
  *
@@ -3,6 +3,7 @@ export * from "./CreateTableCommand";
3
3
  export * from "./DeleteKeyspaceCommand";
4
4
  export * from "./DeleteTableCommand";
5
5
  export * from "./GetKeyspaceCommand";
6
+ export * from "./GetTableAutoScalingSettingsCommand";
6
7
  export * from "./GetTableCommand";
7
8
  export * from "./ListKeyspacesCommand";
8
9
  export * from "./ListTablesCommand";