@aws-sdk/client-rds 3.438.0 → 3.441.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 (69) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/RDS.js +6 -0
  3. package/dist-cjs/commands/CreateIntegrationCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteIntegrationCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeIntegrationsCommand.js +51 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +77 -3
  8. package/dist-cjs/pagination/DescribeIntegrationsPaginator.js +29 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_query.js +466 -6
  11. package/dist-es/RDS.js +6 -0
  12. package/dist-es/commands/CreateIntegrationCommand.js +47 -0
  13. package/dist-es/commands/DeleteIntegrationCommand.js +47 -0
  14. package/dist-es/commands/DescribeIntegrationsCommand.js +47 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_0.js +69 -0
  17. package/dist-es/pagination/DescribeIntegrationsPaginator.js +25 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_query.js +455 -1
  20. package/dist-types/RDS.d.ts +21 -0
  21. package/dist-types/RDSClient.d.ts +5 -2
  22. package/dist-types/commands/AddTagsToResourceCommand.d.ts +3 -0
  23. package/dist-types/commands/CreateCustomDBEngineVersionCommand.d.ts +2 -0
  24. package/dist-types/commands/CreateDBClusterCommand.d.ts +12 -0
  25. package/dist-types/commands/CreateIntegrationCommand.d.ts +130 -0
  26. package/dist-types/commands/DeleteCustomDBEngineVersionCommand.d.ts +2 -0
  27. package/dist-types/commands/DeleteDBClusterCommand.d.ts +8 -0
  28. package/dist-types/commands/DeleteIntegrationCommand.d.ts +107 -0
  29. package/dist-types/commands/DescribeDBClusterParametersCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeDBClusterSnapshotAttributesCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribeDBClusterSnapshotsCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeDBClustersCommand.d.ts +9 -1
  33. package/dist-types/commands/DescribeDBEngineVersionsCommand.d.ts +3 -2
  34. package/dist-types/commands/DescribeIntegrationsCommand.d.ts +115 -0
  35. package/dist-types/commands/FailoverDBClusterCommand.d.ts +8 -0
  36. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
  37. package/dist-types/commands/ModifyCustomDBEngineVersionCommand.d.ts +2 -0
  38. package/dist-types/commands/ModifyDBClusterCommand.d.ts +8 -0
  39. package/dist-types/commands/PromoteReadReplicaDBClusterCommand.d.ts +8 -0
  40. package/dist-types/commands/RebootDBClusterCommand.d.ts +8 -0
  41. package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +3 -0
  42. package/dist-types/commands/RestoreDBClusterFromS3Command.d.ts +8 -0
  43. package/dist-types/commands/RestoreDBClusterFromSnapshotCommand.d.ts +12 -0
  44. package/dist-types/commands/RestoreDBClusterToPointInTimeCommand.d.ts +12 -0
  45. package/dist-types/commands/StartDBClusterCommand.d.ts +8 -0
  46. package/dist-types/commands/StopDBClusterCommand.d.ts +8 -0
  47. package/dist-types/commands/index.d.ts +3 -0
  48. package/dist-types/models/models_0.d.ts +256 -423
  49. package/dist-types/models/models_1.d.ts +481 -1
  50. package/dist-types/pagination/DescribeIntegrationsPaginator.d.ts +7 -0
  51. package/dist-types/pagination/index.d.ts +1 -0
  52. package/dist-types/protocols/Aws_query.d.ts +27 -0
  53. package/dist-types/ts3.4/RDS.d.ts +51 -0
  54. package/dist-types/ts3.4/RDSClient.d.ts +18 -0
  55. package/dist-types/ts3.4/commands/CreateIntegrationCommand.d.ts +36 -0
  56. package/dist-types/ts3.4/commands/DeleteIntegrationCommand.d.ts +36 -0
  57. package/dist-types/ts3.4/commands/DescribeDBClusterParametersCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/DescribeDBClusterSnapshotAttributesCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/DescribeDBClusterSnapshotsCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/DescribeDBClustersCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/DescribeDBEngineVersionsCommand.d.ts +4 -2
  62. package/dist-types/ts3.4/commands/DescribeIntegrationsCommand.d.ts +42 -0
  63. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +85 -55
  65. package/dist-types/ts3.4/models/models_1.d.ts +71 -1
  66. package/dist-types/ts3.4/pagination/DescribeIntegrationsPaginator.d.ts +11 -0
  67. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  68. package/dist-types/ts3.4/protocols/Aws_query.d.ts +36 -0
  69. package/package.json +4 -4
