@aws-sdk/client-trustedadvisor 3.477.0 → 3.481.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/dist-cjs/commands/GetOrganizationRecommendationCommand.js +18 -41
- package/dist-cjs/commands/GetRecommendationCommand.js +18 -41
- package/dist-cjs/commands/ListChecksCommand.js +18 -41
- package/dist-cjs/commands/ListOrganizationRecommendationAccountsCommand.js +18 -41
- package/dist-cjs/commands/ListOrganizationRecommendationResourcesCommand.js +18 -41
- package/dist-cjs/commands/ListOrganizationRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/ListRecommendationResourcesCommand.js +18 -41
- package/dist-cjs/commands/ListRecommendationsCommand.js +18 -41
- package/dist-cjs/commands/UpdateOrganizationRecommendationLifecycleCommand.js +18 -41
- package/dist-cjs/commands/UpdateRecommendationLifecycleCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/ListChecksPaginator.js +2 -24
- package/dist-cjs/pagination/ListOrganizationRecommendationAccountsPaginator.js +2 -24
- package/dist-cjs/pagination/ListOrganizationRecommendationResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListOrganizationRecommendationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRecommendationResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRecommendationsPaginator.js +2 -24
- package/dist-es/commands/GetOrganizationRecommendationCommand.js +18 -41
- package/dist-es/commands/GetRecommendationCommand.js +18 -41
- package/dist-es/commands/ListChecksCommand.js +18 -41
- package/dist-es/commands/ListOrganizationRecommendationAccountsCommand.js +18 -41
- package/dist-es/commands/ListOrganizationRecommendationResourcesCommand.js +18 -41
- package/dist-es/commands/ListOrganizationRecommendationsCommand.js +18 -41
- package/dist-es/commands/ListRecommendationResourcesCommand.js +18 -41
- package/dist-es/commands/ListRecommendationsCommand.js +18 -41
- package/dist-es/commands/UpdateOrganizationRecommendationLifecycleCommand.js +18 -41
- package/dist-es/commands/UpdateRecommendationLifecycleCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/ListChecksPaginator.js +2 -23
- package/dist-es/pagination/ListOrganizationRecommendationAccountsPaginator.js +2 -23
- package/dist-es/pagination/ListOrganizationRecommendationResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListOrganizationRecommendationsPaginator.js +2 -23
- package/dist-es/pagination/ListRecommendationResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListRecommendationsPaginator.js +2 -23
- package/dist-types/commands/GetOrganizationRecommendationCommand.d.ts +6 -21
- package/dist-types/commands/GetRecommendationCommand.d.ts +6 -21
- package/dist-types/commands/ListChecksCommand.d.ts +6 -21
- package/dist-types/commands/ListOrganizationRecommendationAccountsCommand.d.ts +6 -21
- package/dist-types/commands/ListOrganizationRecommendationResourcesCommand.d.ts +6 -21
- package/dist-types/commands/ListOrganizationRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/ListRecommendationResourcesCommand.d.ts +6 -21
- package/dist-types/commands/ListRecommendationsCommand.d.ts +6 -21
- package/dist-types/commands/UpdateOrganizationRecommendationLifecycleCommand.d.ts +6 -21
- package/dist-types/commands/UpdateRecommendationLifecycleCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/ListChecksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOrganizationRecommendationAccountsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOrganizationRecommendationResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOrganizationRecommendationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRecommendationResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRecommendationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetOrganizationRecommendationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListChecksCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListOrganizationRecommendationAccountsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListOrganizationRecommendationResourcesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListOrganizationRecommendationsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListRecommendationResourcesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateOrganizationRecommendationLifecycleCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/UpdateRecommendationLifecycleCommand.d.ts +12 -24
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/ListChecksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOrganizationRecommendationAccountsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOrganizationRecommendationResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOrganizationRecommendationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRecommendationResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +3 -3
- package/package.json +11 -11
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
-
class UpdateRecommendationLifecycleCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "TrustedAdvisorClient";
|
|
30
|
-
const commandName = "UpdateRecommendationLifecycleCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.UpdateRecommendationLifecycleRequestFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: (_) => _,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "TrustedAdvisor",
|
|
39
|
-
operation: "UpdateRecommendationLifecycle",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_restJson1_1.se_UpdateRecommendationLifecycleCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_restJson1_1.de_UpdateRecommendationLifecycleCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class UpdateRecommendationLifecycleCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("TrustedAdvisor", "UpdateRecommendationLifecycle", {})
|
|
23
|
+
.n("TrustedAdvisorClient", "UpdateRecommendationLifecycleCommand")
|
|
24
|
+
.f(models_0_1.UpdateRecommendationLifecycleRequestFilterSensitiveLog, void 0)
|
|
25
|
+
.ser(Aws_restJson1_1.se_UpdateRecommendationLifecycleCommand)
|
|
26
|
+
.de(Aws_restJson1_1.de_UpdateRecommendationLifecycleCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.UpdateRecommendationLifecycleCommand = UpdateRecommendationLifecycleCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveClientEndpointParameters = void 0;
|
|
3
|
+
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
5
|
return {
|
|
6
6
|
...options,
|
|
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
+
exports.commonParams = {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListChecks = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListChecksCommand_1 = require("../commands/ListChecksCommand");
|
|
5
6
|
const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListChecksCommand_1.ListChecksCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListChecks(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListChecks = paginateListChecks;
|
|
7
|
+
exports.paginateListChecks = (0, core_1.createPaginator)(TrustedAdvisorClient_1.TrustedAdvisorClient, ListChecksCommand_1.ListChecksCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOrganizationRecommendationAccounts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOrganizationRecommendationAccountsCommand_1 = require("../commands/ListOrganizationRecommendationAccountsCommand");
|
|
5
6
|
const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOrganizationRecommendationAccountsCommand_1.ListOrganizationRecommendationAccountsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOrganizationRecommendationAccounts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListOrganizationRecommendationAccounts = paginateListOrganizationRecommendationAccounts;
|
|
7
|
+
exports.paginateListOrganizationRecommendationAccounts = (0, core_1.createPaginator)(TrustedAdvisorClient_1.TrustedAdvisorClient, ListOrganizationRecommendationAccountsCommand_1.ListOrganizationRecommendationAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOrganizationRecommendationResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOrganizationRecommendationResourcesCommand_1 = require("../commands/ListOrganizationRecommendationResourcesCommand");
|
|
5
6
|
const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOrganizationRecommendationResourcesCommand_1.ListOrganizationRecommendationResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOrganizationRecommendationResources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListOrganizationRecommendationResources = paginateListOrganizationRecommendationResources;
|
|
7
|
+
exports.paginateListOrganizationRecommendationResources = (0, core_1.createPaginator)(TrustedAdvisorClient_1.TrustedAdvisorClient, ListOrganizationRecommendationResourcesCommand_1.ListOrganizationRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOrganizationRecommendations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOrganizationRecommendationsCommand_1 = require("../commands/ListOrganizationRecommendationsCommand");
|
|
5
6
|
const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOrganizationRecommendationsCommand_1.ListOrganizationRecommendationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOrganizationRecommendations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListOrganizationRecommendations = paginateListOrganizationRecommendations;
|
|
7
|
+
exports.paginateListOrganizationRecommendations = (0, core_1.createPaginator)(TrustedAdvisorClient_1.TrustedAdvisorClient, ListOrganizationRecommendationsCommand_1.ListOrganizationRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRecommendationResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRecommendationResourcesCommand_1 = require("../commands/ListRecommendationResourcesCommand");
|
|
5
6
|
const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRecommendationResourcesCommand_1.ListRecommendationResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRecommendationResources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListRecommendationResources = paginateListRecommendationResources;
|
|
7
|
+
exports.paginateListRecommendationResources = (0, core_1.createPaginator)(TrustedAdvisorClient_1.TrustedAdvisorClient, ListRecommendationResourcesCommand_1.ListRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRecommendations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRecommendationsCommand_1 = require("../commands/ListRecommendationsCommand");
|
|
5
6
|
const TrustedAdvisorClient_1 = require("../TrustedAdvisorClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRecommendationsCommand_1.ListRecommendationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRecommendations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof TrustedAdvisorClient_1.TrustedAdvisorClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListRecommendations = paginateListRecommendations;
|
|
7
|
+
exports.paginateListRecommendations = (0, core_1.createPaginator)(TrustedAdvisorClient_1.TrustedAdvisorClient, ListRecommendationsCommand_1.ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,48 +1,25 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { GetOrganizationRecommendationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { de_GetOrganizationRecommendationCommand, se_GetOrganizationRecommendationCommand, } from "../protocols/Aws_restJson1";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class GetOrganizationRecommendationCommand extends $Command
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const { logger } = configuration;
|
|
26
|
-
const clientName = "TrustedAdvisorClient";
|
|
27
|
-
const commandName = "GetOrganizationRecommendationCommand";
|
|
28
|
-
const handlerExecutionContext = {
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
32
|
-
inputFilterSensitiveLog: (_) => _,
|
|
33
|
-
outputFilterSensitiveLog: GetOrganizationRecommendationResponseFilterSensitiveLog,
|
|
34
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
-
service: "TrustedAdvisor",
|
|
36
|
-
operation: "GetOrganizationRecommendation",
|
|
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_GetOrganizationRecommendationCommand(input, context);
|
|
44
|
-
}
|
|
45
|
-
deserialize(output, context) {
|
|
46
|
-
return de_GetOrganizationRecommendationCommand(output, context);
|
|
47
|
-
}
|
|
8
|
+
export class GetOrganizationRecommendationCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("TrustedAdvisor", "GetOrganizationRecommendation", {})
|
|
20
|
+
.n("TrustedAdvisorClient", "GetOrganizationRecommendationCommand")
|
|
21
|
+
.f(void 0, GetOrganizationRecommendationResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_GetOrganizationRecommendationCommand)
|
|
23
|
+
.de(de_GetOrganizationRecommendationCommand)
|
|
24
|
+
.build() {
|
|
48
25
|
}
|
|
@@ -1,48 +1,25 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { GetRecommendationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { de_GetRecommendationCommand, se_GetRecommendationCommand } from "../protocols/Aws_restJson1";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class GetRecommendationCommand extends $Command
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const { logger } = configuration;
|
|
26
|
-
const clientName = "TrustedAdvisorClient";
|
|
27
|
-
const commandName = "GetRecommendationCommand";
|
|
28
|
-
const handlerExecutionContext = {
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
32
|
-
inputFilterSensitiveLog: (_) => _,
|
|
33
|
-
outputFilterSensitiveLog: GetRecommendationResponseFilterSensitiveLog,
|
|
34
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
-
service: "TrustedAdvisor",
|
|
36
|
-
operation: "GetRecommendation",
|
|
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_GetRecommendationCommand(input, context);
|
|
44
|
-
}
|
|
45
|
-
deserialize(output, context) {
|
|
46
|
-
return de_GetRecommendationCommand(output, context);
|
|
47
|
-
}
|
|
8
|
+
export class GetRecommendationCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("TrustedAdvisor", "GetRecommendation", {})
|
|
20
|
+
.n("TrustedAdvisorClient", "GetRecommendationCommand")
|
|
21
|
+
.f(void 0, GetRecommendationResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_GetRecommendationCommand)
|
|
23
|
+
.de(de_GetRecommendationCommand)
|
|
24
|
+
.build() {
|
|
48
25
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListChecksCommand, se_ListChecksCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListChecksCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "TrustedAdvisorClient";
|
|
26
|
-
const commandName = "ListChecksCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "TrustedAdvisor",
|
|
35
|
-
operation: "ListChecks",
|
|
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_ListChecksCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListChecksCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListChecksCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("TrustedAdvisor", "ListChecks", {})
|
|
19
|
+
.n("TrustedAdvisorClient", "ListChecksCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListChecksCommand)
|
|
22
|
+
.de(de_ListChecksCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,48 +1,25 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { ListOrganizationRecommendationAccountsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { de_ListOrganizationRecommendationAccountsCommand, se_ListOrganizationRecommendationAccountsCommand, } from "../protocols/Aws_restJson1";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class ListOrganizationRecommendationAccountsCommand extends $Command
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const { logger } = configuration;
|
|
26
|
-
const clientName = "TrustedAdvisorClient";
|
|
27
|
-
const commandName = "ListOrganizationRecommendationAccountsCommand";
|
|
28
|
-
const handlerExecutionContext = {
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
32
|
-
inputFilterSensitiveLog: (_) => _,
|
|
33
|
-
outputFilterSensitiveLog: ListOrganizationRecommendationAccountsResponseFilterSensitiveLog,
|
|
34
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
-
service: "TrustedAdvisor",
|
|
36
|
-
operation: "ListOrganizationRecommendationAccounts",
|
|
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_ListOrganizationRecommendationAccountsCommand(input, context);
|
|
44
|
-
}
|
|
45
|
-
deserialize(output, context) {
|
|
46
|
-
return de_ListOrganizationRecommendationAccountsCommand(output, context);
|
|
47
|
-
}
|
|
8
|
+
export class ListOrganizationRecommendationAccountsCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("TrustedAdvisor", "ListOrganizationRecommendationAccounts", {})
|
|
20
|
+
.n("TrustedAdvisorClient", "ListOrganizationRecommendationAccountsCommand")
|
|
21
|
+
.f(void 0, ListOrganizationRecommendationAccountsResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_ListOrganizationRecommendationAccountsCommand)
|
|
23
|
+
.de(de_ListOrganizationRecommendationAccountsCommand)
|
|
24
|
+
.build() {
|
|
48
25
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListOrganizationRecommendationResourcesCommand, se_ListOrganizationRecommendationResourcesCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListOrganizationRecommendationResourcesCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "TrustedAdvisorClient";
|
|
26
|
-
const commandName = "ListOrganizationRecommendationResourcesCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "TrustedAdvisor",
|
|
35
|
-
operation: "ListOrganizationRecommendationResources",
|
|
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_ListOrganizationRecommendationResourcesCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListOrganizationRecommendationResourcesCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListOrganizationRecommendationResourcesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("TrustedAdvisor", "ListOrganizationRecommendationResources", {})
|
|
19
|
+
.n("TrustedAdvisorClient", "ListOrganizationRecommendationResourcesCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListOrganizationRecommendationResourcesCommand)
|
|
22
|
+
.de(de_ListOrganizationRecommendationResourcesCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|