@aws-sdk/client-rds 3.441.0 → 3.445.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 (103) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/RDS.js +10 -0
  3. package/dist-cjs/commands/CreateTenantDatabaseCommand.js +52 -0
  4. package/dist-cjs/commands/DeleteTenantDatabaseCommand.js +52 -0
  5. package/dist-cjs/commands/DescribeDBSnapshotTenantDatabasesCommand.js +51 -0
  6. package/dist-cjs/commands/DescribeTenantDatabasesCommand.js +52 -0
  7. package/dist-cjs/commands/ModifyTenantDatabaseCommand.js +52 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +83 -20
  10. package/dist-cjs/models/models_1.js +37 -1
  11. package/dist-cjs/pagination/DescribeDBSnapshotTenantDatabasesPaginator.js +29 -0
  12. package/dist-cjs/pagination/DescribeTenantDatabasesPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +2 -0
  14. package/dist-cjs/protocols/Aws_query.js +653 -7
  15. package/dist-cjs/waiters/index.js +2 -0
  16. package/dist-cjs/waiters/waitForTenantDatabaseAvailable.js +89 -0
  17. package/dist-cjs/waiters/waitForTenantDatabaseDeleted.js +39 -0
  18. package/dist-es/RDS.js +10 -0
  19. package/dist-es/commands/CreateTenantDatabaseCommand.js +48 -0
  20. package/dist-es/commands/DeleteTenantDatabaseCommand.js +48 -0
  21. package/dist-es/commands/DescribeDBSnapshotTenantDatabasesCommand.js +47 -0
  22. package/dist-es/commands/DescribeTenantDatabasesCommand.js +48 -0
  23. package/dist-es/commands/ModifyTenantDatabaseCommand.js +48 -0
  24. package/dist-es/commands/index.js +5 -0
  25. package/dist-es/models/models_0.js +71 -16
  26. package/dist-es/models/models_1.js +32 -0
  27. package/dist-es/pagination/DescribeDBSnapshotTenantDatabasesPaginator.js +25 -0
  28. package/dist-es/pagination/DescribeTenantDatabasesPaginator.js +25 -0
  29. package/dist-es/pagination/index.js +2 -0
  30. package/dist-es/protocols/Aws_query.js +637 -2
  31. package/dist-es/waiters/index.js +2 -0
  32. package/dist-es/waiters/waitForTenantDatabaseAvailable.js +84 -0
  33. package/dist-es/waiters/waitForTenantDatabaseDeleted.js +34 -0
  34. package/dist-types/RDS.d.ts +35 -0
  35. package/dist-types/RDSClient.d.ts +7 -2
  36. package/dist-types/commands/AddTagsToResourceCommand.d.ts +6 -0
  37. package/dist-types/commands/CopyDBSnapshotCommand.d.ts +1 -0
  38. package/dist-types/commands/CreateDBInstanceCommand.d.ts +7 -0
  39. package/dist-types/commands/CreateDBInstanceReadReplicaCommand.d.ts +6 -0
  40. package/dist-types/commands/CreateDBSnapshotCommand.d.ts +1 -0
  41. package/dist-types/commands/CreateTenantDatabaseCommand.d.ts +122 -0
  42. package/dist-types/commands/DeleteDBInstanceAutomatedBackupCommand.d.ts +1 -0
  43. package/dist-types/commands/DeleteDBInstanceCommand.d.ts +2 -0
  44. package/dist-types/commands/DeleteDBSnapshotCommand.d.ts +1 -0
  45. package/dist-types/commands/DeleteTenantDatabaseCommand.d.ts +111 -0
  46. package/dist-types/commands/DescribeDBClusterAutomatedBackupsCommand.d.ts +2 -1
  47. package/dist-types/commands/DescribeDBClusterBacktracksCommand.d.ts +1 -1
  48. package/dist-types/commands/DescribeDBClusterEndpointsCommand.d.ts +1 -1
  49. package/dist-types/commands/DescribeDBClusterParameterGroupsCommand.d.ts +1 -1
  50. package/dist-types/commands/DescribeDBInstanceAutomatedBackupsCommand.d.ts +1 -0
  51. package/dist-types/commands/DescribeDBInstancesCommand.d.ts +2 -0
  52. package/dist-types/commands/DescribeDBSnapshotTenantDatabasesCommand.d.ts +117 -0
  53. package/dist-types/commands/DescribeDBSnapshotsCommand.d.ts +1 -0
  54. package/dist-types/commands/DescribeTenantDatabasesCommand.d.ts +114 -0
  55. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -0
  56. package/dist-types/commands/ModifyDBInstanceCommand.d.ts +7 -0
  57. package/dist-types/commands/ModifyDBSnapshotCommand.d.ts +1 -0
  58. package/dist-types/commands/ModifyTenantDatabaseCommand.d.ts +114 -0
  59. package/dist-types/commands/PromoteReadReplicaCommand.d.ts +2 -0
  60. package/dist-types/commands/RebootDBInstanceCommand.d.ts +2 -0
  61. package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +6 -0
  62. package/dist-types/commands/RestoreDBInstanceFromDBSnapshotCommand.d.ts +6 -0
  63. package/dist-types/commands/RestoreDBInstanceFromS3Command.d.ts +2 -0
  64. package/dist-types/commands/RestoreDBInstanceToPointInTimeCommand.d.ts +6 -0
  65. package/dist-types/commands/StartDBInstanceAutomatedBackupsReplicationCommand.d.ts +1 -0
  66. package/dist-types/commands/StartDBInstanceCommand.d.ts +2 -0
  67. package/dist-types/commands/StopDBInstanceAutomatedBackupsReplicationCommand.d.ts +1 -0
  68. package/dist-types/commands/StopDBInstanceCommand.d.ts +2 -0
  69. package/dist-types/commands/SwitchoverReadReplicaCommand.d.ts +2 -0
  70. package/dist-types/commands/index.d.ts +5 -0
  71. package/dist-types/index.d.ts +2 -0
  72. package/dist-types/models/models_0.d.ts +333 -388
  73. package/dist-types/models/models_1.d.ts +1132 -335
  74. package/dist-types/pagination/DescribeDBSnapshotTenantDatabasesPaginator.d.ts +7 -0
  75. package/dist-types/pagination/DescribeTenantDatabasesPaginator.d.ts +7 -0
  76. package/dist-types/pagination/index.d.ts +2 -0
  77. package/dist-types/protocols/Aws_query.d.ts +45 -0
  78. package/dist-types/ts3.4/RDS.d.ts +91 -0
  79. package/dist-types/ts3.4/RDSClient.d.ts +30 -0
  80. package/dist-types/ts3.4/commands/CreateTenantDatabaseCommand.d.ts +42 -0
  81. package/dist-types/ts3.4/commands/DeleteTenantDatabaseCommand.d.ts +42 -0
  82. package/dist-types/ts3.4/commands/DescribeDBClusterAutomatedBackupsCommand.d.ts +2 -4
  83. package/dist-types/ts3.4/commands/DescribeDBClusterBacktracksCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/DescribeDBClusterEndpointsCommand.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/DescribeDBClusterParameterGroupsCommand.d.ts +1 -1
  86. package/dist-types/ts3.4/commands/DescribeDBSnapshotTenantDatabasesCommand.d.ts +42 -0
  87. package/dist-types/ts3.4/commands/DescribeTenantDatabasesCommand.d.ts +42 -0
  88. package/dist-types/ts3.4/commands/ModifyTenantDatabaseCommand.d.ts +42 -0
  89. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  90. package/dist-types/ts3.4/index.d.ts +2 -0
  91. package/dist-types/ts3.4/models/models_0.d.ts +97 -67
  92. package/dist-types/ts3.4/models/models_1.d.ts +129 -1
  93. package/dist-types/ts3.4/pagination/DescribeDBSnapshotTenantDatabasesPaginator.d.ts +11 -0
  94. package/dist-types/ts3.4/pagination/DescribeTenantDatabasesPaginator.d.ts +11 -0
  95. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  96. package/dist-types/ts3.4/protocols/Aws_query.d.ts +60 -0
  97. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  98. package/dist-types/ts3.4/waiters/waitForTenantDatabaseAvailable.d.ts +11 -0
  99. package/dist-types/ts3.4/waiters/waitForTenantDatabaseDeleted.d.ts +11 -0
  100. package/dist-types/waiters/index.d.ts +2 -0
  101. package/dist-types/waiters/waitForTenantDatabaseAvailable.d.ts +14 -0
  102. package/dist-types/waiters/waitForTenantDatabaseDeleted.d.ts +14 -0
  103. package/package.json +4 -4