package/dist-es/RDS.js CHANGED
@@ -28,6 +28,7 @@ import { CreateDBSnapshotCommand, } from "./commands/CreateDBSnapshotCommand";
28
28
  import { CreateDBSubnetGroupCommand, } from "./commands/CreateDBSubnetGroupCommand";
29
29
  import { CreateEventSubscriptionCommand, } from "./commands/CreateEventSubscriptionCommand";
30
30
  import { CreateGlobalClusterCommand, } from "./commands/CreateGlobalClusterCommand";
31
+ import { CreateIntegrationCommand, } from "./commands/CreateIntegrationCommand";
31
32
  import { CreateOptionGroupCommand, } from "./commands/CreateOptionGroupCommand";
32
33
  import { DeleteBlueGreenDeploymentCommand, } from "./commands/DeleteBlueGreenDeploymentCommand";
33
34
  import { DeleteCustomDBEngineVersionCommand, } from "./commands/DeleteCustomDBEngineVersionCommand";
@@ -46,6 +47,7 @@ import { DeleteDBSnapshotCommand, } from "./commands/DeleteDBSnapshotCommand";
46
47
  import { DeleteDBSubnetGroupCommand, } from "./commands/DeleteDBSubnetGroupCommand";
47
48
  import { DeleteEventSubscriptionCommand, } from "./commands/DeleteEventSubscriptionCommand";
48
49
  import { DeleteGlobalClusterCommand, } from "./commands/DeleteGlobalClusterCommand";
50
+ import { DeleteIntegrationCommand, } from "./commands/DeleteIntegrationCommand";
49
51
  import { DeleteOptionGroupCommand, } from "./commands/DeleteOptionGroupCommand";
50
52
  import { DeregisterDBProxyTargetsCommand, } from "./commands/DeregisterDBProxyTargetsCommand";
51
53
  import { DescribeAccountAttributesCommand, } from "./commands/DescribeAccountAttributesCommand";
@@ -80,6 +82,7 @@ import { DescribeEventsCommand, } from "./commands/DescribeEventsCommand";
80
82
  import { DescribeEventSubscriptionsCommand, } from "./commands/DescribeEventSubscriptionsCommand";
81
83
  import { DescribeExportTasksCommand, } from "./commands/DescribeExportTasksCommand";
82
84
  import { DescribeGlobalClustersCommand, } from "./commands/DescribeGlobalClustersCommand";
85
+ import { DescribeIntegrationsCommand, } from "./commands/DescribeIntegrationsCommand";
83
86
  import { DescribeOptionGroupOptionsCommand, } from "./commands/DescribeOptionGroupOptionsCommand";
84
87
  import { DescribeOptionGroupsCommand, } from "./commands/DescribeOptionGroupsCommand";
85
88
  import { DescribeOrderableDBInstanceOptionsCommand, } from "./commands/DescribeOrderableDBInstanceOptionsCommand";
