@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,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListOrganizationRecommendationResourcesCommand, } from "../commands/ListOrganizationRecommendationResourcesCommand";
|
|
2
3
|
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListOrganizationRecommendationResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListOrganizationRecommendationResources(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 paginateListOrganizationRecommendationResources = createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListOrganizationRecommendationsCommand, } from "../commands/ListOrganizationRecommendationsCommand";
|
|
2
3
|
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListOrganizationRecommendationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListOrganizationRecommendations(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 paginateListOrganizationRecommendations = createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRecommendationResourcesCommand, } from "../commands/ListRecommendationResourcesCommand";
|
|
2
3
|
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRecommendationResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRecommendationResources(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 paginateListRecommendationResources = createPaginator(TrustedAdvisorClient, ListRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRecommendationsCommand, } from "../commands/ListRecommendationsCommand";
|
|
2
3
|
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRecommendationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRecommendations(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 paginateListRecommendations = createPaginator(TrustedAdvisorClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,252 +1,169 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { TrustedAdvisorServiceException as __BaseException } from "../models/TrustedAdvisorServiceException";
|
|
5
5
|
export const se_GetOrganizationRecommendationCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
8
|
+
b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}");
|
|
9
|
+
b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
11
10
|
let body;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
hostname,
|
|
15
|
-
port,
|
|
16
|
-
method: "GET",
|
|
17
|
-
headers,
|
|
18
|
-
path: resolvedPath,
|
|
19
|
-
body,
|
|
20
|
-
});
|
|
11
|
+
b.m("GET").h(headers).b(body);
|
|
12
|
+
return b.build();
|
|
21
13
|
};
|
|
22
14
|
export const se_GetRecommendationCommand = async (input, context) => {
|
|
23
|
-
const
|
|
15
|
+
const b = rb(input, context);
|
|
24
16
|
const headers = {};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
17
|
+
b.bp("/v1/recommendations/{recommendationIdentifier}");
|
|
18
|
+
b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
28
19
|
let body;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
hostname,
|
|
32
|
-
port,
|
|
33
|
-
method: "GET",
|
|
34
|
-
headers,
|
|
35
|
-
path: resolvedPath,
|
|
36
|
-
body,
|
|
37
|
-
});
|
|
20
|
+
b.m("GET").h(headers).b(body);
|
|
21
|
+
return b.build();
|
|
38
22
|
};
|
|
39
23
|
export const se_ListChecksCommand = async (input, context) => {
|
|
40
|
-
const
|
|
24
|
+
const b = rb(input, context);
|
|
41
25
|
const headers = {};
|
|
42
|
-
|
|
26
|
+
b.bp("/v1/checks");
|
|
43
27
|
const query = map({
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
28
|
+
[_nT]: [, input[_nT]],
|
|
29
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
30
|
+
[_p]: [, input[_p]],
|
|
31
|
+
[_aS]: [, input[_aS]],
|
|
32
|
+
[_s]: [, input[_s]],
|
|
33
|
+
[_l]: [, input[_l]],
|
|
50
34
|
});
|
|
51
35
|
let body;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
hostname,
|
|
55
|
-
port,
|
|
56
|
-
method: "GET",
|
|
57
|
-
headers,
|
|
58
|
-
path: resolvedPath,
|
|
59
|
-
query,
|
|
60
|
-
body,
|
|
61
|
-
});
|
|
36
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
37
|
+
return b.build();
|
|
62
38
|
};
|
|
63
39
|
export const se_ListOrganizationRecommendationAccountsCommand = async (input, context) => {
|
|
64
|
-
const
|
|
40
|
+
const b = rb(input, context);
|
|
65
41
|
const headers = {};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
42
|
+
b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts");
|
|
43
|
+
b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
69
44
|
const query = map({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
45
|
+
[_nT]: [, input[_nT]],
|
|
46
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
47
|
+
[_aAI]: [, input[_aAI]],
|
|
73
48
|
});
|
|
74
49
|
let body;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
hostname,
|
|
78
|
-
port,
|
|
79
|
-
method: "GET",
|
|
80
|
-
headers,
|
|
81
|
-
path: resolvedPath,
|
|
82
|
-
query,
|
|
83
|
-
body,
|
|
84
|
-
});
|
|
50
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
51
|
+
return b.build();
|
|
85
52
|
};
|
|
86
53
|
export const se_ListOrganizationRecommendationResourcesCommand = async (input, context) => {
|
|
87
|
-
const
|
|
54
|
+
const b = rb(input, context);
|
|
88
55
|
const headers = {};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
56
|
+
b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources");
|
|
57
|
+
b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
92
58
|
const query = map({
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
59
|
+
[_nT]: [, input[_nT]],
|
|
60
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
61
|
+
[_st]: [, input[_st]],
|
|
62
|
+
[_rC]: [, input[_rC]],
|
|
63
|
+
[_aAI]: [, input[_aAI]],
|
|
98
64
|
});
|
|
99
65
|
let body;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
hostname,
|
|
103
|
-
port,
|
|
104
|
-
method: "GET",
|
|
105
|
-
headers,
|
|
106
|
-
path: resolvedPath,
|
|
107
|
-
query,
|
|
108
|
-
body,
|
|
109
|
-
});
|
|
66
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
67
|
+
return b.build();
|
|
110
68
|
};
|
|
111
69
|
export const se_ListOrganizationRecommendationsCommand = async (input, context) => {
|
|
112
|
-
const
|
|
70
|
+
const b = rb(input, context);
|
|
113
71
|
const headers = {};
|
|
114
|
-
|
|
72
|
+
b.bp("/v1/organization-recommendations");
|
|
115
73
|
const query = map({
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
74
|
+
[_nT]: [, input[_nT]],
|
|
75
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
76
|
+
[_t]: [, input[_t]],
|
|
77
|
+
[_st]: [, input[_st]],
|
|
78
|
+
[_p]: [, input[_p]],
|
|
79
|
+
[_aS]: [, input[_aS]],
|
|
80
|
+
[_s]: [, input[_s]],
|
|
81
|
+
[_cI]: [, input[_cI]],
|
|
82
|
+
[_aLUA]: [
|
|
125
83
|
() => input.afterLastUpdatedAt !== void 0,
|
|
126
|
-
() => (input.
|
|
84
|
+
() => (input[_aLUA].toISOString().split(".")[0] + "Z").toString(),
|
|
127
85
|
],
|
|
128
|
-
|
|
86
|
+
[_bLUA]: [
|
|
129
87
|
() => input.beforeLastUpdatedAt !== void 0,
|
|
130
|
-
() => (input.
|
|
88
|
+
() => (input[_bLUA].toISOString().split(".")[0] + "Z").toString(),
|
|
131
89
|
],
|
|
132
90
|
});
|
|
133
91
|
let body;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
hostname,
|
|
137
|
-
port,
|
|
138
|
-
method: "GET",
|
|
139
|
-
headers,
|
|
140
|
-
path: resolvedPath,
|
|
141
|
-
query,
|
|
142
|
-
body,
|
|
143
|
-
});
|
|
92
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
93
|
+
return b.build();
|
|
144
94
|
};
|
|
145
95
|
export const se_ListRecommendationResourcesCommand = async (input, context) => {
|
|
146
|
-
const
|
|
96
|
+
const b = rb(input, context);
|
|
147
97
|
const headers = {};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
98
|
+
b.bp("/v1/recommendations/{recommendationIdentifier}/resources");
|
|
99
|
+
b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
151
100
|
const query = map({
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
101
|
+
[_nT]: [, input[_nT]],
|
|
102
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
103
|
+
[_st]: [, input[_st]],
|
|
104
|
+
[_rC]: [, input[_rC]],
|
|
156
105
|
});
|
|
157
106
|
let body;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
hostname,
|
|
161
|
-
port,
|
|
162
|
-
method: "GET",
|
|
163
|
-
headers,
|
|
164
|
-
path: resolvedPath,
|
|
165
|
-
query,
|
|
166
|
-
body,
|
|
167
|
-
});
|
|
107
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
108
|
+
return b.build();
|
|
168
109
|
};
|
|
169
110
|
export const se_ListRecommendationsCommand = async (input, context) => {
|
|
170
|
-
const
|
|
111
|
+
const b = rb(input, context);
|
|
171
112
|
const headers = {};
|
|
172
|
-
|
|
113
|
+
b.bp("/v1/recommendations");
|
|
173
114
|
const query = map({
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
115
|
+
[_nT]: [, input[_nT]],
|
|
116
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
117
|
+
[_t]: [, input[_t]],
|
|
118
|
+
[_st]: [, input[_st]],
|
|
119
|
+
[_p]: [, input[_p]],
|
|
120
|
+
[_aS]: [, input[_aS]],
|
|
121
|
+
[_s]: [, input[_s]],
|
|
122
|
+
[_cI]: [, input[_cI]],
|
|
123
|
+
[_aLUA]: [
|
|
183
124
|
() => input.afterLastUpdatedAt !== void 0,
|
|
184
|
-
() => (input.
|
|
125
|
+
() => (input[_aLUA].toISOString().split(".")[0] + "Z").toString(),
|
|
185
126
|
],
|
|
186
|
-
|
|
127
|
+
[_bLUA]: [
|
|
187
128
|
() => input.beforeLastUpdatedAt !== void 0,
|
|
188
|
-
() => (input.
|
|
129
|
+
() => (input[_bLUA].toISOString().split(".")[0] + "Z").toString(),
|
|
189
130
|
],
|
|
190
131
|
});
|
|
191
132
|
let body;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
hostname,
|
|
195
|
-
port,
|
|
196
|
-
method: "GET",
|
|
197
|
-
headers,
|
|
198
|
-
path: resolvedPath,
|
|
199
|
-
query,
|
|
200
|
-
body,
|
|
201
|
-
});
|
|
133
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
134
|
+
return b.build();
|
|
202
135
|
};
|
|
203
136
|
export const se_UpdateOrganizationRecommendationLifecycleCommand = async (input, context) => {
|
|
204
|
-
const
|
|
137
|
+
const b = rb(input, context);
|
|
205
138
|
const headers = {
|
|
206
139
|
"content-type": "application/json",
|
|
207
140
|
};
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
141
|
+
b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle");
|
|
142
|
+
b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
|
|
211
143
|
let body;
|
|
212
144
|
body = JSON.stringify(take(input, {
|
|
213
145
|
lifecycleStage: [],
|
|
214
146
|
updateReason: [],
|
|
215
147
|
updateReasonCode: [],
|
|
216
148
|
}));
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
hostname,
|
|
220
|
-
port,
|
|
221
|
-
method: "PUT",
|
|
222
|
-
headers,
|
|
223
|
-
path: resolvedPath,
|
|
224
|
-
body,
|
|
225
|
-
});
|
|
149
|
+
b.m("PUT").h(headers).b(body);
|
|
150
|
+
return b.build();
|
|
226
151
|
};
|
|
227
152
|
export const se_UpdateRecommendationLifecycleCommand = async (input, context) => {
|
|
228
|
-
const
|
|
153
|
+
const b = rb(input, context);
|
|
229
154
|
const headers = {
|
|
230
155
|
"content-type": "application/json",
|
|
231
156
|
};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
157
|
+
b.bp("/v1/recommendations/{recommendationIdentifier}/lifecycle");
|
|
158
|
+
b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
|
|
235
159
|
let body;
|
|
236
160
|
body = JSON.stringify(take(input, {
|
|
237
161
|
lifecycleStage: [],
|
|
238
162
|
updateReason: [],
|
|
239
163
|
updateReasonCode: [],
|
|
240
164
|
}));
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
hostname,
|
|
244
|
-
port,
|
|
245
|
-
method: "PUT",
|
|
246
|
-
headers,
|
|
247
|
-
path: resolvedPath,
|
|
248
|
-
body,
|
|
249
|
-
});
|
|
165
|
+
b.m("PUT").h(headers).b(body);
|
|
166
|
+
return b.build();
|
|
250
167
|
};
|
|
251
168
|
export const de_GetOrganizationRecommendationCommand = async (output, context) => {
|
|
252
169
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -958,6 +875,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
958
875
|
value !== "" &&
|
|
959
876
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
960
877
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
878
|
+
const _aAI = "affectedAccountId";
|
|
879
|
+
const _aLUA = "afterLastUpdatedAt";
|
|
880
|
+
const _aS = "awsService";
|
|
881
|
+
const _bLUA = "beforeLastUpdatedAt";
|
|
882
|
+
const _cI = "checkIdentifier";
|
|
883
|
+
const _l = "language";
|
|
884
|
+
const _mR = "maxResults";
|
|
885
|
+
const _nT = "nextToken";
|
|
886
|
+
const _p = "pillar";
|
|
887
|
+
const _rC = "regionCode";
|
|
888
|
+
const _s = "source";
|
|
889
|
+
const _st = "status";
|
|
890
|
+
const _t = "type";
|
|
961
891
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
962
892
|
if (encoded.length) {
|
|
963
893
|
return JSON.parse(encoded);
|
|
@@ -4,4 +4,4 @@ import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListChecks: (config: TrustedAdvisorPaginationConfiguration, input: ListChecksCommandInput, ...rest: any[]) => Paginator<ListChecksCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListOrganizationRecommendationAccounts: (config: TrustedAdvisorPaginationConfiguration, input: ListOrganizationRecommendationAccountsCommandInput, ...rest: any[]) => Paginator<ListOrganizationRecommendationAccountsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListOrganizationRecommendationResources: (config: TrustedAdvisorPaginationConfiguration, input: ListOrganizationRecommendationResourcesCommandInput, ...rest: any[]) => Paginator<ListOrganizationRecommendationResourcesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListOrganizationRecommendations: (config: TrustedAdvisorPaginationConfiguration, input: ListOrganizationRecommendationsCommandInput, ...rest: any[]) => Paginator<ListOrganizationRecommendationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRecommendationResources: (config: TrustedAdvisorPaginationConfiguration, input: ListRecommendationResourcesCommandInput, ...rest: any[]) => Paginator<ListRecommendationResourcesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRecommendations: (config: TrustedAdvisorPaginationConfiguration, input: ListRecommendationsCommandInput, ...rest: any[]) => Paginator<ListRecommendationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListChecksCommandOutput,
|
|
5
5
|
} from "../commands/ListChecksCommand";
|
|
6
6
|
import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListChecks: (
|
|
8
8
|
config: TrustedAdvisorPaginationConfiguration,
|
|
9
9
|
input: ListChecksCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListChecksCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListOrganizationRecommendationAccountsCommandOutput,
|
|
5
5
|
} from "../commands/ListOrganizationRecommendationAccountsCommand";
|
|
6
6
|
import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListOrganizationRecommendationAccounts: (
|
|
8
8
|
config: TrustedAdvisorPaginationConfiguration,
|
|
9
9
|
input: ListOrganizationRecommendationAccountsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListOrganizationRecommendationAccountsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListOrganizationRecommendationResourcesCommandOutput,
|
|
5
5
|
} from "../commands/ListOrganizationRecommendationResourcesCommand";
|
|
6
6
|
import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListOrganizationRecommendationResources: (
|
|
8
8
|
config: TrustedAdvisorPaginationConfiguration,
|
|
9
9
|
input: ListOrganizationRecommendationResourcesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListOrganizationRecommendationResourcesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListOrganizationRecommendationsCommandOutput,
|
|
5
5
|
} from "../commands/ListOrganizationRecommendationsCommand";
|
|
6
6
|
import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListOrganizationRecommendations: (
|
|
8
8
|
config: TrustedAdvisorPaginationConfiguration,
|
|
9
9
|
input: ListOrganizationRecommendationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListOrganizationRecommendationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListRecommendationResourcesCommandOutput,
|
|
5
5
|
} from "../commands/ListRecommendationResourcesCommand";
|
|
6
6
|
import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRecommendationResources: (
|
|
8
8
|
config: TrustedAdvisorPaginationConfiguration,
|
|
9
9
|
input: ListRecommendationResourcesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListRecommendationResourcesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListRecommendationsCommandOutput,
|
|
5
5
|
} from "../commands/ListRecommendationsCommand";
|
|
6
6
|
import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRecommendations: (
|
|
8
8
|
config: TrustedAdvisorPaginationConfiguration,
|
|
9
9
|
input: ListRecommendationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListRecommendationsCommandOutput>;
|