@aws-sdk/client-rds 3.1153.0 → 3.1154.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 (64) hide show
  1. package/README.md +28 -0
  2. package/dist-cjs/index.js +305 -53
  3. package/dist-es/RDS.js +10 -0
  4. package/dist-es/commands/CancelDBCapacityReservationCommand.js +4 -0
  5. package/dist-es/commands/CreateDBCapacityReservationCommand.js +4 -0
  6. package/dist-es/commands/DescribeDBCapacityReservationsCommand.js +4 -0
  7. package/dist-es/commands/ModifyDBCapacityReservationCommand.js +4 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/enums.js +15 -0
  10. package/dist-es/models/errors.js +65 -13
  11. package/dist-es/pagination/DescribeDBCapacityReservationsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/schemas/schemas_0.js +176 -40
  14. package/dist-types/RDS.d.ts +36 -0
  15. package/dist-types/RDSClient.d.ts +6 -2
  16. package/dist-types/commands/AddTagsToResourceCommand.d.ts +3 -0
  17. package/dist-types/commands/CancelDBCapacityReservationCommand.d.ts +140 -0
  18. package/dist-types/commands/CreateDBCapacityReservationCommand.d.ts +169 -0
  19. package/dist-types/commands/CreateDBInstanceCommand.d.ts +9 -0
  20. package/dist-types/commands/CreateDBInstanceReadReplicaCommand.d.ts +9 -0
  21. package/dist-types/commands/DeleteDBInstanceCommand.d.ts +2 -0
  22. package/dist-types/commands/DescribeDBCapacityReservationsCommand.d.ts +199 -0
  23. package/dist-types/commands/DescribeDBInstancesCommand.d.ts +2 -0
  24. package/dist-types/commands/DescribeReservedDBInstancesCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeReservedDBInstancesOfferingsCommand.d.ts +1 -1
  26. package/dist-types/commands/DescribeServerlessV2PlatformVersionsCommand.d.ts +1 -2
  27. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
  28. package/dist-types/commands/ModifyDBCapacityReservationCommand.d.ts +130 -0
  29. package/dist-types/commands/ModifyDBInstanceCommand.d.ts +9 -0
  30. package/dist-types/commands/PromoteReadReplicaCommand.d.ts +2 -0
  31. package/dist-types/commands/RebootDBInstanceCommand.d.ts +2 -0
  32. package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +3 -0
  33. package/dist-types/commands/RestoreDBInstanceFromDBSnapshotCommand.d.ts +9 -0
  34. package/dist-types/commands/RestoreDBInstanceFromS3Command.d.ts +9 -0
  35. package/dist-types/commands/RestoreDBInstanceToPointInTimeCommand.d.ts +9 -0
  36. package/dist-types/commands/StartDBInstanceCommand.d.ts +9 -0
  37. package/dist-types/commands/StopDBInstanceCommand.d.ts +6 -0
  38. package/dist-types/commands/SwitchoverReadReplicaCommand.d.ts +2 -0
  39. package/dist-types/commands/index.d.ts +4 -0
  40. package/dist-types/models/enums.d.ts +31 -0
  41. package/dist-types/models/errors.d.ts +65 -13
  42. package/dist-types/models/models_0.d.ts +258 -384
  43. package/dist-types/models/models_1.d.ts +446 -2
  44. package/dist-types/pagination/DescribeDBCapacityReservationsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/index.d.ts +1 -0
  46. package/dist-types/schemas/schemas_0.d.ts +19 -0
  47. package/dist-types/ts3.4/RDS.d.ts +76 -0
  48. package/dist-types/ts3.4/RDSClient.d.ts +24 -0
  49. package/dist-types/ts3.4/commands/CancelDBCapacityReservationCommand.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/CreateDBCapacityReservationCommand.d.ts +42 -0
  51. package/dist-types/ts3.4/commands/DescribeDBCapacityReservationsCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/DescribeReservedDBInstancesCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/DescribeReservedDBInstancesOfferingsCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/DescribeServerlessV2PlatformVersionsCommand.d.ts +4 -2
  55. package/dist-types/ts3.4/commands/ModifyDBCapacityReservationCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  57. package/dist-types/ts3.4/models/enums.d.ts +18 -0
  58. package/dist-types/ts3.4/models/errors.d.ts +32 -6
  59. package/dist-types/ts3.4/models/models_0.d.ts +60 -83
  60. package/dist-types/ts3.4/models/models_1.d.ts +101 -2
  61. package/dist-types/ts3.4/pagination/DescribeDBCapacityReservationsPaginator.d.ts +11 -0
  62. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  63. package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
  64. package/package.json +1 -1