@@ -174,6 +177,7 @@ const commands = {
174
177
  CreateDBSubnetGroupCommand,
175
178
  CreateEventSubscriptionCommand,
176
179
  CreateGlobalClusterCommand,
180
+ CreateIntegrationCommand,
177
181
  CreateOptionGroupCommand,
178
182
  DeleteBlueGreenDeploymentCommand,
179
183
  DeleteCustomDBEngineVersionCommand,
@@ -192,6 +196,7 @@ const commands = {
192
196
  DeleteDBSubnetGroupCommand,
193
197
  DeleteEventSubscriptionCommand,
194
198
  DeleteGlobalClusterCommand,
199
+ DeleteIntegrationCommand,
195
200
  DeleteOptionGroupCommand,
196
201
  DeregisterDBProxyTargetsCommand,
197
202
  DescribeAccountAttributesCommand,
@@ -226,6 +231,7 @@ const commands = {
226
231
  DescribeEventSubscriptionsCommand,
227
232
  DescribeExportTasksCommand,
228
233
  DescribeGlobalClustersCommand,
234
+ DescribeIntegrationsCommand,
229
235
  DescribeOptionGroupOptionsCommand,
230
236
  DescribeOptionGroupsCommand,
231
237
  DescribeOrderableDBInstanceOptionsCommand,
@@ -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_CreateIntegrationCommand, se_CreateIntegrationCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class CreateIntegrationCommand 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, CreateIntegrationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RDSClient";
26
+ const commandName = "CreateIntegrationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonRDSv19",
35
+ operation: "CreateIntegration",
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_CreateIntegrationCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_CreateIntegrationCommand(output, context);
46
+ }
47
+ }
@@ -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_DeleteIntegrationCommand, se_DeleteIntegrationCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DeleteIntegrationCommand 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, DeleteIntegrationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RDSClient";
26
+ const commandName = "DeleteIntegrationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonRDSv19",
35
+ operation: "DeleteIntegration",
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_DeleteIntegrationCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DeleteIntegrationCommand(output, context);
46
+ }
47
+ }
@@ -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_DescribeIntegrationsCommand, se_DescribeIntegrationsCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DescribeIntegrationsCommand 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, DescribeIntegrationsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RDSClient";
26
+ const commandName = "DescribeIntegrationsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonRDSv19",
35
+ operation: "DescribeIntegrations",
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_DescribeIntegrationsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeIntegrationsCommand(output, context);
46
+ }
47
+ }
@@ -27,6 +27,7 @@ export * from "./CreateDBSnapshotCommand";
27
27
  export * from "./CreateDBSubnetGroupCommand";
28
28
  export * from "./CreateEventSubscriptionCommand";
29
29
  export * from "./CreateGlobalClusterCommand";
30
+ export * from "./CreateIntegrationCommand";
30
31
  export * from "./CreateOptionGroupCommand";
31
32
  export * from "./DeleteBlueGreenDeploymentCommand";
32
33
  export * from "./DeleteCustomDBEngineVersionCommand";
@@ -45,6 +46,7 @@ export * from "./DeleteDBSnapshotCommand";
45
46
  export * from "./DeleteDBSubnetGroupCommand";
46
47
  export * from "./DeleteEventSubscriptionCommand";
47
48
  export * from "./DeleteGlobalClusterCommand";
49
+ export * from "./DeleteIntegrationCommand";
48
50
  export * from "./DeleteOptionGroupCommand";
49
51
  export * from "./DeregisterDBProxyTargetsCommand";
50
52
  export * from "./DescribeAccountAttributesCommand";
@@ -79,6 +81,7 @@ export * from "./DescribeEventSubscriptionsCommand";
79
81
  export * from "./DescribeEventsCommand";
80
82
  export * from "./DescribeExportTasksCommand";
81
83
  export * from "./DescribeGlobalClustersCommand";
84
+ export * from "./DescribeIntegrationsCommand";
82
85
  export * from "./DescribeOptionGroupOptionsCommand";
83
86
  export * from "./DescribeOptionGroupsCommand";
84
87
  export * from "./DescribeOrderableDBInstanceOptionsCommand";
@@ -183,6 +183,18 @@ export class DBSnapshotNotFoundFault extends __BaseException {
183
183
  Object.setPrototypeOf(this, DBSnapshotNotFoundFault.prototype);
184
184
  }
185
185
  }