@@ -9,3 +9,5 @@ tslib_1.__exportStar(require("./waitForDBInstanceAvailable"), exports);
9
9
  tslib_1.__exportStar(require("./waitForDBInstanceDeleted"), exports);
10
10
  tslib_1.__exportStar(require("./waitForDBSnapshotAvailable"), exports);
11
11
  tslib_1.__exportStar(require("./waitForDBSnapshotDeleted"), exports);
12
+ tslib_1.__exportStar(require("./waitForTenantDatabaseAvailable"), exports);
13
+ tslib_1.__exportStar(require("./waitForTenantDatabaseDeleted"), exports);
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitUntilTenantDatabaseAvailable = exports.waitForTenantDatabaseAvailable = void 0;
4
+ const util_waiter_1 = require("@smithy/util-waiter");
5
+ const DescribeTenantDatabasesCommand_1 = require("../commands/DescribeTenantDatabasesCommand");
6
+ const checkState = async (client, input) => {
7
+ let reason;
8
+ try {
9
+ const result = await client.send(new DescribeTenantDatabasesCommand_1.DescribeTenantDatabasesCommand(input));
10
+ reason = result;
11
+ try {
12
+ const returnComparator = () => {
13
+ const flat_1 = [].concat(...result.TenantDatabases);
14
+ const projection_3 = flat_1.map((element_2) => {
15
+ return element_2.Status;
16
+ });
17
+ return projection_3;
18
+ };
19
+ let allStringEq_5 = returnComparator().length > 0;
20
+ for (const element_4 of returnComparator()) {
21
+ allStringEq_5 = allStringEq_5 && element_4 == "available";
22
+ }
23
+ if (allStringEq_5) {
24
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
25
+ }
26
+ }
27
+ catch (e) { }
28
+ try {
29
+ const returnComparator = () => {
30
+ const flat_1 = [].concat(...result.TenantDatabases);
31
+ const projection_3 = flat_1.map((element_2) => {
32
+ return element_2.Status;
33
+ });
34
+ return projection_3;
35
+ };
36
+ for (const anyStringEq_4 of returnComparator()) {
37
+ if (anyStringEq_4 == "deleted") {
38
+ return { state: util_waiter_1.WaiterState.FAILURE, reason };
39
+ }
40
+ }
41
+ }
42
+ catch (e) { }
43
+ try {
44
+ const returnComparator = () => {
45
+ const flat_1 = [].concat(...result.TenantDatabases);
46
+ const projection_3 = flat_1.map((element_2) => {
47
+ return element_2.Status;
48
+ });
49
+ return projection_3;
50
+ };
51
+ for (const anyStringEq_4 of returnComparator()) {
52
+ if (anyStringEq_4 == "incompatible-parameters") {
53
+ return { state: util_waiter_1.WaiterState.FAILURE, reason };
54
+ }
55
+ }
56
+ }
57
+ catch (e) { }
58
+ try {
59
+ const returnComparator = () => {
60
+ const flat_1 = [].concat(...result.TenantDatabases);
61
+ const projection_3 = flat_1.map((element_2) => {
62
+ return element_2.Status;
63
+ });
64
+ return projection_3;
65
+ };
66
+ for (const anyStringEq_4 of returnComparator()) {
67
+ if (anyStringEq_4 == "incompatible-restore") {
68
+ return { state: util_waiter_1.WaiterState.FAILURE, reason };
69
+ }
70
+ }
71
+ }
72
+ catch (e) { }
73
+ }
74
+ catch (exception) {
75
+ reason = exception;
76
+ }
77
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
78
+ };
79
+ const waitForTenantDatabaseAvailable = async (params, input) => {
80
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
81
+ return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
82
+ };
83
+ exports.waitForTenantDatabaseAvailable = waitForTenantDatabaseAvailable;
84
+ const waitUntilTenantDatabaseAvailable = async (params, input) => {
85
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
86
+ const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
87
+ return (0, util_waiter_1.checkExceptions)(result);
88
+ };
89
+ exports.waitUntilTenantDatabaseAvailable = waitUntilTenantDatabaseAvailable;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitUntilTenantDatabaseDeleted = exports.waitForTenantDatabaseDeleted = void 0;
4
+ const util_waiter_1 = require("@smithy/util-waiter");
5
+ const DescribeTenantDatabasesCommand_1 = require("../commands/DescribeTenantDatabasesCommand");
6
+ const checkState = async (client, input) => {
7
+ let reason;
8
+ try {
9
+ const result = await client.send(new DescribeTenantDatabasesCommand_1.DescribeTenantDatabasesCommand(input));
10
+ reason = result;
11
+ try {
12
+ const returnComparator = () => {
13
+ return result.TenantDatabases.length == 0.0;
14
+ };
15
+ if (returnComparator() == true) {
16
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
17
+ }
18
+ }
19
+ catch (e) { }
20
+ }
21
+ catch (exception) {
22
+ reason = exception;
23
+ if (exception.name && exception.name == "DBInstanceNotFoundFault") {
24
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
25
+ }
26
+ }
27
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
28
+ };
29
+ const waitForTenantDatabaseDeleted = async (params, input) => {
30
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
31
+ return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
32
+ };
33
+ exports.waitForTenantDatabaseDeleted = waitForTenantDatabaseDeleted;
34
+ const waitUntilTenantDatabaseDeleted = async (params, input) => {
35
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
36
+ const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
37
+ return (0, util_waiter_1.checkExceptions)(result);
38
+ };
39
+ exports.waitUntilTenantDatabaseDeleted = waitUntilTenantDatabaseDeleted;
package/dist-es/RDS.js CHANGED
@@ -30,6 +30,7 @@ import { CreateEventSubscriptionCommand, } from "./commands/CreateEventSubscript
30
30
  import { CreateGlobalClusterCommand, } from "./commands/CreateGlobalClusterCommand";