package/dist-es/RDS.js CHANGED
@@ -6,6 +6,7 @@ import { AddTagsToResourceCommand, } from "./commands/AddTagsToResourceCommand";
6
6
  import { ApplyPendingMaintenanceActionCommand, } from "./commands/ApplyPendingMaintenanceActionCommand";
7
7
  import { AuthorizeDBSecurityGroupIngressCommand, } from "./commands/AuthorizeDBSecurityGroupIngressCommand";
8
8
  import { BacktrackDBClusterCommand, } from "./commands/BacktrackDBClusterCommand";
9
+ import { CancelDBCapacityReservationCommand, } from "./commands/CancelDBCapacityReservationCommand";
9
10
  import { CancelExportTaskCommand, } from "./commands/CancelExportTaskCommand";
10
11
  import { CopyDBClusterParameterGroupCommand, } from "./commands/CopyDBClusterParameterGroupCommand";
11
12
  import { CopyDBClusterSnapshotCommand, } from "./commands/CopyDBClusterSnapshotCommand";
@@ -14,6 +15,7 @@ import { CopyDBSnapshotCommand, } from "./commands/CopyDBSnapshotCommand";
14
15
  import { CopyOptionGroupCommand, } from "./commands/CopyOptionGroupCommand";
15
16
  import { CreateBlueGreenDeploymentCommand, } from "./commands/CreateBlueGreenDeploymentCommand";
16
17
  import { CreateCustomDBEngineVersionCommand, } from "./commands/CreateCustomDBEngineVersionCommand";
18
+ import { CreateDBCapacityReservationCommand, } from "./commands/CreateDBCapacityReservationCommand";
17
19
  import { CreateDBClusterCommand, } from "./commands/CreateDBClusterCommand";
18
20
  import { CreateDBClusterEndpointCommand, } from "./commands/CreateDBClusterEndpointCommand";
19
21
  import { CreateDBClusterParameterGroupCommand, } from "./commands/CreateDBClusterParameterGroupCommand";
@@ -57,6 +59,7 @@ import { DeregisterDBProxyTargetsCommand, } from "./commands/DeregisterDBProxyTa
57
59
  import { DescribeAccountAttributesCommand, } from "./commands/DescribeAccountAttributesCommand";
58
60
  import { DescribeBlueGreenDeploymentsCommand, } from "./commands/DescribeBlueGreenDeploymentsCommand";
59
61
  import { DescribeCertificatesCommand, } from "./commands/DescribeCertificatesCommand";
62
+ import { DescribeDBCapacityReservationsCommand, } from "./commands/DescribeDBCapacityReservationsCommand";
60
63
  import { DescribeDBClusterAutomatedBackupsCommand, } from "./commands/DescribeDBClusterAutomatedBackupsCommand";
61
64
  import { DescribeDBClusterBacktracksCommand, } from "./commands/DescribeDBClusterBacktracksCommand";
62
65
  import { DescribeDBClusterEndpointsCommand, } from "./commands/DescribeDBClusterEndpointsCommand";
@@ -111,6 +114,7 @@ import { ModifyActivityStreamCommand, } from "./commands/ModifyActivityStreamCom
111
114
  import { ModifyCertificatesCommand, } from "./commands/ModifyCertificatesCommand";
112
115
  import { ModifyCurrentDBClusterCapacityCommand, } from "./commands/ModifyCurrentDBClusterCapacityCommand";
113
116
  import { ModifyCustomDBEngineVersionCommand, } from "./commands/ModifyCustomDBEngineVersionCommand";
117
+ import { ModifyDBCapacityReservationCommand, } from "./commands/ModifyDBCapacityReservationCommand";
114
118
  import { ModifyDBClusterCommand, } from "./commands/ModifyDBClusterCommand";
115
119
  import { ModifyDBClusterEndpointCommand, } from "./commands/ModifyDBClusterEndpointCommand";
116
120
  import { ModifyDBClusterParameterGroupCommand, } from "./commands/ModifyDBClusterParameterGroupCommand";
@@ -165,6 +169,7 @@ import { SwitchoverGlobalClusterCommand, } from "./commands/SwitchoverGlobalClus
165
169
  import { SwitchoverReadReplicaCommand, } from "./commands/SwitchoverReadReplicaCommand";
166
170
  import { paginateDescribeBlueGreenDeployments } from "./pagination/DescribeBlueGreenDeploymentsPaginator";