186
+ export class IntegrationNotFoundFault extends __BaseException {
187
+ constructor(opts) {
188
+ super({
189
+ name: "IntegrationNotFoundFault",
190
+ $fault: "client",
191
+ ...opts,
192
+ });
193
+ this.name = "IntegrationNotFoundFault";
194
+ this.$fault = "client";
195
+ Object.setPrototypeOf(this, IntegrationNotFoundFault.prototype);
196
+ }
197
+ }
186
198
  export class ResourceNotFoundFault extends __BaseException {
187
199
  constructor(opts) {
188
200
  super({
@@ -1136,6 +1148,51 @@ export class GlobalClusterQuotaExceededFault extends __BaseException {
1136
1148
  Object.setPrototypeOf(this, GlobalClusterQuotaExceededFault.prototype);
1137
1149
  }
1138
1150
  }
1151
+ export const IntegrationStatus = {
1152
+ ACTIVE: "active",
1153
+ CREATING: "creating",
1154
+ DELETING: "deleting",
1155
+ FAILED: "failed",
1156
+ MODIFYING: "modifying",
1157
+ NEEDS_ATTENTION: "needs_attention",
1158
+ SYNCING: "syncing",
1159
+ };
1160
+ export class IntegrationAlreadyExistsFault extends __BaseException {
1161
+ constructor(opts) {
1162
+ super({
1163
+ name: "IntegrationAlreadyExistsFault",
1164
+ $fault: "client",
1165
+ ...opts,
1166
+ });
1167
+ this.name = "IntegrationAlreadyExistsFault";
1168
+ this.$fault = "client";
1169
+ Object.setPrototypeOf(this, IntegrationAlreadyExistsFault.prototype);
1170
+ }
1171
+ }
1172
+ export class IntegrationConflictOperationFault extends __BaseException {
1173
+ constructor(opts) {
1174
+ super({
1175
+ name: "IntegrationConflictOperationFault",
1176
+ $fault: "client",
1177
+ ...opts,
1178
+ });
1179
+ this.name = "IntegrationConflictOperationFault";
1180
+ this.$fault = "client";
1181
+ Object.setPrototypeOf(this, IntegrationConflictOperationFault.prototype);
1182
+ }
1183
+ }
1184
+ export class IntegrationQuotaExceededFault extends __BaseException {
1185
+ constructor(opts) {
1186
+ super({
1187
+ name: "IntegrationQuotaExceededFault",
1188
+ $fault: "client",
1189
+ ...opts,
1190
+ });
1191
+ this.name = "IntegrationQuotaExceededFault";
1192
+ this.$fault = "client";
1193
+ Object.setPrototypeOf(this, IntegrationQuotaExceededFault.prototype);
1194
+ }
1195
+ }
1139
1196
  export class InvalidBlueGreenDeploymentStateFault extends __BaseException {
1140
1197
  constructor(opts) {
1141
1198
  super({
@@ -1328,6 +1385,18 @@ export class InvalidEventSubscriptionStateFault extends __BaseException {
1328
1385
  Object.setPrototypeOf(this, InvalidEventSubscriptionStateFault.prototype);
1329
1386
  }
1330
1387
  }
1388
+ export class InvalidIntegrationStateFault extends __BaseException {
1389
+ constructor(opts) {
1390
+ super({
1391
+ name: "InvalidIntegrationStateFault",
1392
+ $fault: "client",
1393
+ ...opts,
1394
+ });
1395
+ this.name = "InvalidIntegrationStateFault";
1396
+ this.$fault = "client";
1397
+ Object.setPrototypeOf(this, InvalidIntegrationStateFault.prototype);
1398
+ }
1399
+ }
1331
1400
  export class InvalidOptionGroupStateFault extends __BaseException {
1332
1401
  constructor(opts) {
1333
1402
  super({
@@ -0,0 +1,25 @@
1
+ import { DescribeIntegrationsCommand, } from "../commands/DescribeIntegrationsCommand";
2
+ import { RDSClient } from "../RDSClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new DescribeIntegrationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateDescribeIntegrations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.Marker = token;
12
+ input["MaxRecords"] = config.pageSize;
13
+ if (config.client instanceof RDSClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected RDS | RDSClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.Marker;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -26,6 +26,7 @@ export * from "./DescribeEventSubscriptionsPaginator";
26
26
  export * from "./DescribeEventsPaginator";
27
27
  export * from "./DescribeExportTasksPaginator";
28
28
  export * from "./DescribeGlobalClustersPaginator";
29
+ export * from "./DescribeIntegrationsPaginator";
29
30
  export * from "./DescribeOptionGroupOptionsPaginator";
30
31
  export * from "./DescribeOptionGroupsPaginator";
31
32
  export * from "./DescribeOrderableDBInstanceOptionsPaginator";