31
31
  import { CreateIntegrationCommand, } from "./commands/CreateIntegrationCommand";
32
32
  import { CreateOptionGroupCommand, } from "./commands/CreateOptionGroupCommand";
33
+ import { CreateTenantDatabaseCommand, } from "./commands/CreateTenantDatabaseCommand";
33
34
  import { DeleteBlueGreenDeploymentCommand, } from "./commands/DeleteBlueGreenDeploymentCommand";
34
35
  import { DeleteCustomDBEngineVersionCommand, } from "./commands/DeleteCustomDBEngineVersionCommand";
35
36
  import { DeleteDBClusterAutomatedBackupCommand, } from "./commands/DeleteDBClusterAutomatedBackupCommand";
@@ -49,6 +50,7 @@ import { DeleteEventSubscriptionCommand, } from "./commands/DeleteEventSubscript
49
50
  import { DeleteGlobalClusterCommand, } from "./commands/DeleteGlobalClusterCommand";
50
51
  import { DeleteIntegrationCommand, } from "./commands/DeleteIntegrationCommand";
51
52
  import { DeleteOptionGroupCommand, } from "./commands/DeleteOptionGroupCommand";
53
+ import { DeleteTenantDatabaseCommand, } from "./commands/DeleteTenantDatabaseCommand";
52
54
  import { DeregisterDBProxyTargetsCommand, } from "./commands/DeregisterDBProxyTargetsCommand";
