@aws-sdk/client-rds 3.476.0 → 3.477.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 (35) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/RDS.js +4 -0
  3. package/dist-cjs/commands/DescribeDBRecommendationsCommand.js +51 -0
  4. package/dist-cjs/commands/ModifyDBRecommendationCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/pagination/DescribeDBRecommendationsPaginator.js +29 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_query.js +6427 -5124
  9. package/dist-es/RDS.js +4 -0
  10. package/dist-es/commands/DescribeDBRecommendationsCommand.js +47 -0
  11. package/dist-es/commands/ModifyDBRecommendationCommand.js +47 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/pagination/DescribeDBRecommendationsPaginator.js +25 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_query.js +6417 -5118
  16. package/dist-types/RDS.d.ts +14 -0
  17. package/dist-types/RDSClient.d.ts +4 -2
  18. package/dist-types/commands/DescribeDBRecommendationsCommand.d.ts +204 -0
  19. package/dist-types/commands/ModifyDBRecommendationCommand.d.ts +197 -0
  20. package/dist-types/commands/index.d.ts +2 -0
  21. package/dist-types/models/models_0.d.ts +5 -0
  22. package/dist-types/models/models_1.d.ts +798 -0
  23. package/dist-types/pagination/DescribeDBRecommendationsPaginator.d.ts +7 -0
  24. package/dist-types/pagination/index.d.ts +1 -0
  25. package/dist-types/protocols/Aws_query.d.ts +18 -0
  26. package/dist-types/ts3.4/RDS.d.ts +34 -0
  27. package/dist-types/ts3.4/RDSClient.d.ts +12 -0
  28. package/dist-types/ts3.4/commands/DescribeDBRecommendationsCommand.d.ts +42 -0
  29. package/dist-types/ts3.4/commands/ModifyDBRecommendationCommand.d.ts +42 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  31. package/dist-types/ts3.4/models/models_1.d.ts +107 -0
  32. package/dist-types/ts3.4/pagination/DescribeDBRecommendationsPaginator.d.ts +11 -0
  33. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  34. package/dist-types/ts3.4/protocols/Aws_query.d.ts +24 -0
  35. package/package.json +4 -4
package/dist-es/RDS.js CHANGED
@@ -73,6 +73,7 @@ import { DescribeDBProxiesCommand, } from "./commands/DescribeDBProxiesCommand";
73
73
  import { DescribeDBProxyEndpointsCommand, } from "./commands/DescribeDBProxyEndpointsCommand";
74
74
  import { DescribeDBProxyTargetGroupsCommand, } from "./commands/DescribeDBProxyTargetGroupsCommand";
75
75
  import { DescribeDBProxyTargetsCommand, } from "./commands/DescribeDBProxyTargetsCommand";
76
+ import { DescribeDBRecommendationsCommand, } from "./commands/DescribeDBRecommendationsCommand";
76
77
  import { DescribeDBSecurityGroupsCommand, } from "./commands/DescribeDBSecurityGroupsCommand";
77
78
  import { DescribeDBSnapshotAttributesCommand, } from "./commands/DescribeDBSnapshotAttributesCommand";
78
79
  import { DescribeDBSnapshotsCommand, } from "./commands/DescribeDBSnapshotsCommand";
@@ -112,6 +113,7 @@ import { ModifyDBParameterGroupCommand, } from "./commands/ModifyDBParameterGrou
112
113
  import { ModifyDBProxyCommand, } from "./commands/ModifyDBProxyCommand";
113
114
  import { ModifyDBProxyEndpointCommand, } from "./commands/ModifyDBProxyEndpointCommand";
114
115
  import { ModifyDBProxyTargetGroupCommand, } from "./commands/ModifyDBProxyTargetGroupCommand";
116
+ import { ModifyDBRecommendationCommand, } from "./commands/ModifyDBRecommendationCommand";
115
117
  import { ModifyDBSnapshotAttributeCommand, } from "./commands/ModifyDBSnapshotAttributeCommand";
