@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.
- package/README.md +16 -0
- package/dist-cjs/RDS.js +4 -0
- package/dist-cjs/commands/DescribeDBRecommendationsCommand.js +51 -0
- package/dist-cjs/commands/ModifyDBRecommendationCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/pagination/DescribeDBRecommendationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_query.js +6427 -5124
- package/dist-es/RDS.js +4 -0
- package/dist-es/commands/DescribeDBRecommendationsCommand.js +47 -0
- package/dist-es/commands/ModifyDBRecommendationCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/pagination/DescribeDBRecommendationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_query.js +6417 -5118
- package/dist-types/RDS.d.ts +14 -0
- package/dist-types/RDSClient.d.ts +4 -2
- package/dist-types/commands/DescribeDBRecommendationsCommand.d.ts +204 -0
- package/dist-types/commands/ModifyDBRecommendationCommand.d.ts +197 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +5 -0
- package/dist-types/models/models_1.d.ts +798 -0
- package/dist-types/pagination/DescribeDBRecommendationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_query.d.ts +18 -0
- package/dist-types/ts3.4/RDS.d.ts +34 -0
- package/dist-types/ts3.4/RDSClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DescribeDBRecommendationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ModifyDBRecommendationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_1.d.ts +107 -0
- package/dist-types/ts3.4/pagination/DescribeDBRecommendationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +24 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -847,6 +847,14 @@ DescribeDBProxyTargets
|
|
|
847
847
|
|
|
848
848
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rds/command/DescribeDBProxyTargetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DescribeDBProxyTargetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DescribeDBProxyTargetsCommandOutput/)
|
|
849
849
|
|
|
850
|
+
</details>
|
|
851
|
+
<details>
|
|
852
|
+
<summary>
|
|
853
|
+
DescribeDBRecommendations
|
|
854
|
+
</summary>
|
|
855
|
+
|
|
856
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rds/command/DescribeDBRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DescribeDBRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DescribeDBRecommendationsCommandOutput/)
|
|
857
|
+
|
|
850
858
|
</details>
|
|
851
859
|
<details>
|
|
852
860
|
<summary>
|
|
@@ -1159,6 +1167,14 @@ ModifyDBProxyTargetGroup
|
|
|
1159
1167
|
|
|
1160
1168
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rds/command/ModifyDBProxyTargetGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/ModifyDBProxyTargetGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/ModifyDBProxyTargetGroupCommandOutput/)
|
|
1161
1169
|
|
|
1170
|
+
</details>
|
|
1171
|
+
<details>
|
|
1172
|
+
<summary>
|
|
1173
|
+
ModifyDBRecommendation
|
|
1174
|
+
</summary>
|
|
1175
|
+
|
|
1176
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rds/command/ModifyDBRecommendationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/ModifyDBRecommendationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/ModifyDBRecommendationCommandOutput/)
|
|
1177
|
+
|
|
1162
1178
|
</details>
|
|
1163
1179
|
<details>
|
|
1164
1180
|
<summary>
|
package/dist-cjs/RDS.js
CHANGED
|
@@ -76,6 +76,7 @@ const DescribeDBProxiesCommand_1 = require("./commands/DescribeDBProxiesCommand"
|
|
|
76
76
|
const DescribeDBProxyEndpointsCommand_1 = require("./commands/DescribeDBProxyEndpointsCommand");
|
|
77
77
|
const DescribeDBProxyTargetGroupsCommand_1 = require("./commands/DescribeDBProxyTargetGroupsCommand");
|
|
78
78
|
const DescribeDBProxyTargetsCommand_1 = require("./commands/DescribeDBProxyTargetsCommand");
|
|
79
|
+
const DescribeDBRecommendationsCommand_1 = require("./commands/DescribeDBRecommendationsCommand");
|
|
79
80
|
const DescribeDBSecurityGroupsCommand_1 = require("./commands/DescribeDBSecurityGroupsCommand");
|
|
80
81
|
const DescribeDBSnapshotAttributesCommand_1 = require("./commands/DescribeDBSnapshotAttributesCommand");
|
|
81
82
|
const DescribeDBSnapshotsCommand_1 = require("./commands/DescribeDBSnapshotsCommand");
|
|
@@ -115,6 +116,7 @@ const ModifyDBParameterGroupCommand_1 = require("./commands/ModifyDBParameterGro
|
|
|
115
116
|
const ModifyDBProxyCommand_1 = require("./commands/ModifyDBProxyCommand");
|
|
116
117
|
const ModifyDBProxyEndpointCommand_1 = require("./commands/ModifyDBProxyEndpointCommand");
|
|
117
118
|
const ModifyDBProxyTargetGroupCommand_1 = require("./commands/ModifyDBProxyTargetGroupCommand");
|
|
119
|
+
const ModifyDBRecommendationCommand_1 = require("./commands/ModifyDBRecommendationCommand");
|
|
118
120
|
const ModifyDBSnapshotAttributeCommand_1 = require("./commands/ModifyDBSnapshotAttributeCommand");
|
|
119
121
|
const ModifyDBSnapshotCommand_1 = require("./commands/ModifyDBSnapshotCommand");
|
|
120
122
|
const ModifyDBSubnetGroupCommand_1 = require("./commands/ModifyDBSubnetGroupCommand");
|
|
@@ -230,6 +232,7 @@ const commands = {
|
|
|
230
232
|
DescribeDBProxyEndpointsCommand: DescribeDBProxyEndpointsCommand_1.DescribeDBProxyEndpointsCommand,
|
|
231
233
|
DescribeDBProxyTargetGroupsCommand: DescribeDBProxyTargetGroupsCommand_1.DescribeDBProxyTargetGroupsCommand,
|
|
232
234
|
DescribeDBProxyTargetsCommand: DescribeDBProxyTargetsCommand_1.DescribeDBProxyTargetsCommand,
|
|
235
|
+
DescribeDBRecommendationsCommand: DescribeDBRecommendationsCommand_1.DescribeDBRecommendationsCommand,
|
|
233
236
|
DescribeDBSecurityGroupsCommand: DescribeDBSecurityGroupsCommand_1.DescribeDBSecurityGroupsCommand,
|
|
234
237
|
DescribeDBSnapshotAttributesCommand: DescribeDBSnapshotAttributesCommand_1.DescribeDBSnapshotAttributesCommand,
|
|
235
238
|
DescribeDBSnapshotsCommand: DescribeDBSnapshotsCommand_1.DescribeDBSnapshotsCommand,
|
|
@@ -269,6 +272,7 @@ const commands = {
|
|
|
269
272
|
ModifyDBProxyCommand: ModifyDBProxyCommand_1.ModifyDBProxyCommand,
|
|
270
273
|
ModifyDBProxyEndpointCommand: ModifyDBProxyEndpointCommand_1.ModifyDBProxyEndpointCommand,
|
|
271
274
|
ModifyDBProxyTargetGroupCommand: ModifyDBProxyTargetGroupCommand_1.ModifyDBProxyTargetGroupCommand,
|
|
275
|
+
ModifyDBRecommendationCommand: ModifyDBRecommendationCommand_1.ModifyDBRecommendationCommand,
|
|
272
276
|
ModifyDBSnapshotCommand: ModifyDBSnapshotCommand_1.ModifyDBSnapshotCommand,
|
|
273
277
|
ModifyDBSnapshotAttributeCommand: ModifyDBSnapshotAttributeCommand_1.ModifyDBSnapshotAttributeCommand,
|
|
274
278
|
ModifyDBSubnetGroupCommand: ModifyDBSubnetGroupCommand_1.ModifyDBSubnetGroupCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeDBRecommendationsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
|
+
class DescribeDBRecommendationsCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeDBRecommendationsCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "RDSClient";
|
|
29
|
+
const commandName = "DescribeDBRecommendationsCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonRDSv19",
|
|
38
|
+
operation: "DescribeDBRecommendations",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_query_1.se_DescribeDBRecommendationsCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_query_1.de_DescribeDBRecommendationsCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.DescribeDBRecommendationsCommand = DescribeDBRecommendationsCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModifyDBRecommendationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
|
+
class ModifyDBRecommendationCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyDBRecommendationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "RDSClient";
|
|
29
|
+
const commandName = "ModifyDBRecommendationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonRDSv19",
|
|
38
|
+
operation: "ModifyDBRecommendation",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_query_1.se_ModifyDBRecommendationCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_query_1.de_ModifyDBRecommendationCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ModifyDBRecommendationCommand = ModifyDBRecommendationCommand;
|
|
@@ -75,6 +75,7 @@ tslib_1.__exportStar(require("./DescribeDBProxiesCommand"), exports);
|
|
|
75
75
|
tslib_1.__exportStar(require("./DescribeDBProxyEndpointsCommand"), exports);
|
|
76
76
|
tslib_1.__exportStar(require("./DescribeDBProxyTargetGroupsCommand"), exports);
|
|
77
77
|
tslib_1.__exportStar(require("./DescribeDBProxyTargetsCommand"), exports);
|
|
78
|
+
tslib_1.__exportStar(require("./DescribeDBRecommendationsCommand"), exports);
|
|
78
79
|
tslib_1.__exportStar(require("./DescribeDBSecurityGroupsCommand"), exports);
|
|
79
80
|
tslib_1.__exportStar(require("./DescribeDBSnapshotAttributesCommand"), exports);
|
|
80
81
|
tslib_1.__exportStar(require("./DescribeDBSnapshotTenantDatabasesCommand"), exports);
|
|
@@ -114,6 +115,7 @@ tslib_1.__exportStar(require("./ModifyDBParameterGroupCommand"), exports);
|
|
|
114
115
|
tslib_1.__exportStar(require("./ModifyDBProxyCommand"), exports);
|
|
115
116
|
tslib_1.__exportStar(require("./ModifyDBProxyEndpointCommand"), exports);
|
|
116
117
|
tslib_1.__exportStar(require("./ModifyDBProxyTargetGroupCommand"), exports);
|
|
118
|
+
tslib_1.__exportStar(require("./ModifyDBRecommendationCommand"), exports);
|
|
117
119
|
tslib_1.__exportStar(require("./ModifyDBSnapshotAttributeCommand"), exports);
|
|
118
120
|
tslib_1.__exportStar(require("./ModifyDBSnapshotCommand"), exports);
|
|
119
121
|
tslib_1.__exportStar(require("./ModifyDBSubnetGroupCommand"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateDescribeDBRecommendations = void 0;
|
|
4
|
+
const DescribeDBRecommendationsCommand_1 = require("../commands/DescribeDBRecommendationsCommand");
|
|
5
|
+
const RDSClient_1 = require("../RDSClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new DescribeDBRecommendationsCommand_1.DescribeDBRecommendationsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateDescribeDBRecommendations(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.Marker = token;
|
|
15
|
+
input["MaxRecords"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof RDSClient_1.RDSClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected RDS | RDSClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.Marker;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateDescribeDBRecommendations = paginateDescribeDBRecommendations;
|
|
@@ -21,6 +21,7 @@ tslib_1.__exportStar(require("./DescribeDBProxiesPaginator"), exports);
|
|
|
21
21
|
tslib_1.__exportStar(require("./DescribeDBProxyEndpointsPaginator"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./DescribeDBProxyTargetGroupsPaginator"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./DescribeDBProxyTargetsPaginator"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./DescribeDBRecommendationsPaginator"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./DescribeDBSecurityGroupsPaginator"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./DescribeDBSnapshotTenantDatabasesPaginator"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./DescribeDBSnapshotsPaginator"), exports);
|