@aws-sdk/client-trustedadvisor 3.476.0 → 3.478.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/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-cjs/protocols/Aws_restJson1.js +103 -173
- 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-es/protocols/Aws_restJson1.js +104 -174
- 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/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 +7 -6
|
@@ -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,264 +1,181 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateRecommendationLifecycleCommand = exports.de_UpdateOrganizationRecommendationLifecycleCommand = exports.de_ListRecommendationsCommand = exports.de_ListRecommendationResourcesCommand = exports.de_ListOrganizationRecommendationsCommand = exports.de_ListOrganizationRecommendationResourcesCommand = exports.de_ListOrganizationRecommendationAccountsCommand = exports.de_ListChecksCommand = exports.de_GetRecommendationCommand = exports.de_GetOrganizationRecommendationCommand = exports.se_UpdateRecommendationLifecycleCommand = exports.se_UpdateOrganizationRecommendationLifecycleCommand = exports.se_ListRecommendationsCommand = exports.se_ListRecommendationResourcesCommand = exports.se_ListOrganizationRecommendationsCommand = exports.se_ListOrganizationRecommendationResourcesCommand = exports.se_ListOrganizationRecommendationAccountsCommand = exports.se_ListChecksCommand = exports.se_GetRecommendationCommand = exports.se_GetOrganizationRecommendationCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const TrustedAdvisorServiceException_1 = require("../models/TrustedAdvisorServiceException");
|
|
8
8
|
const se_GetOrganizationRecommendationCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
11
|
+
b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}");
|
|
12
|
+
b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
14
13
|
let body;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hostname,
|
|
18
|
-
port,
|
|
19
|
-
method: "GET",
|
|
20
|
-
headers,
|
|
21
|
-
path: resolvedPath,
|
|
22
|
-
body,
|
|
23
|
-
});
|
|
14
|
+
b.m("GET").h(headers).b(body);
|
|
15
|
+
return b.build();
|
|
24
16
|
};
|
|
25
17
|
exports.se_GetOrganizationRecommendationCommand = se_GetOrganizationRecommendationCommand;
|
|
26
18
|
const se_GetRecommendationCommand = async (input, context) => {
|
|
27
|
-
const
|
|
19
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
28
20
|
const headers = {};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
21
|
+
b.bp("/v1/recommendations/{recommendationIdentifier}");
|
|
22
|
+
b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
32
23
|
let body;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
hostname,
|
|
36
|
-
port,
|
|
37
|
-
method: "GET",
|
|
38
|
-
headers,
|
|
39
|
-
path: resolvedPath,
|
|
40
|
-
body,
|
|
41
|
-
});
|
|
24
|
+
b.m("GET").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
42
26
|
};
|
|
43
27
|
exports.se_GetRecommendationCommand = se_GetRecommendationCommand;
|
|
44
28
|
const se_ListChecksCommand = async (input, context) => {
|
|
45
|
-
const
|
|
29
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
46
30
|
const headers = {};
|
|
47
|
-
|
|
31
|
+
b.bp("/v1/checks");
|
|
48
32
|
const query = (0, smithy_client_1.map)({
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
33
|
+
[_nT]: [, input[_nT]],
|
|
34
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
35
|
+
[_p]: [, input[_p]],
|
|
36
|
+
[_aS]: [, input[_aS]],
|
|
37
|
+
[_s]: [, input[_s]],
|
|
38
|
+
[_l]: [, input[_l]],
|
|
55
39
|
});
|
|
56
40
|
let body;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
hostname,
|
|
60
|
-
port,
|
|
61
|
-
method: "GET",
|
|
62
|
-
headers,
|
|
63
|
-
path: resolvedPath,
|
|
64
|
-
query,
|
|
65
|
-
body,
|
|
66
|
-
});
|
|
41
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
42
|
+
return b.build();
|
|
67
43
|
};
|
|
68
44
|
exports.se_ListChecksCommand = se_ListChecksCommand;
|
|
69
45
|
const se_ListOrganizationRecommendationAccountsCommand = async (input, context) => {
|
|
70
|
-
const
|
|
46
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
71
47
|
const headers = {};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
48
|
+
b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts");
|
|
49
|
+
b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
75
50
|
const query = (0, smithy_client_1.map)({
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
51
|
+
[_nT]: [, input[_nT]],
|
|
52
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
53
|
+
[_aAI]: [, input[_aAI]],
|
|
79
54
|
});
|
|
80
55
|
let body;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
hostname,
|
|
84
|
-
port,
|
|
85
|
-
method: "GET",
|
|
86
|
-
headers,
|
|
87
|
-
path: resolvedPath,
|
|
88
|
-
query,
|
|
89
|
-
body,
|
|
90
|
-
});
|
|
56
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
57
|
+
return b.build();
|
|
91
58
|
};
|
|
92
59
|
exports.se_ListOrganizationRecommendationAccountsCommand = se_ListOrganizationRecommendationAccountsCommand;
|
|
93
60
|
const se_ListOrganizationRecommendationResourcesCommand = async (input, context) => {
|
|
94
|
-
const
|
|
61
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
95
62
|
const headers = {};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
63
|
+
b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources");
|
|
64
|
+
b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
99
65
|
const query = (0, smithy_client_1.map)({
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
66
|
+
[_nT]: [, input[_nT]],
|
|
67
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
68
|
+
[_st]: [, input[_st]],
|
|
69
|
+
[_rC]: [, input[_rC]],
|
|
70
|
+
[_aAI]: [, input[_aAI]],
|
|
105
71
|
});
|
|
106
72
|
let body;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
hostname,
|
|
110
|
-
port,
|
|
111
|
-
method: "GET",
|
|
112
|
-
headers,
|
|
113
|
-
path: resolvedPath,
|
|
114
|
-
query,
|
|
115
|
-
body,
|
|
116
|
-
});
|
|
73
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
74
|
+
return b.build();
|
|
117
75
|
};
|
|
118
76
|
exports.se_ListOrganizationRecommendationResourcesCommand = se_ListOrganizationRecommendationResourcesCommand;
|
|
119
77
|
const se_ListOrganizationRecommendationsCommand = async (input, context) => {
|
|
120
|
-
const
|
|
78
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
121
79
|
const headers = {};
|
|
122
|
-
|
|
80
|
+
b.bp("/v1/organization-recommendations");
|
|
123
81
|
const query = (0, smithy_client_1.map)({
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
82
|
+
[_nT]: [, input[_nT]],
|
|
83
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
84
|
+
[_t]: [, input[_t]],
|
|
85
|
+
[_st]: [, input[_st]],
|
|
86
|
+
[_p]: [, input[_p]],
|
|
87
|
+
[_aS]: [, input[_aS]],
|
|
88
|
+
[_s]: [, input[_s]],
|
|
89
|
+
[_cI]: [, input[_cI]],
|
|
90
|
+
[_aLUA]: [
|
|
133
91
|
() => input.afterLastUpdatedAt !== void 0,
|
|
134
|
-
() => (input.
|
|
92
|
+
() => (input[_aLUA].toISOString().split(".")[0] + "Z").toString(),
|
|
135
93
|
],
|
|
136
|
-
|
|
94
|
+
[_bLUA]: [
|
|
137
95
|
() => input.beforeLastUpdatedAt !== void 0,
|
|
138
|
-
() => (input.
|
|
96
|
+
() => (input[_bLUA].toISOString().split(".")[0] + "Z").toString(),
|
|
139
97
|
],
|
|
140
98
|
});
|
|
141
99
|
let body;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
hostname,
|
|
145
|
-
port,
|
|
146
|
-
method: "GET",
|
|
147
|
-
headers,
|
|
148
|
-
path: resolvedPath,
|
|
149
|
-
query,
|
|
150
|
-
body,
|
|
151
|
-
});
|
|
100
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
101
|
+
return b.build();
|
|
152
102
|
};
|
|
153
103
|
exports.se_ListOrganizationRecommendationsCommand = se_ListOrganizationRecommendationsCommand;
|
|
154
104
|
const se_ListRecommendationResourcesCommand = async (input, context) => {
|
|
155
|
-
const
|
|
105
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
156
106
|
const headers = {};
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
107
|
+
b.bp("/v1/recommendations/{recommendationIdentifier}/resources");
|
|
108
|
+
b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
160
109
|
const query = (0, smithy_client_1.map)({
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
110
|
+
[_nT]: [, input[_nT]],
|
|
111
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
112
|
+
[_st]: [, input[_st]],
|
|
113
|
+
[_rC]: [, input[_rC]],
|
|
165
114
|
});
|
|
166
115
|
let body;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
hostname,
|
|
170
|
-
port,
|
|
171
|
-
method: "GET",
|
|
172
|
-
headers,
|
|
173
|
-
path: resolvedPath,
|
|
174
|
-
query,
|
|
175
|
-
body,
|
|
176
|
-
});
|
|
116
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
117
|
+
return b.build();
|
|
177
118
|
};
|
|
178
119
|
exports.se_ListRecommendationResourcesCommand = se_ListRecommendationResourcesCommand;
|
|
179
120
|
const se_ListRecommendationsCommand = async (input, context) => {
|
|
180
|
-
const
|
|
121
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
181
122
|
const headers = {};
|
|
182
|
-
|
|
123
|
+
b.bp("/v1/recommendations");
|
|
183
124
|
const query = (0, smithy_client_1.map)({
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
125
|
+
[_nT]: [, input[_nT]],
|
|
126
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
127
|
+
[_t]: [, input[_t]],
|
|
128
|
+
[_st]: [, input[_st]],
|
|
129
|
+
[_p]: [, input[_p]],
|
|
130
|
+
[_aS]: [, input[_aS]],
|
|
131
|
+
[_s]: [, input[_s]],
|
|
132
|
+
[_cI]: [, input[_cI]],
|
|
133
|
+
[_aLUA]: [
|
|
193
134
|
() => input.afterLastUpdatedAt !== void 0,
|
|
194
|
-
() => (input.
|
|
135
|
+
() => (input[_aLUA].toISOString().split(".")[0] + "Z").toString(),
|
|
195
136
|
],
|
|
196
|
-
|
|
137
|
+
[_bLUA]: [
|
|
197
138
|
() => input.beforeLastUpdatedAt !== void 0,
|
|
198
|
-
() => (input.
|
|
139
|
+
() => (input[_bLUA].toISOString().split(".")[0] + "Z").toString(),
|
|
199
140
|
],
|
|
200
141
|
});
|
|
201
142
|
let body;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
hostname,
|
|
205
|
-
port,
|
|
206
|
-
method: "GET",
|
|
207
|
-
headers,
|
|
208
|
-
path: resolvedPath,
|
|
209
|
-
query,
|
|
210
|
-
body,
|
|
211
|
-
});
|
|
143
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
144
|
+
return b.build();
|
|
212
145
|
};
|
|
213
146
|
exports.se_ListRecommendationsCommand = se_ListRecommendationsCommand;
|
|
214
147
|
const se_UpdateOrganizationRecommendationLifecycleCommand = async (input, context) => {
|
|
215
|
-
const
|
|
148
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
216
149
|
const headers = {
|
|
217
150
|
"content-type": "application/json",
|
|
218
151
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
152
|
+
b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle");
|
|
153
|
+
b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
222
154
|
let body;
|
|
223
155
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
224
156
|
lifecycleStage: [],
|
|
225
157
|
updateReason: [],
|
|
226
158
|
updateReasonCode: [],
|
|
227
159
|
}));
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
hostname,
|
|
231
|
-
port,
|
|
232
|
-
method: "PUT",
|
|
233
|
-
headers,
|
|
234
|
-
path: resolvedPath,
|
|
235
|
-
body,
|
|
236
|
-
});
|
|
160
|
+
b.m("PUT").h(headers).b(body);
|
|
161
|
+
return b.build();
|
|
237
162
|
};
|
|
238
163
|
exports.se_UpdateOrganizationRecommendationLifecycleCommand = se_UpdateOrganizationRecommendationLifecycleCommand;
|
|
239
164
|
const se_UpdateRecommendationLifecycleCommand = async (input, context) => {
|
|
240
|
-
const
|
|
165
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
241
166
|
const headers = {
|
|
242
167
|
"content-type": "application/json",
|
|
243
168
|
};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
169
|
+
b.bp("/v1/recommendations/{recommendationIdentifier}/lifecycle");
|
|
170
|
+
b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
247
171
|
let body;
|
|
248
172
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
249
173
|
lifecycleStage: [],
|
|
250
174
|
updateReason: [],
|
|
251
175
|
updateReasonCode: [],
|
|
252
176
|
}));
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
hostname,
|
|
256
|
-
port,
|
|
257
|
-
method: "PUT",
|
|
258
|
-
headers,
|
|
259
|
-
path: resolvedPath,
|
|
260
|
-
body,
|
|
261
|
-
});
|
|
177
|
+
b.m("PUT").h(headers).b(body);
|
|
178
|
+
return b.build();
|
|
262
179
|
};
|
|
263
180
|
exports.se_UpdateRecommendationLifecycleCommand = se_UpdateRecommendationLifecycleCommand;
|
|
264
181
|
const de_GetOrganizationRecommendationCommand = async (output, context) => {
|
|
@@ -981,6 +898,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
981
898
|
value !== "" &&
|
|
982
899
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
983
900
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
901
|
+
const _aAI = "affectedAccountId";
|
|
902
|
+
const _aLUA = "afterLastUpdatedAt";
|
|
903
|
+
const _aS = "awsService";
|
|
904
|
+
const _bLUA = "beforeLastUpdatedAt";
|
|
905
|
+
const _cI = "checkIdentifier";
|
|
906
|
+
const _l = "language";
|
|
907
|
+
const _mR = "maxResults";
|
|
908
|
+
const _nT = "nextToken";
|
|
909
|
+
const _p = "pillar";
|
|
910
|
+
const _rC = "regionCode";
|
|
911
|
+
const _s = "source";
|
|
912
|
+
const _st = "status";
|
|
913
|
+
const _t = "type";
|
|
984
914
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
985
915
|
if (encoded.length) {
|
|
986
916
|
return JSON.parse(encoded);
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListChecksCommand } from "../commands/ListChecksCommand";
|
|
2
3
|
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListChecksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListChecks(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof TrustedAdvisorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListChecks = createPaginator(TrustedAdvisorClient, ListChecksCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListOrganizationRecommendationAccountsCommand, } from "../commands/ListOrganizationRecommendationAccountsCommand";
|
|
2
3
|
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListOrganizationRecommendationAccountsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListOrganizationRecommendationAccounts(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof TrustedAdvisorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListOrganizationRecommendationAccounts = createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationAccountsCommand, "nextToken", "nextToken", "maxResults");
|