167
171
  import { paginateDescribeCertificates } from "./pagination/DescribeCertificatesPaginator";
172
+ import { paginateDescribeDBCapacityReservations } from "./pagination/DescribeDBCapacityReservationsPaginator";
168
173
  import { paginateDescribeDBClusterAutomatedBackups } from "./pagination/DescribeDBClusterAutomatedBackupsPaginator";
169
174
  import { paginateDescribeDBClusterBacktracks } from "./pagination/DescribeDBClusterBacktracksPaginator";
170
175
  import { paginateDescribeDBClusterEndpoints } from "./pagination/DescribeDBClusterEndpointsPaginator";
@@ -224,6 +229,7 @@ const commands = {
224
229
  ApplyPendingMaintenanceActionCommand,
225
230
  AuthorizeDBSecurityGroupIngressCommand,
226
231
  BacktrackDBClusterCommand,
232
+ CancelDBCapacityReservationCommand,
227
233
  CancelExportTaskCommand,
228
234
  CopyDBClusterParameterGroupCommand,
229
235
  CopyDBClusterSnapshotCommand,
@@ -232,6 +238,7 @@ const commands = {
232
238
  CopyOptionGroupCommand,
233
239
  CreateBlueGreenDeploymentCommand,
234
240
  CreateCustomDBEngineVersionCommand,
241
+ CreateDBCapacityReservationCommand,
235
242
  CreateDBClusterCommand,
236
243
  CreateDBClusterEndpointCommand,
237
244
  CreateDBClusterParameterGroupCommand,
@@ -275,6 +282,7 @@ const commands = {
275
282
  DescribeAccountAttributesCommand,
276
283
  DescribeBlueGreenDeploymentsCommand,
277
284
  DescribeCertificatesCommand,
285
+ DescribeDBCapacityReservationsCommand,
278
286
  DescribeDBClusterAutomatedBackupsCommand,
279
287
  DescribeDBClusterBacktracksCommand,
280
288
  DescribeDBClusterEndpointsCommand,
@@ -329,6 +337,7 @@ const commands = {
329
337
  ModifyCertificatesCommand,
330
338
  ModifyCurrentDBClusterCapacityCommand,
331
339
  ModifyCustomDBEngineVersionCommand,
340
+ ModifyDBCapacityReservationCommand,
332
341
  ModifyDBClusterCommand,
333
342
  ModifyDBClusterEndpointCommand,
334
343
  ModifyDBClusterParameterGroupCommand,
@@ -385,6 +394,7 @@ const commands = {
385
394
  const paginators = {
386
395
  paginateDescribeBlueGreenDeployments,
387
396
  paginateDescribeCertificates,
397
+ paginateDescribeDBCapacityReservations,
388
398
  paginateDescribeDBClusterAutomatedBackups,
389
399
  paginateDescribeDBClusterBacktracks,
390
400
  paginateDescribeDBClusterEndpoints,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CancelDBCapacityReservation$ } from "../schemas/schemas_0";
3
+ export class CancelDBCapacityReservationCommand extends command(_ep0, _mw0, "CancelDBCapacityReservation", CancelDBCapacityReservation$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateDBCapacityReservation$ } from "../schemas/schemas_0";
3
+ export class CreateDBCapacityReservationCommand extends command(_ep0, _mw0, "CreateDBCapacityReservation", CreateDBCapacityReservation$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DescribeDBCapacityReservations$ } from "../schemas/schemas_0";
3
+ export class DescribeDBCapacityReservationsCommand extends command(_ep0, _mw0, "DescribeDBCapacityReservations", DescribeDBCapacityReservations$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ModifyDBCapacityReservation$ } from "../schemas/schemas_0";
3
+ export class ModifyDBCapacityReservationCommand extends command(_ep0, _mw0, "ModifyDBCapacityReservation", ModifyDBCapacityReservation$) {
4
+ }
@@ -5,6 +5,7 @@ export * from "./AddTagsToResourceCommand";
5
5
  export * from "./ApplyPendingMaintenanceActionCommand";
6
6
  export * from "./AuthorizeDBSecurityGroupIngressCommand";
7
7
  export * from "./BacktrackDBClusterCommand";
8
+ export * from "./CancelDBCapacityReservationCommand";
8
9
  export * from "./CancelExportTaskCommand";
9
10
  export * from "./CopyDBClusterParameterGroupCommand";
10
11
  export * from "./CopyDBClusterSnapshotCommand";
@@ -13,6 +14,7 @@ export * from "./CopyDBSnapshotCommand";
13
14
  export * from "./CopyOptionGroupCommand";
14
15
  export * from "./CreateBlueGreenDeploymentCommand";
15
16
  export * from "./CreateCustomDBEngineVersionCommand";
17
+ export * from "./CreateDBCapacityReservationCommand";
16
18
  export * from "./CreateDBClusterCommand";
17
19
  export * from "./CreateDBClusterEndpointCommand";
18
20
  export * from "./CreateDBClusterParameterGroupCommand";
@@ -56,6 +58,7 @@ export * from "./DeregisterDBProxyTargetsCommand";
56
58
  export * from "./DescribeAccountAttributesCommand";
57
59
  export * from "./DescribeBlueGreenDeploymentsCommand";
58
60
  export * from "./DescribeCertificatesCommand";
61
+ export * from "./DescribeDBCapacityReservationsCommand";
59
62
  export * from "./DescribeDBClusterAutomatedBackupsCommand";
60
63
  export * from "./DescribeDBClusterBacktracksCommand";
61
64
  export * from "./DescribeDBClusterEndpointsCommand";
@@ -110,6 +113,7 @@ export * from "./ModifyActivityStreamCommand";
110
113
  export * from "./ModifyCertificatesCommand";
111
114
  export * from "./ModifyCurrentDBClusterCapacityCommand";
112
115
  export * from "./ModifyCustomDBEngineVersionCommand";
116
+ export * from "./ModifyDBCapacityReservationCommand";
113
117
  export * from "./ModifyDBClusterCommand";
114
118
  export * from "./ModifyDBClusterEndpointCommand";
115
119
  export * from "./ModifyDBClusterParameterGroupCommand";
@@ -14,6 +14,17 @@ export const ActivityStreamStatus = {
14
14
  stopped: "stopped",
15
15
  stopping: "stopping",
16
16
  };
17
+ export const DBCapacityReservationState = {
18
+ active: "active",
19
+ assessing: "assessing",
20
+ cancelled: "cancelled",
21
+ delayed: "delayed",
22
+ expired: "expired",
23
+ failed: "failed",
24
+ pending: "pending",
25
+ scheduled: "scheduled",
26
+ unsupported: "unsupported",
27
+ };
17
28
  export const ExportSourceType = {
18
29
  CLUSTER: "CLUSTER",
19
30
  SNAPSHOT: "SNAPSHOT",
@@ -200,3 +211,7 @@ export const CustomEngineVersionStatus = {
200
211
  inactive: "inactive",
201
212
  inactive_except_restore: "inactive-except-restore",
202
213
  };
214
+ export const EndDateType = {
215
+ limited: "limited",
216
+ unlimited: "unlimited",
217
+ };
@@ -142,6 +142,19 @@ export class BlueGreenDeploymentNotFoundFault extends __BaseException {
142
142
  Object.setPrototypeOf(this, BlueGreenDeploymentNotFoundFault.prototype);
143
143
  }
144
144
  }
145
+ export class DBCapacityReservationNotFoundFault extends __BaseException {
146
+ static shapeId = "com.amazonaws.rds#DBCapacityReservationNotFoundFault";
147
+ name = "DBCapacityReservationNotFoundFault";
148
+ $fault = "client";
149
+ constructor(opts) {
150
+ super({
151
+ name: "DBCapacityReservationNotFoundFault",
152
+ $fault: "client",
153
+ ...opts,
154
+ });
155
+ Object.setPrototypeOf(this, DBCapacityReservationNotFoundFault.prototype);
156
+ }
157
+ }
145
158
  export class DBProxyEndpointNotFoundFault extends __BaseException {
146
159
  static shapeId = "com.amazonaws.rds#DBProxyEndpointNotFoundFault";
147
160
  name = "DBProxyEndpointNotFoundFault";
@@ -324,6 +337,19 @@ export class InvalidDBSecurityGroupStateFault extends __BaseException {
324
337
  Object.setPrototypeOf(this, InvalidDBSecurityGroupStateFault.prototype);
325
338
  }
326
339
  }
340
+ export class InvalidDBCapacityReservationStateFault extends __BaseException {
341
+ static shapeId = "com.amazonaws.rds#InvalidDBCapacityReservationStateFault";
342
+ name = "InvalidDBCapacityReservationStateFault";
343
+ $fault = "client";
344
+ constructor(opts) {
345
+ super({
346
+ name: "InvalidDBCapacityReservationStateFault",
347
+ $fault: "client",
348
+ ...opts,
349
+ });
350
+ Object.setPrototypeOf(this, InvalidDBCapacityReservationStateFault.prototype);
351
+ }
352
+ }
327
353
  export class ExportTaskNotFoundFault extends __BaseException {
328
354
  static shapeId = "com.amazonaws.rds#ExportTaskNotFoundFault";
329
355
  name = "ExportTaskNotFoundFault";
@@ -701,6 +727,45 @@ export class InvalidCustomDBEngineVersionStateFault extends __BaseException {
701
727
  Object.setPrototypeOf(this, InvalidCustomDBEngineVersionStateFault.prototype);
702
728
  }
703
729
  }
730
+ export class DBCapacityReservationAlreadyExistsFault extends __BaseException {
731
+ static shapeId = "com.amazonaws.rds#DBCapacityReservationAlreadyExistsFault";
732
+ name = "DBCapacityReservationAlreadyExistsFault";
733
+ $fault = "client";
734
+ constructor(opts) {
735
+ super({
736
+ name: "DBCapacityReservationAlreadyExistsFault",
737
+ $fault: "client",
738
+ ...opts,
739
+ });
740
+ Object.setPrototypeOf(this, DBCapacityReservationAlreadyExistsFault.prototype);
741
+ }
742
+ }
743
+ export class DBCapacityReservationUnsupportedFault extends __BaseException {
744
+ static shapeId = "com.amazonaws.rds#DBCapacityReservationUnsupportedFault";
745
+ name = "DBCapacityReservationUnsupportedFault";
746
+ $fault = "client";
747
+ constructor(opts) {
748
+ super({
749
+ name: "DBCapacityReservationUnsupportedFault",
750
+ $fault: "client",
751
+ ...opts,
752
+ });
753
+ Object.setPrototypeOf(this, DBCapacityReservationUnsupportedFault.prototype);
754
+ }
755
+ }
756
+ export class InsufficientDBInstanceCapacityFault extends __BaseException {
757
+ static shapeId = "com.amazonaws.rds#InsufficientDBInstanceCapacityFault";
758
+ name = "InsufficientDBInstanceCapacityFault";
759
+ $fault = "client";
760
+ constructor(opts) {
761
+ super({
762
+ name: "InsufficientDBInstanceCapacityFault",
763
+ $fault: "client",
764
+ ...opts,
765
+ });
766
+ Object.setPrototypeOf(this, InsufficientDBInstanceCapacityFault.prototype);
767
+ }
768
+ }
704
769
  export class DBClusterAlreadyExistsFault extends __BaseException {
705
770
  static shapeId = "com.amazonaws.rds#DBClusterAlreadyExistsFault";
706
771
  name = "DBClusterAlreadyExistsFault";
@@ -766,19 +831,6 @@ export class GlobalClusterNotFoundFault extends __BaseException {
766
831
  Object.setPrototypeOf(this, GlobalClusterNotFoundFault.prototype);
767
832
  }
768
833
  }
769
- export class InsufficientDBInstanceCapacityFault extends __BaseException {
770
- static shapeId = "com.amazonaws.rds#InsufficientDBInstanceCapacityFault";
771
- name = "InsufficientDBInstanceCapacityFault";
772
- $fault = "client";
773
- constructor(opts) {
774
- super({
775
- name: "InsufficientDBInstanceCapacityFault",
776
- $fault: "client",
777
- ...opts,
778
- });
779
- Object.setPrototypeOf(this, InsufficientDBInstanceCapacityFault.prototype);
780
- }
781
- }
782
834
  export class InsufficientStorageClusterCapacityFault extends __BaseException {
783
835
  static shapeId = "com.amazonaws.rds#InsufficientStorageClusterCapacityFault";
784
836
  name = "InsufficientStorageClusterCapacityFault";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { DescribeDBCapacityReservationsCommand, } from "../commands/DescribeDBCapacityReservationsCommand";
3
+ import { RDSClient } from "../RDSClient";
4
+ export const paginateDescribeDBCapacityReservations = createPaginator(RDSClient, DescribeDBCapacityReservationsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./DescribeBlueGreenDeploymentsPaginator";
3
3
  export * from "./DescribeCertificatesPaginator";
4
+ export * from "./DescribeDBCapacityReservationsPaginator";
4
5
  export * from "./DescribeDBClusterAutomatedBackupsPaginator";
5
6
  export * from "./DescribeDBClusterBacktracksPaginator";
6
7
  export * from "./DescribeDBClusterEndpointsPaginator";