53
55
  import { DescribeAccountAttributesCommand, } from "./commands/DescribeAccountAttributesCommand";
54
56
  import { DescribeBlueGreenDeploymentsCommand, } from "./commands/DescribeBlueGreenDeploymentsCommand";
@@ -74,6 +76,7 @@ import { DescribeDBProxyTargetsCommand, } from "./commands/DescribeDBProxyTarget
74
76
  import { DescribeDBSecurityGroupsCommand, } from "./commands/DescribeDBSecurityGroupsCommand";
75
77
  import { DescribeDBSnapshotAttributesCommand, } from "./commands/DescribeDBSnapshotAttributesCommand";
76
78
  import { DescribeDBSnapshotsCommand, } from "./commands/DescribeDBSnapshotsCommand";
79
+ import { DescribeDBSnapshotTenantDatabasesCommand, } from "./commands/DescribeDBSnapshotTenantDatabasesCommand";
77
80
  import { DescribeDBSubnetGroupsCommand, } from "./commands/DescribeDBSubnetGroupsCommand";
78
81
  import { DescribeEngineDefaultClusterParametersCommand, } from "./commands/DescribeEngineDefaultClusterParametersCommand";
79
82
  import { DescribeEngineDefaultParametersCommand, } from "./commands/DescribeEngineDefaultParametersCommand";
@@ -90,6 +93,7 @@ import { DescribePendingMaintenanceActionsCommand, } from "./commands/DescribePe
90
93
  import { DescribeReservedDBInstancesCommand, } from "./commands/DescribeReservedDBInstancesCommand";
91
94
  import { DescribeReservedDBInstancesOfferingsCommand, } from "./commands/DescribeReservedDBInstancesOfferingsCommand";
92
95
  import { DescribeSourceRegionsCommand, } from "./commands/DescribeSourceRegionsCommand";