116
118
  import { ModifyDBSnapshotCommand, } from "./commands/ModifyDBSnapshotCommand";
117
119
  import { ModifyDBSubnetGroupCommand, } from "./commands/ModifyDBSubnetGroupCommand";
@@ -227,6 +229,7 @@ const commands = {
227
229
  DescribeDBProxyEndpointsCommand,
228
230
  DescribeDBProxyTargetGroupsCommand,
229
231
  DescribeDBProxyTargetsCommand,
232
+ DescribeDBRecommendationsCommand,
230
233
  DescribeDBSecurityGroupsCommand,
231
234
  DescribeDBSnapshotAttributesCommand,
232
235
  DescribeDBSnapshotsCommand,
@@ -266,6 +269,7 @@ const commands = {
266
269
  ModifyDBProxyCommand,
267
270
  ModifyDBProxyEndpointCommand,
268
271
  ModifyDBProxyTargetGroupCommand,
272
+ ModifyDBRecommendationCommand,
269
273
  ModifyDBSnapshotCommand,
270
274
  ModifyDBSnapshotAttributeCommand,
271
275
  ModifyDBSubnetGroupCommand,
@@ -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_DescribeDBRecommendationsCommand, se_DescribeDBRecommendationsCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DescribeDBRecommendationsCommand 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, DescribeDBRecommendationsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RDSClient";
26
+ const commandName = "DescribeDBRecommendationsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonRDSv19",
35
+ operation: "DescribeDBRecommendations",
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_DescribeDBRecommendationsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeDBRecommendationsCommand(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_ModifyDBRecommendationCommand, se_ModifyDBRecommendationCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class ModifyDBRecommendationCommand 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, ModifyDBRecommendationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RDSClient";
26
+ const commandName = "ModifyDBRecommendationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonRDSv19",
35
+ operation: "ModifyDBRecommendation",
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_ModifyDBRecommendationCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ModifyDBRecommendationCommand(output, context);
46
+ }
47
+ }
@@ -72,6 +72,7 @@ export * from "./DescribeDBProxiesCommand";
72
72
  export * from "./DescribeDBProxyEndpointsCommand";
73
73
  export * from "./DescribeDBProxyTargetGroupsCommand";
74
74
  export * from "./DescribeDBProxyTargetsCommand";
75
+ export * from "./DescribeDBRecommendationsCommand";
75
76
  export * from "./DescribeDBSecurityGroupsCommand";
76
77
  export * from "./DescribeDBSnapshotAttributesCommand";
77
78
  export * from "./DescribeDBSnapshotTenantDatabasesCommand";
@@ -111,6 +112,7 @@ export * from "./ModifyDBParameterGroupCommand";
111
112
  export * from "./ModifyDBProxyCommand";
112
113
  export * from "./ModifyDBProxyEndpointCommand";
113
114
  export * from "./ModifyDBProxyTargetGroupCommand";
115
+ export * from "./ModifyDBRecommendationCommand";
114
116
  export * from "./ModifyDBSnapshotAttributeCommand";
115
117
  export * from "./ModifyDBSnapshotCommand";
116
118
  export * from "./ModifyDBSubnetGroupCommand";
@@ -0,0 +1,25 @@
1
+ import { DescribeDBRecommendationsCommand, } from "../commands/DescribeDBRecommendationsCommand";
2
+ import { RDSClient } from "../RDSClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new DescribeDBRecommendationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateDescribeDBRecommendations(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
+ }
@@ -18,6 +18,7 @@ export * from "./DescribeDBProxiesPaginator";
18
18
  export * from "./DescribeDBProxyEndpointsPaginator";
19
19
  export * from "./DescribeDBProxyTargetGroupsPaginator";
20
20
  export * from "./DescribeDBProxyTargetsPaginator";
21
+ export * from "./DescribeDBRecommendationsPaginator";
21
22
  export * from "./DescribeDBSecurityGroupsPaginator";
22
23
  export * from "./DescribeDBSnapshotTenantDatabasesPaginator";
23
24
  export * from "./DescribeDBSnapshotsPaginator";