96
+ import { DescribeTenantDatabasesCommand, } from "./commands/DescribeTenantDatabasesCommand";
93
97
  import { DescribeValidDBInstanceModificationsCommand, } from "./commands/DescribeValidDBInstanceModificationsCommand";
94
98
  import { DownloadDBLogFilePortionCommand, } from "./commands/DownloadDBLogFilePortionCommand";
95
99
  import { FailoverDBClusterCommand, } from "./commands/FailoverDBClusterCommand";
@@ -114,6 +118,7 @@ import { ModifyDBSubnetGroupCommand, } from "./commands/ModifyDBSubnetGroupComma
114
118
  import { ModifyEventSubscriptionCommand, } from "./commands/ModifyEventSubscriptionCommand";
115
119
  import { ModifyGlobalClusterCommand, } from "./commands/ModifyGlobalClusterCommand";
116
120
  import { ModifyOptionGroupCommand, } from "./commands/ModifyOptionGroupCommand";
121
+ import { ModifyTenantDatabaseCommand, } from "./commands/ModifyTenantDatabaseCommand";
117
122
  import { PromoteReadReplicaCommand, } from "./commands/PromoteReadReplicaCommand";
118
123
  import { PromoteReadReplicaDBClusterCommand, } from "./commands/PromoteReadReplicaDBClusterCommand";
119
124
  import { PurchaseReservedDBInstancesOfferingCommand, } from "./commands/PurchaseReservedDBInstancesOfferingCommand";
@@ -179,6 +184,7 @@ const commands = {
179
184
  CreateGlobalClusterCommand,
180
185
  CreateIntegrationCommand,
181
186
  CreateOptionGroupCommand,
187
+ CreateTenantDatabaseCommand,
182
188
  DeleteBlueGreenDeploymentCommand,
183
189
  DeleteCustomDBEngineVersionCommand,
184
190
  DeleteDBClusterCommand,
@@ -198,6 +204,7 @@ const commands = {
198
204
  DeleteGlobalClusterCommand,
199
205
  DeleteIntegrationCommand,
200
206
  DeleteOptionGroupCommand,
207
+ DeleteTenantDatabaseCommand,
201
208
  DeregisterDBProxyTargetsCommand,
202
209
  DescribeAccountAttributesCommand,
203
210
  DescribeBlueGreenDeploymentsCommand,
@@ -223,6 +230,7 @@ const commands = {
223
230
  DescribeDBSecurityGroupsCommand,
224
231
  DescribeDBSnapshotAttributesCommand,
225
232
  DescribeDBSnapshotsCommand,
233
+ DescribeDBSnapshotTenantDatabasesCommand,
226
234
  DescribeDBSubnetGroupsCommand,
227
235
  DescribeEngineDefaultClusterParametersCommand,
228
236
  DescribeEngineDefaultParametersCommand,
@@ -239,6 +247,7 @@ const commands = {
239
247
  DescribeReservedDBInstancesCommand,
240
248
  DescribeReservedDBInstancesOfferingsCommand,
241
249
  DescribeSourceRegionsCommand,
250
+ DescribeTenantDatabasesCommand,
242
251
  DescribeValidDBInstanceModificationsCommand,
243
252
  DownloadDBLogFilePortionCommand,
244
253
  FailoverDBClusterCommand,
@@ -263,6 +272,7 @@ const commands = {
263
272
  ModifyEventSubscriptionCommand,
264
273
  ModifyGlobalClusterCommand,
265
274
  ModifyOptionGroupCommand,
275
+ ModifyTenantDatabaseCommand,
266
276
  PromoteReadReplicaCommand,
267
277
  PromoteReadReplicaDBClusterCommand,
268
278
  PurchaseReservedDBInstancesOfferingCommand,
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { CreateTenantDatabaseMessageFilterSensitiveLog, CreateTenantDatabaseResultFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_CreateTenantDatabaseCommand, se_CreateTenantDatabaseCommand } from "../protocols/Aws_query";
7
+ export { $Command };
8
+ export class CreateTenantDatabaseCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateTenantDatabaseCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "RDSClient";
27
+ const commandName = "CreateTenantDatabaseCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: CreateTenantDatabaseMessageFilterSensitiveLog,
33
+ outputFilterSensitiveLog: CreateTenantDatabaseResultFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "AmazonRDSv19",
36
+ operation: "CreateTenantDatabase",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_CreateTenantDatabaseCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_CreateTenantDatabaseCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { DeleteTenantDatabaseResultFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_DeleteTenantDatabaseCommand, se_DeleteTenantDatabaseCommand } from "../protocols/Aws_query";
7
+ export { $Command };
8
+ export class DeleteTenantDatabaseCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteTenantDatabaseCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "RDSClient";
27
+ const commandName = "DeleteTenantDatabaseCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: DeleteTenantDatabaseResultFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "AmazonRDSv19",
36
+ operation: "DeleteTenantDatabase",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_DeleteTenantDatabaseCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_DeleteTenantDatabaseCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DescribeDBSnapshotTenantDatabasesCommand, se_DescribeDBSnapshotTenantDatabasesCommand, } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DescribeDBSnapshotTenantDatabasesCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeDBSnapshotTenantDatabasesCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RDSClient";
26
+ const commandName = "DescribeDBSnapshotTenantDatabasesCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonRDSv19",
35
+ operation: "DescribeDBSnapshotTenantDatabases",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DescribeDBSnapshotTenantDatabasesCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeDBSnapshotTenantDatabasesCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { TenantDatabasesMessageFilterSensitiveLog, } from "../models/models_1";
6
+ import { de_DescribeTenantDatabasesCommand, se_DescribeTenantDatabasesCommand } from "../protocols/Aws_query";
7
+ export { $Command };
8
+ export class DescribeTenantDatabasesCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeTenantDatabasesCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "RDSClient";
27
+ const commandName = "DescribeTenantDatabasesCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: TenantDatabasesMessageFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "AmazonRDSv19",
36
+ operation: "DescribeTenantDatabases",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_DescribeTenantDatabasesCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_DescribeTenantDatabasesCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { ModifyTenantDatabaseMessageFilterSensitiveLog, ModifyTenantDatabaseResultFilterSensitiveLog, } from "../models/models_1";
6
+ import { de_ModifyTenantDatabaseCommand, se_ModifyTenantDatabaseCommand } from "../protocols/Aws_query";
7
+ export { $Command };
8
+ export class ModifyTenantDatabaseCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, ModifyTenantDatabaseCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "RDSClient";
27
+ const commandName = "ModifyTenantDatabaseCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: ModifyTenantDatabaseMessageFilterSensitiveLog,
33
+ outputFilterSensitiveLog: ModifyTenantDatabaseResultFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "AmazonRDSv19",
36
+ operation: "ModifyTenantDatabase",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_ModifyTenantDatabaseCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_ModifyTenantDatabaseCommand(output, context);
47
+ }
48
+ }
@@ -29,6 +29,7 @@ export * from "./CreateEventSubscriptionCommand";
29
29
  export * from "./CreateGlobalClusterCommand";
30
30
  export * from "./CreateIntegrationCommand";
31
31
  export * from "./CreateOptionGroupCommand";
32
+ export * from "./CreateTenantDatabaseCommand";
32
33
  export * from "./DeleteBlueGreenDeploymentCommand";
33
34
  export * from "./DeleteCustomDBEngineVersionCommand";
34
35
  export * from "./DeleteDBClusterAutomatedBackupCommand";
@@ -48,6 +49,7 @@ export * from "./DeleteEventSubscriptionCommand";
48
49
  export * from "./DeleteGlobalClusterCommand";
49
50
  export * from "./DeleteIntegrationCommand";
50
51
  export * from "./DeleteOptionGroupCommand";
52
+ export * from "./DeleteTenantDatabaseCommand";
51
53
  export * from "./DeregisterDBProxyTargetsCommand";
52
54
  export * from "./DescribeAccountAttributesCommand";
53
55
  export * from "./DescribeBlueGreenDeploymentsCommand";
@@ -72,6 +74,7 @@ export * from "./DescribeDBProxyTargetGroupsCommand";
72
74
  export * from "./DescribeDBProxyTargetsCommand";
73
75
  export * from "./DescribeDBSecurityGroupsCommand";
74
76
  export * from "./DescribeDBSnapshotAttributesCommand";
77
+ export * from "./DescribeDBSnapshotTenantDatabasesCommand";
75
78
  export * from "./DescribeDBSnapshotsCommand";
76
79
  export * from "./DescribeDBSubnetGroupsCommand";
77
80
  export * from "./DescribeEngineDefaultClusterParametersCommand";
@@ -89,6 +92,7 @@ export * from "./DescribePendingMaintenanceActionsCommand";
89
92
  export * from "./DescribeReservedDBInstancesCommand";
90
93
  export * from "./DescribeReservedDBInstancesOfferingsCommand";
91
94
  export * from "./DescribeSourceRegionsCommand";
95
+ export * from "./DescribeTenantDatabasesCommand";
92
96
  export * from "./DescribeValidDBInstanceModificationsCommand";
93
97
  export * from "./DownloadDBLogFilePortionCommand";
94
98
  export * from "./FailoverDBClusterCommand";
@@ -113,6 +117,7 @@ export * from "./ModifyDBSubnetGroupCommand";
113
117
  export * from "./ModifyEventSubscriptionCommand";
114
118
  export * from "./ModifyGlobalClusterCommand";
115
119
  export * from "./ModifyOptionGroupCommand";
120
+ export * from "./ModifyTenantDatabaseCommand";
116
121
  export * from "./PromoteReadReplicaCommand";
117
122
  export * from "./PromoteReadReplicaDBClusterCommand";
118
123
  export * from "./PurchaseReservedDBInstancesOfferingCommand";
@@ -1,3 +1,4 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
1
2
  import { RDSServiceException as __BaseException } from "./RDSServiceException";
2
3
  export const ActivityStreamMode = {
3
4
  async: "async",
@@ -183,6 +184,18 @@ export class DBSnapshotNotFoundFault extends __BaseException {
183
184
  Object.setPrototypeOf(this, DBSnapshotNotFoundFault.prototype);
184
185
  }
185
186
  }
187
+ export class DBSnapshotTenantDatabaseNotFoundFault extends __BaseException {
188
+ constructor(opts) {
189
+ super({
190
+ name: "DBSnapshotTenantDatabaseNotFoundFault",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ this.name = "DBSnapshotTenantDatabaseNotFoundFault";
195
+ this.$fault = "client";
196
+ Object.setPrototypeOf(this, DBSnapshotTenantDatabaseNotFoundFault.prototype);
197
+ }
198
+ }
186
199
  export class IntegrationNotFoundFault extends __BaseException {
187
200
  constructor(opts) {
188
201
  super({
@@ -195,6 +208,18 @@ export class IntegrationNotFoundFault extends __BaseException {
195
208
  Object.setPrototypeOf(this, IntegrationNotFoundFault.prototype);
196
209
  }
197
210
  }
211
+ export class TenantDatabaseNotFoundFault extends __BaseException {
212
+ constructor(opts) {
213
+ super({
214
+ name: "TenantDatabaseNotFoundFault",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ this.name = "TenantDatabaseNotFoundFault";
219
+ this.$fault = "client";
220
+ Object.setPrototypeOf(this, TenantDatabaseNotFoundFault.prototype);
221
+ }
222
+ }
198
223
  export class ResourceNotFoundFault extends __BaseException {
199
224
  constructor(opts) {
200
225
  super({
@@ -845,6 +870,18 @@ export class StorageTypeNotSupportedFault extends __BaseException {
845
870
  Object.setPrototypeOf(this, StorageTypeNotSupportedFault.prototype);
846
871
  }
847
872
  }
873
+ export class TenantDatabaseQuotaExceededFault extends __BaseException {
874
+ constructor(opts) {
875
+ super({
876
+ name: "TenantDatabaseQuotaExceededFault",
877
+ $fault: "client",
878
+ ...opts,
879
+ });
880
+ this.name = "TenantDatabaseQuotaExceededFault";
881
+ this.$fault = "client";
882
+ Object.setPrototypeOf(this, TenantDatabaseQuotaExceededFault.prototype);
883
+ }
884
+ }
848
885
  export class DBSubnetGroupNotAllowedFault extends __BaseException {
849
886
  constructor(opts) {
850
887
  super({
@@ -1193,6 +1230,18 @@ export class IntegrationQuotaExceededFault extends __BaseException {
1193
1230
  Object.setPrototypeOf(this, IntegrationQuotaExceededFault.prototype);
1194
1231
  }
1195
1232
  }
1233
+ export class TenantDatabaseAlreadyExistsFault extends __BaseException {
1234
+ constructor(opts) {
1235
+ super({
1236
+ name: "TenantDatabaseAlreadyExistsFault",
1237
+ $fault: "client",
1238
+ ...opts,
1239
+ });
1240
+ this.name = "TenantDatabaseAlreadyExistsFault";
1241
+ this.$fault = "client";
1242
+ Object.setPrototypeOf(this, TenantDatabaseAlreadyExistsFault.prototype);
1243
+ }
1244
+ }
1196
1245
  export class InvalidBlueGreenDeploymentStateFault extends __BaseException {
1197
1246
  constructor(opts) {
1198
1247
  super({
@@ -1421,19 +1470,25 @@ export class DBProxyTargetNotFoundFault extends __BaseException {
1421
1470
  Object.setPrototypeOf(this, DBProxyTargetNotFoundFault.prototype);
1422
1471
  }
1423
1472
  }
1424
- export class DBClusterBacktrackNotFoundFault extends __BaseException {
1425
- constructor(opts) {
1426
- super({
1427
- name: "DBClusterBacktrackNotFoundFault",
1428
- $fault: "client",
1429
- ...opts,
1430
- });
1431
- this.name = "DBClusterBacktrackNotFoundFault";
1432
- this.$fault = "client";
1433
- Object.setPrototypeOf(this, DBClusterBacktrackNotFoundFault.prototype);
1434
- }
1435
- }
1436
- export const ApplyMethod = {
1437
- immediate: "immediate",
1438
- pending_reboot: "pending-reboot",
1439
- };
1473
+ export const CreateTenantDatabaseMessageFilterSensitiveLog = (obj) => ({
1474
+ ...obj,
1475
+ ...(obj.MasterUserPassword && { MasterUserPassword: SENSITIVE_STRING }),
1476
+ });
1477
+ export const TenantDatabasePendingModifiedValuesFilterSensitiveLog = (obj) => ({
1478
+ ...obj,
1479
+ ...(obj.MasterUserPassword && { MasterUserPassword: SENSITIVE_STRING }),
1480
+ });
1481
+ export const TenantDatabaseFilterSensitiveLog = (obj) => ({
1482
+ ...obj,
1483
+ ...(obj.PendingModifiedValues && {
1484
+ PendingModifiedValues: TenantDatabasePendingModifiedValuesFilterSensitiveLog(obj.PendingModifiedValues),
1485
+ }),
1486
+ });
1487
+ export const CreateTenantDatabaseResultFilterSensitiveLog = (obj) => ({
1488
+ ...obj,
1489
+ ...(obj.TenantDatabase && { TenantDatabase: TenantDatabaseFilterSensitiveLog(obj.TenantDatabase) }),
1490
+ });
1491
+ export const DeleteTenantDatabaseResultFilterSensitiveLog = (obj) => ({
1492
+ ...obj,
1493
+ ...(obj.TenantDatabase && { TenantDatabase: TenantDatabaseFilterSensitiveLog(obj.TenantDatabase) }),
1494
+ });
@@ -1,4 +1,22 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { TenantDatabaseFilterSensitiveLog, } from "./models_0";
1
3
  import { RDSServiceException as __BaseException } from "./RDSServiceException";
4
+ export class DBClusterBacktrackNotFoundFault extends __BaseException {
5
+ constructor(opts) {
6
+ super({
7
+ name: "DBClusterBacktrackNotFoundFault",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ this.name = "DBClusterBacktrackNotFoundFault";
12
+ this.$fault = "client";
13
+ Object.setPrototypeOf(this, DBClusterBacktrackNotFoundFault.prototype);
14
+ }
15
+ }
16
+ export const ApplyMethod = {
17
+ immediate: "immediate",
18
+ pending_reboot: "pending-reboot",
19
+ };
2
20
  export const TargetRole = {
3
21
  READ_ONLY: "READ_ONLY",
4
22
  READ_WRITE: "READ_WRITE",
@@ -317,3 +335,17 @@ export class InvalidExportSourceStateFault extends __BaseException {
317
335
  Object.setPrototypeOf(this, InvalidExportSourceStateFault.prototype);
318
336
  }
319
337
  }
338
+ export const TenantDatabasesMessageFilterSensitiveLog = (obj) => ({
339
+ ...obj,
340
+ ...(obj.TenantDatabases && {
341
+ TenantDatabases: obj.TenantDatabases.map((item) => TenantDatabaseFilterSensitiveLog(item)),
342
+ }),
343
+ });
344
+ export const ModifyTenantDatabaseMessageFilterSensitiveLog = (obj) => ({
345
+ ...obj,
346
+ ...(obj.MasterUserPassword && { MasterUserPassword: SENSITIVE_STRING }),
347
+ });
348
+ export const ModifyTenantDatabaseResultFilterSensitiveLog = (obj) => ({
349
+ ...obj,
350
+ ...(obj.TenantDatabase && { TenantDatabase: TenantDatabaseFilterSensitiveLog(obj.TenantDatabase) }),
351
+ });