@aws-sdk/client-wellarchitected 3.476.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +464 -980
- package/dist-es/protocols/Aws_restJson1.js +465 -981
- package/package.json +5 -4
|
@@ -3,131 +3,96 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.se_ListReviewTemplatesCommand = exports.se_ListReviewTemplateAnswersCommand = exports.se_ListProfileSharesCommand = exports.se_ListProfilesCommand = exports.se_ListProfileNotificationsCommand = exports.se_ListNotificationsCommand = exports.se_ListMilestonesCommand = exports.se_ListLensSharesCommand = exports.se_ListLensReviewsCommand = exports.se_ListLensReviewImprovementsCommand = exports.se_ListLensesCommand = exports.se_ListCheckSummariesCommand = exports.se_ListCheckDetailsCommand = exports.se_ListAnswersCommand = exports.se_ImportLensCommand = exports.se_GetWorkloadCommand = exports.se_GetReviewTemplateLensReviewCommand = exports.se_GetReviewTemplateAnswerCommand = exports.se_GetReviewTemplateCommand = exports.se_GetProfileTemplateCommand = exports.se_GetProfileCommand = exports.se_GetMilestoneCommand = exports.se_GetLensVersionDifferenceCommand = exports.se_GetLensReviewReportCommand = exports.se_GetLensReviewCommand = exports.se_GetLensCommand = exports.se_GetConsolidatedReportCommand = exports.se_GetAnswerCommand = exports.se_ExportLensCommand = exports.se_DisassociateProfilesCommand = exports.se_DisassociateLensesCommand = exports.se_DeleteWorkloadShareCommand = exports.se_DeleteWorkloadCommand = exports.se_DeleteTemplateShareCommand = exports.se_DeleteReviewTemplateCommand = exports.se_DeleteProfileShareCommand = exports.se_DeleteProfileCommand = exports.se_DeleteLensShareCommand = exports.se_DeleteLensCommand = exports.se_CreateWorkloadShareCommand = exports.se_CreateWorkloadCommand = exports.se_CreateTemplateShareCommand = exports.se_CreateReviewTemplateCommand = exports.se_CreateProfileShareCommand = exports.se_CreateProfileCommand = exports.se_CreateMilestoneCommand = exports.se_CreateLensVersionCommand = exports.se_CreateLensShareCommand = exports.se_AssociateProfilesCommand = exports.se_AssociateLensesCommand = void 0;
|
|
4
4
|
exports.de_GetProfileCommand = exports.de_GetMilestoneCommand = exports.de_GetLensVersionDifferenceCommand = exports.de_GetLensReviewReportCommand = exports.de_GetLensReviewCommand = exports.de_GetLensCommand = exports.de_GetConsolidatedReportCommand = exports.de_GetAnswerCommand = exports.de_ExportLensCommand = exports.de_DisassociateProfilesCommand = exports.de_DisassociateLensesCommand = exports.de_DeleteWorkloadShareCommand = exports.de_DeleteWorkloadCommand = exports.de_DeleteTemplateShareCommand = exports.de_DeleteReviewTemplateCommand = exports.de_DeleteProfileShareCommand = exports.de_DeleteProfileCommand = exports.de_DeleteLensShareCommand = exports.de_DeleteLensCommand = exports.de_CreateWorkloadShareCommand = exports.de_CreateWorkloadCommand = exports.de_CreateTemplateShareCommand = exports.de_CreateReviewTemplateCommand = exports.de_CreateProfileShareCommand = exports.de_CreateProfileCommand = exports.de_CreateMilestoneCommand = exports.de_CreateLensVersionCommand = exports.de_CreateLensShareCommand = exports.de_AssociateProfilesCommand = exports.de_AssociateLensesCommand = exports.se_UpgradeReviewTemplateLensReviewCommand = exports.se_UpgradeProfileVersionCommand = exports.se_UpgradeLensReviewCommand = exports.se_UpdateWorkloadShareCommand = exports.se_UpdateWorkloadCommand = exports.se_UpdateShareInvitationCommand = exports.se_UpdateReviewTemplateLensReviewCommand = exports.se_UpdateReviewTemplateAnswerCommand = exports.se_UpdateReviewTemplateCommand = exports.se_UpdateProfileCommand = exports.se_UpdateLensReviewCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UpdateAnswerCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListWorkloadSharesCommand = exports.se_ListWorkloadsCommand = exports.se_ListTemplateSharesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListShareInvitationsCommand = void 0;
|
|
5
5
|
exports.de_UpgradeReviewTemplateLensReviewCommand = exports.de_UpgradeProfileVersionCommand = exports.de_UpgradeLensReviewCommand = exports.de_UpdateWorkloadShareCommand = exports.de_UpdateWorkloadCommand = exports.de_UpdateShareInvitationCommand = exports.de_UpdateReviewTemplateLensReviewCommand = exports.de_UpdateReviewTemplateAnswerCommand = exports.de_UpdateReviewTemplateCommand = exports.de_UpdateProfileCommand = exports.de_UpdateLensReviewCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UpdateAnswerCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkloadSharesCommand = exports.de_ListWorkloadsCommand = exports.de_ListTemplateSharesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListShareInvitationsCommand = exports.de_ListReviewTemplatesCommand = exports.de_ListReviewTemplateAnswersCommand = exports.de_ListProfileSharesCommand = exports.de_ListProfilesCommand = exports.de_ListProfileNotificationsCommand = exports.de_ListNotificationsCommand = exports.de_ListMilestonesCommand = exports.de_ListLensSharesCommand = exports.de_ListLensReviewsCommand = exports.de_ListLensReviewImprovementsCommand = exports.de_ListLensesCommand = exports.de_ListCheckSummariesCommand = exports.de_ListCheckDetailsCommand = exports.de_ListAnswersCommand = exports.de_ImportLensCommand = exports.de_GetWorkloadCommand = exports.de_GetReviewTemplateLensReviewCommand = exports.de_GetReviewTemplateAnswerCommand = exports.de_GetReviewTemplateCommand = exports.de_GetProfileTemplateCommand = void 0;
|
|
6
|
-
const
|
|
6
|
+
const core_1 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const WellArchitectedServiceException_1 = require("../models/WellArchitectedServiceException");
|
|
11
11
|
const se_AssociateLensesCommand = async (input, context) => {
|
|
12
|
-
const
|
|
12
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
b.bp("/workloads/{WorkloadId}/associateLenses");
|
|
17
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
20
|
LensAliases: (_) => (0, smithy_client_1._json)(_),
|
|
21
21
|
}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hostname,
|
|
25
|
-
port,
|
|
26
|
-
method: "PATCH",
|
|
27
|
-
headers,
|
|
28
|
-
path: resolvedPath,
|
|
29
|
-
body,
|
|
30
|
-
});
|
|
22
|
+
b.m("PATCH").h(headers).b(body);
|
|
23
|
+
return b.build();
|
|
31
24
|
};
|
|
32
25
|
exports.se_AssociateLensesCommand = se_AssociateLensesCommand;
|
|
33
26
|
const se_AssociateProfilesCommand = async (input, context) => {
|
|
34
|
-
const
|
|
27
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
35
28
|
const headers = {
|
|
36
29
|
"content-type": "application/json",
|
|
37
30
|
};
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
b.bp("/workloads/{WorkloadId}/associateProfiles");
|
|
32
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
40
33
|
let body;
|
|
41
34
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
42
35
|
ProfileArns: (_) => (0, smithy_client_1._json)(_),
|
|
43
36
|
}));
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
hostname,
|
|
47
|
-
port,
|
|
48
|
-
method: "PATCH",
|
|
49
|
-
headers,
|
|
50
|
-
path: resolvedPath,
|
|
51
|
-
body,
|
|
52
|
-
});
|
|
37
|
+
b.m("PATCH").h(headers).b(body);
|
|
38
|
+
return b.build();
|
|
53
39
|
};
|
|
54
40
|
exports.se_AssociateProfilesCommand = se_AssociateProfilesCommand;
|
|
55
41
|
const se_CreateLensShareCommand = async (input, context) => {
|
|
56
|
-
const
|
|
42
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
57
43
|
const headers = {
|
|
58
44
|
"content-type": "application/json",
|
|
59
45
|
};
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
b.bp("/lenses/{LensAlias}/shares");
|
|
47
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
62
48
|
let body;
|
|
63
49
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
50
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
65
51
|
SharedWith: [],
|
|
66
52
|
}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
hostname,
|
|
70
|
-
port,
|
|
71
|
-
method: "POST",
|
|
72
|
-
headers,
|
|
73
|
-
path: resolvedPath,
|
|
74
|
-
body,
|
|
75
|
-
});
|
|
53
|
+
b.m("POST").h(headers).b(body);
|
|
54
|
+
return b.build();
|
|
76
55
|
};
|
|
77
56
|
exports.se_CreateLensShareCommand = se_CreateLensShareCommand;
|
|
78
57
|
const se_CreateLensVersionCommand = async (input, context) => {
|
|
79
|
-
const
|
|
58
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
80
59
|
const headers = {
|
|
81
60
|
"content-type": "application/json",
|
|
82
61
|
};
|
|
83
|
-
|
|
84
|
-
|
|
62
|
+
b.bp("/lenses/{LensAlias}/versions");
|
|
63
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
85
64
|
let body;
|
|
86
65
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
87
66
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
88
67
|
IsMajorVersion: [],
|
|
89
68
|
LensVersion: [],
|
|
90
69
|
}));
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
hostname,
|
|
94
|
-
port,
|
|
95
|
-
method: "POST",
|
|
96
|
-
headers,
|
|
97
|
-
path: resolvedPath,
|
|
98
|
-
body,
|
|
99
|
-
});
|
|
70
|
+
b.m("POST").h(headers).b(body);
|
|
71
|
+
return b.build();
|
|
100
72
|
};
|
|
101
73
|
exports.se_CreateLensVersionCommand = se_CreateLensVersionCommand;
|
|
102
74
|
const se_CreateMilestoneCommand = async (input, context) => {
|
|
103
|
-
const
|
|
75
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
104
76
|
const headers = {
|
|
105
77
|
"content-type": "application/json",
|
|
106
78
|
};
|
|
107
|
-
|
|
108
|
-
|
|
79
|
+
b.bp("/workloads/{WorkloadId}/milestones");
|
|
80
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
109
81
|
let body;
|
|
110
82
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
111
83
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
112
84
|
MilestoneName: [],
|
|
113
85
|
}));
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
hostname,
|
|
117
|
-
port,
|
|
118
|
-
method: "POST",
|
|
119
|
-
headers,
|
|
120
|
-
path: resolvedPath,
|
|
121
|
-
body,
|
|
122
|
-
});
|
|
86
|
+
b.m("POST").h(headers).b(body);
|
|
87
|
+
return b.build();
|
|
123
88
|
};
|
|
124
89
|
exports.se_CreateMilestoneCommand = se_CreateMilestoneCommand;
|
|
125
90
|
const se_CreateProfileCommand = async (input, context) => {
|
|
126
|
-
const
|
|
91
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
127
92
|
const headers = {
|
|
128
93
|
"content-type": "application/json",
|
|
129
94
|
};
|
|
130
|
-
|
|
95
|
+
b.bp("/profiles");
|
|
131
96
|
let body;
|
|
132
97
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
133
98
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -136,46 +101,32 @@ const se_CreateProfileCommand = async (input, context) => {
|
|
|
136
101
|
ProfileQuestions: (_) => (0, smithy_client_1._json)(_),
|
|
137
102
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
138
103
|
}));
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
hostname,
|
|
142
|
-
port,
|
|
143
|
-
method: "POST",
|
|
144
|
-
headers,
|
|
145
|
-
path: resolvedPath,
|
|
146
|
-
body,
|
|
147
|
-
});
|
|
104
|
+
b.m("POST").h(headers).b(body);
|
|
105
|
+
return b.build();
|
|
148
106
|
};
|
|
149
107
|
exports.se_CreateProfileCommand = se_CreateProfileCommand;
|
|
150
108
|
const se_CreateProfileShareCommand = async (input, context) => {
|
|
151
|
-
const
|
|
109
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
152
110
|
const headers = {
|
|
153
111
|
"content-type": "application/json",
|
|
154
112
|
};
|
|
155
|
-
|
|
156
|
-
|
|
113
|
+
b.bp("/profiles/{ProfileArn}/shares");
|
|
114
|
+
b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
157
115
|
let body;
|
|
158
116
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
159
117
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
160
118
|
SharedWith: [],
|
|
161
119
|
}));
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
hostname,
|
|
165
|
-
port,
|
|
166
|
-
method: "POST",
|
|
167
|
-
headers,
|
|
168
|
-
path: resolvedPath,
|
|
169
|
-
body,
|
|
170
|
-
});
|
|
120
|
+
b.m("POST").h(headers).b(body);
|
|
121
|
+
return b.build();
|
|
171
122
|
};
|
|
172
123
|
exports.se_CreateProfileShareCommand = se_CreateProfileShareCommand;
|
|
173
124
|
const se_CreateReviewTemplateCommand = async (input, context) => {
|
|
174
|
-
const
|
|
125
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
175
126
|
const headers = {
|
|
176
127
|
"content-type": "application/json",
|
|
177
128
|
};
|
|
178
|
-
|
|
129
|
+
b.bp("/reviewTemplates");
|
|
179
130
|
let body;
|
|
180
131
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
181
132
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -185,46 +136,32 @@ const se_CreateReviewTemplateCommand = async (input, context) => {
|
|
|
185
136
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
186
137
|
TemplateName: [],
|
|
187
138
|
}));
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
hostname,
|
|
191
|
-
port,
|
|
192
|
-
method: "POST",
|
|
193
|
-
headers,
|
|
194
|
-
path: resolvedPath,
|
|
195
|
-
body,
|
|
196
|
-
});
|
|
139
|
+
b.m("POST").h(headers).b(body);
|
|
140
|
+
return b.build();
|
|
197
141
|
};
|
|
198
142
|
exports.se_CreateReviewTemplateCommand = se_CreateReviewTemplateCommand;
|
|
199
143
|
const se_CreateTemplateShareCommand = async (input, context) => {
|
|
200
|
-
const
|
|
144
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
201
145
|
const headers = {
|
|
202
146
|
"content-type": "application/json",
|
|
203
147
|
};
|
|
204
|
-
|
|
205
|
-
|
|
148
|
+
b.bp("/templates/shares/{TemplateArn}");
|
|
149
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
206
150
|
let body;
|
|
207
151
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
208
152
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
209
153
|
SharedWith: [],
|
|
210
154
|
}));
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
hostname,
|
|
214
|
-
port,
|
|
215
|
-
method: "POST",
|
|
216
|
-
headers,
|
|
217
|
-
path: resolvedPath,
|
|
218
|
-
body,
|
|
219
|
-
});
|
|
155
|
+
b.m("POST").h(headers).b(body);
|
|
156
|
+
return b.build();
|
|
220
157
|
};
|
|
221
158
|
exports.se_CreateTemplateShareCommand = se_CreateTemplateShareCommand;
|
|
222
159
|
const se_CreateWorkloadCommand = async (input, context) => {
|
|
223
|
-
const
|
|
160
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
224
161
|
const headers = {
|
|
225
162
|
"content-type": "application/json",
|
|
226
163
|
};
|
|
227
|
-
|
|
164
|
+
b.bp("/workloads");
|
|
228
165
|
let body;
|
|
229
166
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
230
167
|
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -247,558 +184,349 @@ const se_CreateWorkloadCommand = async (input, context) => {
|
|
|
247
184
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
248
185
|
WorkloadName: [],
|
|
249
186
|
}));
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
hostname,
|
|
253
|
-
port,
|
|
254
|
-
method: "POST",
|
|
255
|
-
headers,
|
|
256
|
-
path: resolvedPath,
|
|
257
|
-
body,
|
|
258
|
-
});
|
|
187
|
+
b.m("POST").h(headers).b(body);
|
|
188
|
+
return b.build();
|
|
259
189
|
};
|
|
260
190
|
exports.se_CreateWorkloadCommand = se_CreateWorkloadCommand;
|
|
261
191
|
const se_CreateWorkloadShareCommand = async (input, context) => {
|
|
262
|
-
const
|
|
192
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
263
193
|
const headers = {
|
|
264
194
|
"content-type": "application/json",
|
|
265
195
|
};
|
|
266
|
-
|
|
267
|
-
|
|
196
|
+
b.bp("/workloads/{WorkloadId}/shares");
|
|
197
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
268
198
|
let body;
|
|
269
199
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
270
200
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
271
201
|
PermissionType: [],
|
|
272
202
|
SharedWith: [],
|
|
273
203
|
}));
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
hostname,
|
|
277
|
-
port,
|
|
278
|
-
method: "POST",
|
|
279
|
-
headers,
|
|
280
|
-
path: resolvedPath,
|
|
281
|
-
body,
|
|
282
|
-
});
|
|
204
|
+
b.m("POST").h(headers).b(body);
|
|
205
|
+
return b.build();
|
|
283
206
|
};
|
|
284
207
|
exports.se_CreateWorkloadShareCommand = se_CreateWorkloadShareCommand;
|
|
285
208
|
const se_DeleteLensCommand = async (input, context) => {
|
|
286
|
-
const
|
|
209
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
287
210
|
const headers = {};
|
|
288
|
-
|
|
289
|
-
|
|
211
|
+
b.bp("/lenses/{LensAlias}");
|
|
212
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
290
213
|
const query = (0, smithy_client_1.map)({
|
|
291
|
-
|
|
292
|
-
|
|
214
|
+
[_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
|
|
215
|
+
[_LS]: [, (0, smithy_client_1.expectNonNull)(input[_LS], `LensStatus`)],
|
|
293
216
|
});
|
|
294
217
|
let body;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
hostname,
|
|
298
|
-
port,
|
|
299
|
-
method: "DELETE",
|
|
300
|
-
headers,
|
|
301
|
-
path: resolvedPath,
|
|
302
|
-
query,
|
|
303
|
-
body,
|
|
304
|
-
});
|
|
218
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
219
|
+
return b.build();
|
|
305
220
|
};
|
|
306
221
|
exports.se_DeleteLensCommand = se_DeleteLensCommand;
|
|
307
222
|
const se_DeleteLensShareCommand = async (input, context) => {
|
|
308
|
-
const
|
|
223
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
309
224
|
const headers = {};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
225
|
+
b.bp("/lenses/{LensAlias}/shares/{ShareId}");
|
|
226
|
+
b.p("ShareId", () => input.ShareId, "{ShareId}", false);
|
|
227
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
313
228
|
const query = (0, smithy_client_1.map)({
|
|
314
|
-
|
|
229
|
+
[_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
|
|
315
230
|
});
|
|
316
231
|
let body;
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
hostname,
|
|
320
|
-
port,
|
|
321
|
-
method: "DELETE",
|
|
322
|
-
headers,
|
|
323
|
-
path: resolvedPath,
|
|
324
|
-
query,
|
|
325
|
-
body,
|
|
326
|
-
});
|
|
232
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
233
|
+
return b.build();
|
|
327
234
|
};
|
|
328
235
|
exports.se_DeleteLensShareCommand = se_DeleteLensShareCommand;
|
|
329
236
|
const se_DeleteProfileCommand = async (input, context) => {
|
|
330
|
-
const
|
|
237
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
331
238
|
const headers = {};
|
|
332
|
-
|
|
333
|
-
|
|
239
|
+
b.bp("/profiles/{ProfileArn}");
|
|
240
|
+
b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
334
241
|
const query = (0, smithy_client_1.map)({
|
|
335
|
-
|
|
242
|
+
[_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
|
|
336
243
|
});
|
|
337
244
|
let body;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
hostname,
|
|
341
|
-
port,
|
|
342
|
-
method: "DELETE",
|
|
343
|
-
headers,
|
|
344
|
-
path: resolvedPath,
|
|
345
|
-
query,
|
|
346
|
-
body,
|
|
347
|
-
});
|
|
245
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
246
|
+
return b.build();
|
|
348
247
|
};
|
|
349
248
|
exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
|
|
350
249
|
const se_DeleteProfileShareCommand = async (input, context) => {
|
|
351
|
-
const
|
|
250
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
352
251
|
const headers = {};
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
252
|
+
b.bp("/profiles/{ProfileArn}/shares/{ShareId}");
|
|
253
|
+
b.p("ShareId", () => input.ShareId, "{ShareId}", false);
|
|
254
|
+
b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
356
255
|
const query = (0, smithy_client_1.map)({
|
|
357
|
-
|
|
256
|
+
[_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
|
|
358
257
|
});
|
|
359
258
|
let body;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
hostname,
|
|
363
|
-
port,
|
|
364
|
-
method: "DELETE",
|
|
365
|
-
headers,
|
|
366
|
-
path: resolvedPath,
|
|
367
|
-
query,
|
|
368
|
-
body,
|
|
369
|
-
});
|
|
259
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
260
|
+
return b.build();
|
|
370
261
|
};
|
|
371
262
|
exports.se_DeleteProfileShareCommand = se_DeleteProfileShareCommand;
|
|
372
263
|
const se_DeleteReviewTemplateCommand = async (input, context) => {
|
|
373
|
-
const
|
|
264
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
374
265
|
const headers = {};
|
|
375
|
-
|
|
376
|
-
|
|
266
|
+
b.bp("/reviewTemplates/{TemplateArn}");
|
|
267
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
377
268
|
const query = (0, smithy_client_1.map)({
|
|
378
|
-
|
|
269
|
+
[_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
|
|
379
270
|
});
|
|
380
271
|
let body;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
hostname,
|
|
384
|
-
port,
|
|
385
|
-
method: "DELETE",
|
|
386
|
-
headers,
|
|
387
|
-
path: resolvedPath,
|
|
388
|
-
query,
|
|
389
|
-
body,
|
|
390
|
-
});
|
|
272
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
273
|
+
return b.build();
|
|
391
274
|
};
|
|
392
275
|
exports.se_DeleteReviewTemplateCommand = se_DeleteReviewTemplateCommand;
|
|
393
276
|
const se_DeleteTemplateShareCommand = async (input, context) => {
|
|
394
|
-
const
|
|
277
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
395
278
|
const headers = {};
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
279
|
+
b.bp("/templates/shares/{TemplateArn}/{ShareId}");
|
|
280
|
+
b.p("ShareId", () => input.ShareId, "{ShareId}", false);
|
|
281
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
399
282
|
const query = (0, smithy_client_1.map)({
|
|
400
|
-
|
|
283
|
+
[_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
|
|
401
284
|
});
|
|
402
285
|
let body;
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
hostname,
|
|
406
|
-
port,
|
|
407
|
-
method: "DELETE",
|
|
408
|
-
headers,
|
|
409
|
-
path: resolvedPath,
|
|
410
|
-
query,
|
|
411
|
-
body,
|
|
412
|
-
});
|
|
286
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
287
|
+
return b.build();
|
|
413
288
|
};
|
|
414
289
|
exports.se_DeleteTemplateShareCommand = se_DeleteTemplateShareCommand;
|
|
415
290
|
const se_DeleteWorkloadCommand = async (input, context) => {
|
|
416
|
-
const
|
|
291
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
417
292
|
const headers = {};
|
|
418
|
-
|
|
419
|
-
|
|
293
|
+
b.bp("/workloads/{WorkloadId}");
|
|
294
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
420
295
|
const query = (0, smithy_client_1.map)({
|
|
421
|
-
|
|
296
|
+
[_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
|
|
422
297
|
});
|
|
423
298
|
let body;
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
hostname,
|
|
427
|
-
port,
|
|
428
|
-
method: "DELETE",
|
|
429
|
-
headers,
|
|
430
|
-
path: resolvedPath,
|
|
431
|
-
query,
|
|
432
|
-
body,
|
|
433
|
-
});
|
|
299
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
300
|
+
return b.build();
|
|
434
301
|
};
|
|
435
302
|
exports.se_DeleteWorkloadCommand = se_DeleteWorkloadCommand;
|
|
436
303
|
const se_DeleteWorkloadShareCommand = async (input, context) => {
|
|
437
|
-
const
|
|
304
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
438
305
|
const headers = {};
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
306
|
+
b.bp("/workloads/{WorkloadId}/shares/{ShareId}");
|
|
307
|
+
b.p("ShareId", () => input.ShareId, "{ShareId}", false);
|
|
308
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
442
309
|
const query = (0, smithy_client_1.map)({
|
|
443
|
-
|
|
310
|
+
[_CRT]: [, (0, smithy_client_1.expectNonNull)(input[_CRT], `ClientRequestToken`)],
|
|
444
311
|
});
|
|
445
312
|
let body;
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
hostname,
|
|
449
|
-
port,
|
|
450
|
-
method: "DELETE",
|
|
451
|
-
headers,
|
|
452
|
-
path: resolvedPath,
|
|
453
|
-
query,
|
|
454
|
-
body,
|
|
455
|
-
});
|
|
313
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
314
|
+
return b.build();
|
|
456
315
|
};
|
|
457
316
|
exports.se_DeleteWorkloadShareCommand = se_DeleteWorkloadShareCommand;
|
|
458
317
|
const se_DisassociateLensesCommand = async (input, context) => {
|
|
459
|
-
const
|
|
318
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
460
319
|
const headers = {
|
|
461
320
|
"content-type": "application/json",
|
|
462
321
|
};
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
322
|
+
b.bp("/workloads/{WorkloadId}/disassociateLenses");
|
|
323
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
466
324
|
let body;
|
|
467
325
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
468
326
|
LensAliases: (_) => (0, smithy_client_1._json)(_),
|
|
469
327
|
}));
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
hostname,
|
|
473
|
-
port,
|
|
474
|
-
method: "PATCH",
|
|
475
|
-
headers,
|
|
476
|
-
path: resolvedPath,
|
|
477
|
-
body,
|
|
478
|
-
});
|
|
328
|
+
b.m("PATCH").h(headers).b(body);
|
|
329
|
+
return b.build();
|
|
479
330
|
};
|
|
480
331
|
exports.se_DisassociateLensesCommand = se_DisassociateLensesCommand;
|
|
481
332
|
const se_DisassociateProfilesCommand = async (input, context) => {
|
|
482
|
-
const
|
|
333
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
483
334
|
const headers = {
|
|
484
335
|
"content-type": "application/json",
|
|
485
336
|
};
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
337
|
+
b.bp("/workloads/{WorkloadId}/disassociateProfiles");
|
|
338
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
489
339
|
let body;
|
|
490
340
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
491
341
|
ProfileArns: (_) => (0, smithy_client_1._json)(_),
|
|
492
342
|
}));
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
hostname,
|
|
496
|
-
port,
|
|
497
|
-
method: "PATCH",
|
|
498
|
-
headers,
|
|
499
|
-
path: resolvedPath,
|
|
500
|
-
body,
|
|
501
|
-
});
|
|
343
|
+
b.m("PATCH").h(headers).b(body);
|
|
344
|
+
return b.build();
|
|
502
345
|
};
|
|
503
346
|
exports.se_DisassociateProfilesCommand = se_DisassociateProfilesCommand;
|
|
504
347
|
const se_ExportLensCommand = async (input, context) => {
|
|
505
|
-
const
|
|
348
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
506
349
|
const headers = {};
|
|
507
|
-
|
|
508
|
-
|
|
350
|
+
b.bp("/lenses/{LensAlias}/export");
|
|
351
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
509
352
|
const query = (0, smithy_client_1.map)({
|
|
510
|
-
|
|
353
|
+
[_LV]: [, input[_LV]],
|
|
511
354
|
});
|
|
512
355
|
let body;
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
hostname,
|
|
516
|
-
port,
|
|
517
|
-
method: "GET",
|
|
518
|
-
headers,
|
|
519
|
-
path: resolvedPath,
|
|
520
|
-
query,
|
|
521
|
-
body,
|
|
522
|
-
});
|
|
356
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
357
|
+
return b.build();
|
|
523
358
|
};
|
|
524
359
|
exports.se_ExportLensCommand = se_ExportLensCommand;
|
|
525
360
|
const se_GetAnswerCommand = async (input, context) => {
|
|
526
|
-
const
|
|
361
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
527
362
|
const headers = {};
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
363
|
+
b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}");
|
|
364
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
365
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
366
|
+
b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
533
367
|
const query = (0, smithy_client_1.map)({
|
|
534
|
-
|
|
368
|
+
[_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
|
|
535
369
|
});
|
|
536
370
|
let body;
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
hostname,
|
|
540
|
-
port,
|
|
541
|
-
method: "GET",
|
|
542
|
-
headers,
|
|
543
|
-
path: resolvedPath,
|
|
544
|
-
query,
|
|
545
|
-
body,
|
|
546
|
-
});
|
|
371
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
372
|
+
return b.build();
|
|
547
373
|
};
|
|
548
374
|
exports.se_GetAnswerCommand = se_GetAnswerCommand;
|
|
549
375
|
const se_GetConsolidatedReportCommand = async (input, context) => {
|
|
550
|
-
const
|
|
376
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
551
377
|
const headers = {};
|
|
552
|
-
|
|
378
|
+
b.bp("/consolidatedReport");
|
|
553
379
|
const query = (0, smithy_client_1.map)({
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
],
|
|
559
|
-
NextToken: [, input.NextToken],
|
|
560
|
-
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
380
|
+
[_F]: [, (0, smithy_client_1.expectNonNull)(input[_F], `Format`)],
|
|
381
|
+
[_ISR]: [() => input.IncludeSharedResources !== void 0, () => input[_ISR].toString()],
|
|
382
|
+
[_NT]: [, input[_NT]],
|
|
383
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
561
384
|
});
|
|
562
385
|
let body;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
hostname,
|
|
566
|
-
port,
|
|
567
|
-
method: "GET",
|
|
568
|
-
headers,
|
|
569
|
-
path: resolvedPath,
|
|
570
|
-
query,
|
|
571
|
-
body,
|
|
572
|
-
});
|
|
386
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
387
|
+
return b.build();
|
|
573
388
|
};
|
|
574
389
|
exports.se_GetConsolidatedReportCommand = se_GetConsolidatedReportCommand;
|
|
575
390
|
const se_GetLensCommand = async (input, context) => {
|
|
576
|
-
const
|
|
391
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
577
392
|
const headers = {};
|
|
578
|
-
|
|
579
|
-
|
|
393
|
+
b.bp("/lenses/{LensAlias}");
|
|
394
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
580
395
|
const query = (0, smithy_client_1.map)({
|
|
581
|
-
|
|
396
|
+
[_LV]: [, input[_LV]],
|
|
582
397
|
});
|
|
583
398
|
let body;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
hostname,
|
|
587
|
-
port,
|
|
588
|
-
method: "GET",
|
|
589
|
-
headers,
|
|
590
|
-
path: resolvedPath,
|
|
591
|
-
query,
|
|
592
|
-
body,
|
|
593
|
-
});
|
|
399
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
400
|
+
return b.build();
|
|
594
401
|
};
|
|
595
402
|
exports.se_GetLensCommand = se_GetLensCommand;
|
|
596
403
|
const se_GetLensReviewCommand = async (input, context) => {
|
|
597
|
-
const
|
|
404
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
598
405
|
const headers = {};
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
406
|
+
b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}");
|
|
407
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
408
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
603
409
|
const query = (0, smithy_client_1.map)({
|
|
604
|
-
|
|
410
|
+
[_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
|
|
605
411
|
});
|
|
606
412
|
let body;
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
hostname,
|
|
610
|
-
port,
|
|
611
|
-
method: "GET",
|
|
612
|
-
headers,
|
|
613
|
-
path: resolvedPath,
|
|
614
|
-
query,
|
|
615
|
-
body,
|
|
616
|
-
});
|
|
413
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
414
|
+
return b.build();
|
|
617
415
|
};
|
|
618
416
|
exports.se_GetLensReviewCommand = se_GetLensReviewCommand;
|
|
619
417
|
const se_GetLensReviewReportCommand = async (input, context) => {
|
|
620
|
-
const
|
|
418
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
621
419
|
const headers = {};
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
420
|
+
b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/report");
|
|
421
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
422
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
626
423
|
const query = (0, smithy_client_1.map)({
|
|
627
|
-
|
|
424
|
+
[_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
|
|
628
425
|
});
|
|
629
426
|
let body;
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
hostname,
|
|
633
|
-
port,
|
|
634
|
-
method: "GET",
|
|
635
|
-
headers,
|
|
636
|
-
path: resolvedPath,
|
|
637
|
-
query,
|
|
638
|
-
body,
|
|
639
|
-
});
|
|
427
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
428
|
+
return b.build();
|
|
640
429
|
};
|
|
641
430
|
exports.se_GetLensReviewReportCommand = se_GetLensReviewReportCommand;
|
|
642
431
|
const se_GetLensVersionDifferenceCommand = async (input, context) => {
|
|
643
|
-
const
|
|
432
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
644
433
|
const headers = {};
|
|
645
|
-
|
|
646
|
-
|
|
434
|
+
b.bp("/lenses/{LensAlias}/versionDifference");
|
|
435
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
647
436
|
const query = (0, smithy_client_1.map)({
|
|
648
|
-
|
|
649
|
-
|
|
437
|
+
[_BLV]: [, input[_BLV]],
|
|
438
|
+
[_TLV]: [, input[_TLV]],
|
|
650
439
|
});
|
|
651
440
|
let body;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
hostname,
|
|
655
|
-
port,
|
|
656
|
-
method: "GET",
|
|
657
|
-
headers,
|
|
658
|
-
path: resolvedPath,
|
|
659
|
-
query,
|
|
660
|
-
body,
|
|
661
|
-
});
|
|
441
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
442
|
+
return b.build();
|
|
662
443
|
};
|
|
663
444
|
exports.se_GetLensVersionDifferenceCommand = se_GetLensVersionDifferenceCommand;
|
|
664
445
|
const se_GetMilestoneCommand = async (input, context) => {
|
|
665
|
-
const
|
|
446
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
666
447
|
const headers = {};
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MilestoneNumber", () => input.MilestoneNumber.toString(), "{MilestoneNumber}", false);
|
|
448
|
+
b.bp("/workloads/{WorkloadId}/milestones/{MilestoneNumber}");
|
|
449
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
450
|
+
b.p("MilestoneNumber", () => input.MilestoneNumber.toString(), "{MilestoneNumber}", false);
|
|
671
451
|
let body;
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
hostname,
|
|
675
|
-
port,
|
|
676
|
-
method: "GET",
|
|
677
|
-
headers,
|
|
678
|
-
path: resolvedPath,
|
|
679
|
-
body,
|
|
680
|
-
});
|
|
452
|
+
b.m("GET").h(headers).b(body);
|
|
453
|
+
return b.build();
|
|
681
454
|
};
|
|
682
455
|
exports.se_GetMilestoneCommand = se_GetMilestoneCommand;
|
|
683
456
|
const se_GetProfileCommand = async (input, context) => {
|
|
684
|
-
const
|
|
457
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
685
458
|
const headers = {};
|
|
686
|
-
|
|
687
|
-
|
|
459
|
+
b.bp("/profiles/{ProfileArn}");
|
|
460
|
+
b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
688
461
|
const query = (0, smithy_client_1.map)({
|
|
689
|
-
|
|
462
|
+
[_PV]: [, input[_PV]],
|
|
690
463
|
});
|
|
691
464
|
let body;
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
hostname,
|
|
695
|
-
port,
|
|
696
|
-
method: "GET",
|
|
697
|
-
headers,
|
|
698
|
-
path: resolvedPath,
|
|
699
|
-
query,
|
|
700
|
-
body,
|
|
701
|
-
});
|
|
465
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
466
|
+
return b.build();
|
|
702
467
|
};
|
|
703
468
|
exports.se_GetProfileCommand = se_GetProfileCommand;
|
|
704
469
|
const se_GetProfileTemplateCommand = async (input, context) => {
|
|
705
|
-
const
|
|
470
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
706
471
|
const headers = {
|
|
707
472
|
"content-type": "application/json",
|
|
708
473
|
};
|
|
709
|
-
|
|
474
|
+
b.bp("/profileTemplate");
|
|
710
475
|
let body;
|
|
711
476
|
body = "";
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
hostname,
|
|
715
|
-
port,
|
|
716
|
-
method: "GET",
|
|
717
|
-
headers,
|
|
718
|
-
path: resolvedPath,
|
|
719
|
-
body,
|
|
720
|
-
});
|
|
477
|
+
b.m("GET").h(headers).b(body);
|
|
478
|
+
return b.build();
|
|
721
479
|
};
|
|
722
480
|
exports.se_GetProfileTemplateCommand = se_GetProfileTemplateCommand;
|
|
723
481
|
const se_GetReviewTemplateCommand = async (input, context) => {
|
|
724
|
-
const
|
|
482
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
725
483
|
const headers = {};
|
|
726
|
-
|
|
727
|
-
|
|
484
|
+
b.bp("/reviewTemplates/{TemplateArn}");
|
|
485
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
728
486
|
let body;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
hostname,
|
|
732
|
-
port,
|
|
733
|
-
method: "GET",
|
|
734
|
-
headers,
|
|
735
|
-
path: resolvedPath,
|
|
736
|
-
body,
|
|
737
|
-
});
|
|
487
|
+
b.m("GET").h(headers).b(body);
|
|
488
|
+
return b.build();
|
|
738
489
|
};
|
|
739
490
|
exports.se_GetReviewTemplateCommand = se_GetReviewTemplateCommand;
|
|
740
491
|
const se_GetReviewTemplateAnswerCommand = async (input, context) => {
|
|
741
|
-
const
|
|
492
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
742
493
|
const headers = {};
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
494
|
+
b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}");
|
|
495
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
496
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
497
|
+
b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
748
498
|
let body;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
hostname,
|
|
752
|
-
port,
|
|
753
|
-
method: "GET",
|
|
754
|
-
headers,
|
|
755
|
-
path: resolvedPath,
|
|
756
|
-
body,
|
|
757
|
-
});
|
|
499
|
+
b.m("GET").h(headers).b(body);
|
|
500
|
+
return b.build();
|
|
758
501
|
};
|
|
759
502
|
exports.se_GetReviewTemplateAnswerCommand = se_GetReviewTemplateAnswerCommand;
|
|
760
503
|
const se_GetReviewTemplateLensReviewCommand = async (input, context) => {
|
|
761
|
-
const
|
|
504
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
762
505
|
const headers = {};
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
506
|
+
b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}");
|
|
507
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
508
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
767
509
|
let body;
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
hostname,
|
|
771
|
-
port,
|
|
772
|
-
method: "GET",
|
|
773
|
-
headers,
|
|
774
|
-
path: resolvedPath,
|
|
775
|
-
body,
|
|
776
|
-
});
|
|
510
|
+
b.m("GET").h(headers).b(body);
|
|
511
|
+
return b.build();
|
|
777
512
|
};
|
|
778
513
|
exports.se_GetReviewTemplateLensReviewCommand = se_GetReviewTemplateLensReviewCommand;
|
|
779
514
|
const se_GetWorkloadCommand = async (input, context) => {
|
|
780
|
-
const
|
|
515
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
781
516
|
const headers = {};
|
|
782
|
-
|
|
783
|
-
|
|
517
|
+
b.bp("/workloads/{WorkloadId}");
|
|
518
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
784
519
|
let body;
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
hostname,
|
|
788
|
-
port,
|
|
789
|
-
method: "GET",
|
|
790
|
-
headers,
|
|
791
|
-
path: resolvedPath,
|
|
792
|
-
body,
|
|
793
|
-
});
|
|
520
|
+
b.m("GET").h(headers).b(body);
|
|
521
|
+
return b.build();
|
|
794
522
|
};
|
|
795
523
|
exports.se_GetWorkloadCommand = se_GetWorkloadCommand;
|
|
796
524
|
const se_ImportLensCommand = async (input, context) => {
|
|
797
|
-
const
|
|
525
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
798
526
|
const headers = {
|
|
799
527
|
"content-type": "application/json",
|
|
800
528
|
};
|
|
801
|
-
|
|
529
|
+
b.bp("/importLens");
|
|
802
530
|
let body;
|
|
803
531
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
804
532
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -806,51 +534,35 @@ const se_ImportLensCommand = async (input, context) => {
|
|
|
806
534
|
LensAlias: [],
|
|
807
535
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
808
536
|
}));
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
hostname,
|
|
812
|
-
port,
|
|
813
|
-
method: "PUT",
|
|
814
|
-
headers,
|
|
815
|
-
path: resolvedPath,
|
|
816
|
-
body,
|
|
817
|
-
});
|
|
537
|
+
b.m("PUT").h(headers).b(body);
|
|
538
|
+
return b.build();
|
|
818
539
|
};
|
|
819
540
|
exports.se_ImportLensCommand = se_ImportLensCommand;
|
|
820
541
|
const se_ListAnswersCommand = async (input, context) => {
|
|
821
|
-
const
|
|
542
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
822
543
|
const headers = {};
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
544
|
+
b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers");
|
|
545
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
546
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
827
547
|
const query = (0, smithy_client_1.map)({
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
548
|
+
[_PI]: [, input[_PI]],
|
|
549
|
+
[_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
|
|
550
|
+
[_NT]: [, input[_NT]],
|
|
551
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
552
|
+
[_QP]: [, input[_QP]],
|
|
833
553
|
});
|
|
834
554
|
let body;
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
hostname,
|
|
838
|
-
port,
|
|
839
|
-
method: "GET",
|
|
840
|
-
headers,
|
|
841
|
-
path: resolvedPath,
|
|
842
|
-
query,
|
|
843
|
-
body,
|
|
844
|
-
});
|
|
555
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
556
|
+
return b.build();
|
|
845
557
|
};
|
|
846
558
|
exports.se_ListAnswersCommand = se_ListAnswersCommand;
|
|
847
559
|
const se_ListCheckDetailsCommand = async (input, context) => {
|
|
848
|
-
const
|
|
560
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
849
561
|
const headers = {
|
|
850
562
|
"content-type": "application/json",
|
|
851
563
|
};
|
|
852
|
-
|
|
853
|
-
|
|
564
|
+
b.bp("/workloads/{WorkloadId}/checks");
|
|
565
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
854
566
|
let body;
|
|
855
567
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
856
568
|
ChoiceId: [],
|
|
@@ -860,24 +572,17 @@ const se_ListCheckDetailsCommand = async (input, context) => {
|
|
|
860
572
|
PillarId: [],
|
|
861
573
|
QuestionId: [],
|
|
862
574
|
}));
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
hostname,
|
|
866
|
-
port,
|
|
867
|
-
method: "POST",
|
|
868
|
-
headers,
|
|
869
|
-
path: resolvedPath,
|
|
870
|
-
body,
|
|
871
|
-
});
|
|
575
|
+
b.m("POST").h(headers).b(body);
|
|
576
|
+
return b.build();
|
|
872
577
|
};
|
|
873
578
|
exports.se_ListCheckDetailsCommand = se_ListCheckDetailsCommand;
|
|
874
579
|
const se_ListCheckSummariesCommand = async (input, context) => {
|
|
875
|
-
const
|
|
580
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
876
581
|
const headers = {
|
|
877
582
|
"content-type": "application/json",
|
|
878
583
|
};
|
|
879
|
-
|
|
880
|
-
|
|
584
|
+
b.bp("/workloads/{WorkloadId}/checkSummaries");
|
|
585
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
881
586
|
let body;
|
|
882
587
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
883
588
|
ChoiceId: [],
|
|
@@ -887,145 +592,97 @@ const se_ListCheckSummariesCommand = async (input, context) => {
|
|
|
887
592
|
PillarId: [],
|
|
888
593
|
QuestionId: [],
|
|
889
594
|
}));
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
hostname,
|
|
893
|
-
port,
|
|
894
|
-
method: "POST",
|
|
895
|
-
headers,
|
|
896
|
-
path: resolvedPath,
|
|
897
|
-
body,
|
|
898
|
-
});
|
|
595
|
+
b.m("POST").h(headers).b(body);
|
|
596
|
+
return b.build();
|
|
899
597
|
};
|
|
900
598
|
exports.se_ListCheckSummariesCommand = se_ListCheckSummariesCommand;
|
|
901
599
|
const se_ListLensesCommand = async (input, context) => {
|
|
902
|
-
const
|
|
600
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
903
601
|
const headers = {};
|
|
904
|
-
|
|
602
|
+
b.bp("/lenses");
|
|
905
603
|
const query = (0, smithy_client_1.map)({
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
604
|
+
[_NT]: [, input[_NT]],
|
|
605
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
606
|
+
[_LT]: [, input[_LT]],
|
|
607
|
+
[_LS]: [, input[_LS]],
|
|
608
|
+
[_LN]: [, input[_LN]],
|
|
911
609
|
});
|
|
912
610
|
let body;
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
hostname,
|
|
916
|
-
port,
|
|
917
|
-
method: "GET",
|
|
918
|
-
headers,
|
|
919
|
-
path: resolvedPath,
|
|
920
|
-
query,
|
|
921
|
-
body,
|
|
922
|
-
});
|
|
611
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
612
|
+
return b.build();
|
|
923
613
|
};
|
|
924
614
|
exports.se_ListLensesCommand = se_ListLensesCommand;
|
|
925
615
|
const se_ListLensReviewImprovementsCommand = async (input, context) => {
|
|
926
|
-
const
|
|
616
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
927
617
|
const headers = {};
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
618
|
+
b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/improvements");
|
|
619
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
620
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
932
621
|
const query = (0, smithy_client_1.map)({
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
622
|
+
[_PI]: [, input[_PI]],
|
|
623
|
+
[_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
|
|
624
|
+
[_NT]: [, input[_NT]],
|
|
625
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
626
|
+
[_QP]: [, input[_QP]],
|
|
938
627
|
});
|
|
939
628
|
let body;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
hostname,
|
|
943
|
-
port,
|
|
944
|
-
method: "GET",
|
|
945
|
-
headers,
|
|
946
|
-
path: resolvedPath,
|
|
947
|
-
query,
|
|
948
|
-
body,
|
|
949
|
-
});
|
|
629
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
630
|
+
return b.build();
|
|
950
631
|
};
|
|
951
632
|
exports.se_ListLensReviewImprovementsCommand = se_ListLensReviewImprovementsCommand;
|
|
952
633
|
const se_ListLensReviewsCommand = async (input, context) => {
|
|
953
|
-
const
|
|
634
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
954
635
|
const headers = {};
|
|
955
|
-
|
|
956
|
-
|
|
636
|
+
b.bp("/workloads/{WorkloadId}/lensReviews");
|
|
637
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
957
638
|
const query = (0, smithy_client_1.map)({
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
639
|
+
[_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
|
|
640
|
+
[_NT]: [, input[_NT]],
|
|
641
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
961
642
|
});
|
|
962
643
|
let body;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
hostname,
|
|
966
|
-
port,
|
|
967
|
-
method: "GET",
|
|
968
|
-
headers,
|
|
969
|
-
path: resolvedPath,
|
|
970
|
-
query,
|
|
971
|
-
body,
|
|
972
|
-
});
|
|
644
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
645
|
+
return b.build();
|
|
973
646
|
};
|
|
974
647
|
exports.se_ListLensReviewsCommand = se_ListLensReviewsCommand;
|
|
975
648
|
const se_ListLensSharesCommand = async (input, context) => {
|
|
976
|
-
const
|
|
649
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
977
650
|
const headers = {};
|
|
978
|
-
|
|
979
|
-
|
|
651
|
+
b.bp("/lenses/{LensAlias}/shares");
|
|
652
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
980
653
|
const query = (0, smithy_client_1.map)({
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
654
|
+
[_SWP]: [, input[_SWP]],
|
|
655
|
+
[_NT]: [, input[_NT]],
|
|
656
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
657
|
+
[_S]: [, input[_S]],
|
|
985
658
|
});
|
|
986
659
|
let body;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
hostname,
|
|
990
|
-
port,
|
|
991
|
-
method: "GET",
|
|
992
|
-
headers,
|
|
993
|
-
path: resolvedPath,
|
|
994
|
-
query,
|
|
995
|
-
body,
|
|
996
|
-
});
|
|
660
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
661
|
+
return b.build();
|
|
997
662
|
};
|
|
998
663
|
exports.se_ListLensSharesCommand = se_ListLensSharesCommand;
|
|
999
664
|
const se_ListMilestonesCommand = async (input, context) => {
|
|
1000
|
-
const
|
|
665
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1001
666
|
const headers = {
|
|
1002
667
|
"content-type": "application/json",
|
|
1003
668
|
};
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
669
|
+
b.bp("/workloads/{WorkloadId}/milestonesSummaries");
|
|
670
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
1007
671
|
let body;
|
|
1008
672
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1009
673
|
MaxResults: [],
|
|
1010
674
|
NextToken: [],
|
|
1011
675
|
}));
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
hostname,
|
|
1015
|
-
port,
|
|
1016
|
-
method: "POST",
|
|
1017
|
-
headers,
|
|
1018
|
-
path: resolvedPath,
|
|
1019
|
-
body,
|
|
1020
|
-
});
|
|
676
|
+
b.m("POST").h(headers).b(body);
|
|
677
|
+
return b.build();
|
|
1021
678
|
};
|
|
1022
679
|
exports.se_ListMilestonesCommand = se_ListMilestonesCommand;
|
|
1023
680
|
const se_ListNotificationsCommand = async (input, context) => {
|
|
1024
|
-
const
|
|
681
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1025
682
|
const headers = {
|
|
1026
683
|
"content-type": "application/json",
|
|
1027
684
|
};
|
|
1028
|
-
|
|
685
|
+
b.bp("/notifications");
|
|
1029
686
|
let body;
|
|
1030
687
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1031
688
|
MaxResults: [],
|
|
@@ -1033,302 +690,200 @@ const se_ListNotificationsCommand = async (input, context) => {
|
|
|
1033
690
|
ResourceArn: [],
|
|
1034
691
|
WorkloadId: [],
|
|
1035
692
|
}));
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
hostname,
|
|
1039
|
-
port,
|
|
1040
|
-
method: "POST",
|
|
1041
|
-
headers,
|
|
1042
|
-
path: resolvedPath,
|
|
1043
|
-
body,
|
|
1044
|
-
});
|
|
693
|
+
b.m("POST").h(headers).b(body);
|
|
694
|
+
return b.build();
|
|
1045
695
|
};
|
|
1046
696
|
exports.se_ListNotificationsCommand = se_ListNotificationsCommand;
|
|
1047
697
|
const se_ListProfileNotificationsCommand = async (input, context) => {
|
|
1048
|
-
const
|
|
698
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1049
699
|
const headers = {};
|
|
1050
|
-
|
|
700
|
+
b.bp("/profileNotifications");
|
|
1051
701
|
const query = (0, smithy_client_1.map)({
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
702
|
+
[_WI]: [, input[_WI]],
|
|
703
|
+
[_NT]: [, input[_NT]],
|
|
704
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
1055
705
|
});
|
|
1056
706
|
let body;
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
hostname,
|
|
1060
|
-
port,
|
|
1061
|
-
method: "GET",
|
|
1062
|
-
headers,
|
|
1063
|
-
path: resolvedPath,
|
|
1064
|
-
query,
|
|
1065
|
-
body,
|
|
1066
|
-
});
|
|
707
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
708
|
+
return b.build();
|
|
1067
709
|
};
|
|
1068
710
|
exports.se_ListProfileNotificationsCommand = se_ListProfileNotificationsCommand;
|
|
1069
711
|
const se_ListProfilesCommand = async (input, context) => {
|
|
1070
|
-
const
|
|
712
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1071
713
|
const headers = {};
|
|
1072
|
-
|
|
714
|
+
b.bp("/profileSummaries");
|
|
1073
715
|
const query = (0, smithy_client_1.map)({
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
716
|
+
[_PNP]: [, input[_PNP]],
|
|
717
|
+
[_POT]: [, input[_POT]],
|
|
718
|
+
[_NT]: [, input[_NT]],
|
|
719
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
1078
720
|
});
|
|
1079
721
|
let body;
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
hostname,
|
|
1083
|
-
port,
|
|
1084
|
-
method: "GET",
|
|
1085
|
-
headers,
|
|
1086
|
-
path: resolvedPath,
|
|
1087
|
-
query,
|
|
1088
|
-
body,
|
|
1089
|
-
});
|
|
722
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
723
|
+
return b.build();
|
|
1090
724
|
};
|
|
1091
725
|
exports.se_ListProfilesCommand = se_ListProfilesCommand;
|
|
1092
726
|
const se_ListProfileSharesCommand = async (input, context) => {
|
|
1093
|
-
const
|
|
727
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1094
728
|
const headers = {};
|
|
1095
|
-
|
|
1096
|
-
|
|
729
|
+
b.bp("/profiles/{ProfileArn}/shares");
|
|
730
|
+
b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
1097
731
|
const query = (0, smithy_client_1.map)({
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
732
|
+
[_SWP]: [, input[_SWP]],
|
|
733
|
+
[_NT]: [, input[_NT]],
|
|
734
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
735
|
+
[_S]: [, input[_S]],
|
|
1102
736
|
});
|
|
1103
737
|
let body;
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
hostname,
|
|
1107
|
-
port,
|
|
1108
|
-
method: "GET",
|
|
1109
|
-
headers,
|
|
1110
|
-
path: resolvedPath,
|
|
1111
|
-
query,
|
|
1112
|
-
body,
|
|
1113
|
-
});
|
|
738
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
739
|
+
return b.build();
|
|
1114
740
|
};
|
|
1115
741
|
exports.se_ListProfileSharesCommand = se_ListProfileSharesCommand;
|
|
1116
742
|
const se_ListReviewTemplateAnswersCommand = async (input, context) => {
|
|
1117
|
-
const
|
|
743
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1118
744
|
const headers = {};
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
745
|
+
b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers");
|
|
746
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
747
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1123
748
|
const query = (0, smithy_client_1.map)({
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
749
|
+
[_PI]: [, input[_PI]],
|
|
750
|
+
[_NT]: [, input[_NT]],
|
|
751
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
1127
752
|
});
|
|
1128
753
|
let body;
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
hostname,
|
|
1132
|
-
port,
|
|
1133
|
-
method: "GET",
|
|
1134
|
-
headers,
|
|
1135
|
-
path: resolvedPath,
|
|
1136
|
-
query,
|
|
1137
|
-
body,
|
|
1138
|
-
});
|
|
754
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
755
|
+
return b.build();
|
|
1139
756
|
};
|
|
1140
757
|
exports.se_ListReviewTemplateAnswersCommand = se_ListReviewTemplateAnswersCommand;
|
|
1141
758
|
const se_ListReviewTemplatesCommand = async (input, context) => {
|
|
1142
|
-
const
|
|
759
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1143
760
|
const headers = {};
|
|
1144
|
-
|
|
761
|
+
b.bp("/reviewTemplates");
|
|
1145
762
|
const query = (0, smithy_client_1.map)({
|
|
1146
|
-
|
|
1147
|
-
|
|
763
|
+
[_NT]: [, input[_NT]],
|
|
764
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
1148
765
|
});
|
|
1149
766
|
let body;
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
hostname,
|
|
1153
|
-
port,
|
|
1154
|
-
method: "GET",
|
|
1155
|
-
headers,
|
|
1156
|
-
path: resolvedPath,
|
|
1157
|
-
query,
|
|
1158
|
-
body,
|
|
1159
|
-
});
|
|
767
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
768
|
+
return b.build();
|
|
1160
769
|
};
|
|
1161
770
|
exports.se_ListReviewTemplatesCommand = se_ListReviewTemplatesCommand;
|
|
1162
771
|
const se_ListShareInvitationsCommand = async (input, context) => {
|
|
1163
|
-
const
|
|
772
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1164
773
|
const headers = {};
|
|
1165
|
-
|
|
774
|
+
b.bp("/shareInvitations");
|
|
1166
775
|
const query = (0, smithy_client_1.map)({
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
776
|
+
[_WNP]: [, input[_WNP]],
|
|
777
|
+
[_LNP]: [, input[_LNP]],
|
|
778
|
+
[_SRT]: [, input[_SRT]],
|
|
779
|
+
[_NT]: [, input[_NT]],
|
|
780
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
781
|
+
[_PNP]: [, input[_PNP]],
|
|
782
|
+
[_TNP]: [, input[_TNP]],
|
|
1174
783
|
});
|
|
1175
784
|
let body;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
hostname,
|
|
1179
|
-
port,
|
|
1180
|
-
method: "GET",
|
|
1181
|
-
headers,
|
|
1182
|
-
path: resolvedPath,
|
|
1183
|
-
query,
|
|
1184
|
-
body,
|
|
1185
|
-
});
|
|
785
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
786
|
+
return b.build();
|
|
1186
787
|
};
|
|
1187
788
|
exports.se_ListShareInvitationsCommand = se_ListShareInvitationsCommand;
|
|
1188
789
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
1189
|
-
const
|
|
790
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1190
791
|
const headers = {};
|
|
1191
|
-
|
|
1192
|
-
|
|
792
|
+
b.bp("/tags/{WorkloadArn}");
|
|
793
|
+
b.p("WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
|
|
1193
794
|
let body;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
hostname,
|
|
1197
|
-
port,
|
|
1198
|
-
method: "GET",
|
|
1199
|
-
headers,
|
|
1200
|
-
path: resolvedPath,
|
|
1201
|
-
body,
|
|
1202
|
-
});
|
|
795
|
+
b.m("GET").h(headers).b(body);
|
|
796
|
+
return b.build();
|
|
1203
797
|
};
|
|
1204
798
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
1205
799
|
const se_ListTemplateSharesCommand = async (input, context) => {
|
|
1206
|
-
const
|
|
800
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1207
801
|
const headers = {};
|
|
1208
|
-
|
|
1209
|
-
|
|
802
|
+
b.bp("/templates/shares/{TemplateArn}");
|
|
803
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
1210
804
|
const query = (0, smithy_client_1.map)({
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
805
|
+
[_SWP]: [, input[_SWP]],
|
|
806
|
+
[_NT]: [, input[_NT]],
|
|
807
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
808
|
+
[_S]: [, input[_S]],
|
|
1215
809
|
});
|
|
1216
810
|
let body;
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
hostname,
|
|
1220
|
-
port,
|
|
1221
|
-
method: "GET",
|
|
1222
|
-
headers,
|
|
1223
|
-
path: resolvedPath,
|
|
1224
|
-
query,
|
|
1225
|
-
body,
|
|
1226
|
-
});
|
|
811
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
812
|
+
return b.build();
|
|
1227
813
|
};
|
|
1228
814
|
exports.se_ListTemplateSharesCommand = se_ListTemplateSharesCommand;
|
|
1229
815
|
const se_ListWorkloadsCommand = async (input, context) => {
|
|
1230
|
-
const
|
|
816
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1231
817
|
const headers = {
|
|
1232
818
|
"content-type": "application/json",
|
|
1233
819
|
};
|
|
1234
|
-
|
|
820
|
+
b.bp("/workloadsSummaries");
|
|
1235
821
|
let body;
|
|
1236
822
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1237
823
|
MaxResults: [],
|
|
1238
824
|
NextToken: [],
|
|
1239
825
|
WorkloadNamePrefix: [],
|
|
1240
826
|
}));
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
hostname,
|
|
1244
|
-
port,
|
|
1245
|
-
method: "POST",
|
|
1246
|
-
headers,
|
|
1247
|
-
path: resolvedPath,
|
|
1248
|
-
body,
|
|
1249
|
-
});
|
|
827
|
+
b.m("POST").h(headers).b(body);
|
|
828
|
+
return b.build();
|
|
1250
829
|
};
|
|
1251
830
|
exports.se_ListWorkloadsCommand = se_ListWorkloadsCommand;
|
|
1252
831
|
const se_ListWorkloadSharesCommand = async (input, context) => {
|
|
1253
|
-
const
|
|
832
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1254
833
|
const headers = {};
|
|
1255
|
-
|
|
1256
|
-
|
|
834
|
+
b.bp("/workloads/{WorkloadId}/shares");
|
|
835
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
1257
836
|
const query = (0, smithy_client_1.map)({
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
837
|
+
[_SWP]: [, input[_SWP]],
|
|
838
|
+
[_NT]: [, input[_NT]],
|
|
839
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
840
|
+
[_S]: [, input[_S]],
|
|
1262
841
|
});
|
|
1263
842
|
let body;
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
hostname,
|
|
1267
|
-
port,
|
|
1268
|
-
method: "GET",
|
|
1269
|
-
headers,
|
|
1270
|
-
path: resolvedPath,
|
|
1271
|
-
query,
|
|
1272
|
-
body,
|
|
1273
|
-
});
|
|
843
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
844
|
+
return b.build();
|
|
1274
845
|
};
|
|
1275
846
|
exports.se_ListWorkloadSharesCommand = se_ListWorkloadSharesCommand;
|
|
1276
847
|
const se_TagResourceCommand = async (input, context) => {
|
|
1277
|
-
const
|
|
848
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1278
849
|
const headers = {
|
|
1279
850
|
"content-type": "application/json",
|
|
1280
851
|
};
|
|
1281
|
-
|
|
1282
|
-
|
|
852
|
+
b.bp("/tags/{WorkloadArn}");
|
|
853
|
+
b.p("WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
|
|
1283
854
|
let body;
|
|
1284
855
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1285
856
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
1286
857
|
}));
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
hostname,
|
|
1290
|
-
port,
|
|
1291
|
-
method: "POST",
|
|
1292
|
-
headers,
|
|
1293
|
-
path: resolvedPath,
|
|
1294
|
-
body,
|
|
1295
|
-
});
|
|
858
|
+
b.m("POST").h(headers).b(body);
|
|
859
|
+
return b.build();
|
|
1296
860
|
};
|
|
1297
861
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1298
862
|
const se_UntagResourceCommand = async (input, context) => {
|
|
1299
|
-
const
|
|
863
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1300
864
|
const headers = {};
|
|
1301
|
-
|
|
1302
|
-
|
|
865
|
+
b.bp("/tags/{WorkloadArn}");
|
|
866
|
+
b.p("WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
|
|
1303
867
|
const query = (0, smithy_client_1.map)({
|
|
1304
|
-
|
|
868
|
+
[_tK]: [
|
|
1305
869
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
1306
|
-
() => (input
|
|
870
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
1307
871
|
],
|
|
1308
872
|
});
|
|
1309
873
|
let body;
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
hostname,
|
|
1313
|
-
port,
|
|
1314
|
-
method: "DELETE",
|
|
1315
|
-
headers,
|
|
1316
|
-
path: resolvedPath,
|
|
1317
|
-
query,
|
|
1318
|
-
body,
|
|
1319
|
-
});
|
|
874
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
875
|
+
return b.build();
|
|
1320
876
|
};
|
|
1321
877
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1322
878
|
const se_UpdateAnswerCommand = async (input, context) => {
|
|
1323
|
-
const
|
|
879
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1324
880
|
const headers = {
|
|
1325
881
|
"content-type": "application/json",
|
|
1326
882
|
};
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
883
|
+
b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}");
|
|
884
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
885
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
886
|
+
b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
1332
887
|
let body;
|
|
1333
888
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1334
889
|
ChoiceUpdates: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1337,94 +892,65 @@ const se_UpdateAnswerCommand = async (input, context) => {
|
|
|
1337
892
|
Reason: [],
|
|
1338
893
|
SelectedChoices: (_) => (0, smithy_client_1._json)(_),
|
|
1339
894
|
}));
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
hostname,
|
|
1343
|
-
port,
|
|
1344
|
-
method: "PATCH",
|
|
1345
|
-
headers,
|
|
1346
|
-
path: resolvedPath,
|
|
1347
|
-
body,
|
|
1348
|
-
});
|
|
895
|
+
b.m("PATCH").h(headers).b(body);
|
|
896
|
+
return b.build();
|
|
1349
897
|
};
|
|
1350
898
|
exports.se_UpdateAnswerCommand = se_UpdateAnswerCommand;
|
|
1351
899
|
const se_UpdateGlobalSettingsCommand = async (input, context) => {
|
|
1352
|
-
const
|
|
900
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1353
901
|
const headers = {
|
|
1354
902
|
"content-type": "application/json",
|
|
1355
903
|
};
|
|
1356
|
-
|
|
904
|
+
b.bp("/global-settings");
|
|
1357
905
|
let body;
|
|
1358
906
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1359
907
|
DiscoveryIntegrationStatus: [],
|
|
1360
908
|
OrganizationSharingStatus: [],
|
|
1361
909
|
}));
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
hostname,
|
|
1365
|
-
port,
|
|
1366
|
-
method: "PATCH",
|
|
1367
|
-
headers,
|
|
1368
|
-
path: resolvedPath,
|
|
1369
|
-
body,
|
|
1370
|
-
});
|
|
910
|
+
b.m("PATCH").h(headers).b(body);
|
|
911
|
+
return b.build();
|
|
1371
912
|
};
|
|
1372
913
|
exports.se_UpdateGlobalSettingsCommand = se_UpdateGlobalSettingsCommand;
|
|
1373
914
|
const se_UpdateLensReviewCommand = async (input, context) => {
|
|
1374
|
-
const
|
|
915
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1375
916
|
const headers = {
|
|
1376
917
|
"content-type": "application/json",
|
|
1377
918
|
};
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
919
|
+
b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}");
|
|
920
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
921
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1382
922
|
let body;
|
|
1383
923
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1384
924
|
LensNotes: [],
|
|
1385
925
|
PillarNotes: (_) => (0, smithy_client_1._json)(_),
|
|
1386
926
|
}));
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
hostname,
|
|
1390
|
-
port,
|
|
1391
|
-
method: "PATCH",
|
|
1392
|
-
headers,
|
|
1393
|
-
path: resolvedPath,
|
|
1394
|
-
body,
|
|
1395
|
-
});
|
|
927
|
+
b.m("PATCH").h(headers).b(body);
|
|
928
|
+
return b.build();
|
|
1396
929
|
};
|
|
1397
930
|
exports.se_UpdateLensReviewCommand = se_UpdateLensReviewCommand;
|
|
1398
931
|
const se_UpdateProfileCommand = async (input, context) => {
|
|
1399
|
-
const
|
|
932
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1400
933
|
const headers = {
|
|
1401
934
|
"content-type": "application/json",
|
|
1402
935
|
};
|
|
1403
|
-
|
|
1404
|
-
|
|
936
|
+
b.bp("/profiles/{ProfileArn}");
|
|
937
|
+
b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
1405
938
|
let body;
|
|
1406
939
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1407
940
|
ProfileDescription: [],
|
|
1408
941
|
ProfileQuestions: (_) => (0, smithy_client_1._json)(_),
|
|
1409
942
|
}));
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
hostname,
|
|
1413
|
-
port,
|
|
1414
|
-
method: "PATCH",
|
|
1415
|
-
headers,
|
|
1416
|
-
path: resolvedPath,
|
|
1417
|
-
body,
|
|
1418
|
-
});
|
|
943
|
+
b.m("PATCH").h(headers).b(body);
|
|
944
|
+
return b.build();
|
|
1419
945
|
};
|
|
1420
946
|
exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
|
|
1421
947
|
const se_UpdateReviewTemplateCommand = async (input, context) => {
|
|
1422
|
-
const
|
|
948
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1423
949
|
const headers = {
|
|
1424
950
|
"content-type": "application/json",
|
|
1425
951
|
};
|
|
1426
|
-
|
|
1427
|
-
|
|
952
|
+
b.bp("/reviewTemplates/{TemplateArn}");
|
|
953
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
1428
954
|
let body;
|
|
1429
955
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1430
956
|
Description: [],
|
|
@@ -1433,27 +959,19 @@ const se_UpdateReviewTemplateCommand = async (input, context) => {
|
|
|
1433
959
|
Notes: [],
|
|
1434
960
|
TemplateName: [],
|
|
1435
961
|
}));
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
hostname,
|
|
1439
|
-
port,
|
|
1440
|
-
method: "PATCH",
|
|
1441
|
-
headers,
|
|
1442
|
-
path: resolvedPath,
|
|
1443
|
-
body,
|
|
1444
|
-
});
|
|
962
|
+
b.m("PATCH").h(headers).b(body);
|
|
963
|
+
return b.build();
|
|
1445
964
|
};
|
|
1446
965
|
exports.se_UpdateReviewTemplateCommand = se_UpdateReviewTemplateCommand;
|
|
1447
966
|
const se_UpdateReviewTemplateAnswerCommand = async (input, context) => {
|
|
1448
|
-
const
|
|
967
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1449
968
|
const headers = {
|
|
1450
969
|
"content-type": "application/json",
|
|
1451
970
|
};
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
971
|
+
b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}");
|
|
972
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
973
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
974
|
+
b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
|
|
1457
975
|
let body;
|
|
1458
976
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1459
977
|
ChoiceUpdates: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1462,71 +980,49 @@ const se_UpdateReviewTemplateAnswerCommand = async (input, context) => {
|
|
|
1462
980
|
Reason: [],
|
|
1463
981
|
SelectedChoices: (_) => (0, smithy_client_1._json)(_),
|
|
1464
982
|
}));
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
hostname,
|
|
1468
|
-
port,
|
|
1469
|
-
method: "PATCH",
|
|
1470
|
-
headers,
|
|
1471
|
-
path: resolvedPath,
|
|
1472
|
-
body,
|
|
1473
|
-
});
|
|
983
|
+
b.m("PATCH").h(headers).b(body);
|
|
984
|
+
return b.build();
|
|
1474
985
|
};
|
|
1475
986
|
exports.se_UpdateReviewTemplateAnswerCommand = se_UpdateReviewTemplateAnswerCommand;
|
|
1476
987
|
const se_UpdateReviewTemplateLensReviewCommand = async (input, context) => {
|
|
1477
|
-
const
|
|
988
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1478
989
|
const headers = {
|
|
1479
990
|
"content-type": "application/json",
|
|
1480
991
|
};
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
992
|
+
b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}");
|
|
993
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
994
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1485
995
|
let body;
|
|
1486
996
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1487
997
|
LensNotes: [],
|
|
1488
998
|
PillarNotes: (_) => (0, smithy_client_1._json)(_),
|
|
1489
999
|
}));
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
hostname,
|
|
1493
|
-
port,
|
|
1494
|
-
method: "PATCH",
|
|
1495
|
-
headers,
|
|
1496
|
-
path: resolvedPath,
|
|
1497
|
-
body,
|
|
1498
|
-
});
|
|
1000
|
+
b.m("PATCH").h(headers).b(body);
|
|
1001
|
+
return b.build();
|
|
1499
1002
|
};
|
|
1500
1003
|
exports.se_UpdateReviewTemplateLensReviewCommand = se_UpdateReviewTemplateLensReviewCommand;
|
|
1501
1004
|
const se_UpdateShareInvitationCommand = async (input, context) => {
|
|
1502
|
-
const
|
|
1005
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1503
1006
|
const headers = {
|
|
1504
1007
|
"content-type": "application/json",
|
|
1505
1008
|
};
|
|
1506
|
-
|
|
1507
|
-
|
|
1009
|
+
b.bp("/shareInvitations/{ShareInvitationId}");
|
|
1010
|
+
b.p("ShareInvitationId", () => input.ShareInvitationId, "{ShareInvitationId}", false);
|
|
1508
1011
|
let body;
|
|
1509
1012
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1510
1013
|
ShareInvitationAction: [],
|
|
1511
1014
|
}));
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
hostname,
|
|
1515
|
-
port,
|
|
1516
|
-
method: "PATCH",
|
|
1517
|
-
headers,
|
|
1518
|
-
path: resolvedPath,
|
|
1519
|
-
body,
|
|
1520
|
-
});
|
|
1015
|
+
b.m("PATCH").h(headers).b(body);
|
|
1016
|
+
return b.build();
|
|
1521
1017
|
};
|
|
1522
1018
|
exports.se_UpdateShareInvitationCommand = se_UpdateShareInvitationCommand;
|
|
1523
1019
|
const se_UpdateWorkloadCommand = async (input, context) => {
|
|
1524
|
-
const
|
|
1020
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1525
1021
|
const headers = {
|
|
1526
1022
|
"content-type": "application/json",
|
|
1527
1023
|
};
|
|
1528
|
-
|
|
1529
|
-
|
|
1024
|
+
b.bp("/workloads/{WorkloadId}");
|
|
1025
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
1530
1026
|
let body;
|
|
1531
1027
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1532
1028
|
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1546,112 +1042,74 @@ const se_UpdateWorkloadCommand = async (input, context) => {
|
|
|
1546
1042
|
ReviewOwner: [],
|
|
1547
1043
|
WorkloadName: [],
|
|
1548
1044
|
}));
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
hostname,
|
|
1552
|
-
port,
|
|
1553
|
-
method: "PATCH",
|
|
1554
|
-
headers,
|
|
1555
|
-
path: resolvedPath,
|
|
1556
|
-
body,
|
|
1557
|
-
});
|
|
1045
|
+
b.m("PATCH").h(headers).b(body);
|
|
1046
|
+
return b.build();
|
|
1558
1047
|
};
|
|
1559
1048
|
exports.se_UpdateWorkloadCommand = se_UpdateWorkloadCommand;
|
|
1560
1049
|
const se_UpdateWorkloadShareCommand = async (input, context) => {
|
|
1561
|
-
const
|
|
1050
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1562
1051
|
const headers = {
|
|
1563
1052
|
"content-type": "application/json",
|
|
1564
1053
|
};
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1054
|
+
b.bp("/workloads/{WorkloadId}/shares/{ShareId}");
|
|
1055
|
+
b.p("ShareId", () => input.ShareId, "{ShareId}", false);
|
|
1056
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
1568
1057
|
let body;
|
|
1569
1058
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1570
1059
|
PermissionType: [],
|
|
1571
1060
|
}));
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
hostname,
|
|
1575
|
-
port,
|
|
1576
|
-
method: "PATCH",
|
|
1577
|
-
headers,
|
|
1578
|
-
path: resolvedPath,
|
|
1579
|
-
body,
|
|
1580
|
-
});
|
|
1061
|
+
b.m("PATCH").h(headers).b(body);
|
|
1062
|
+
return b.build();
|
|
1581
1063
|
};
|
|
1582
1064
|
exports.se_UpdateWorkloadShareCommand = se_UpdateWorkloadShareCommand;
|
|
1583
1065
|
const se_UpgradeLensReviewCommand = async (input, context) => {
|
|
1584
|
-
const
|
|
1066
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1585
1067
|
const headers = {
|
|
1586
1068
|
"content-type": "application/json",
|
|
1587
1069
|
};
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1070
|
+
b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/upgrade");
|
|
1071
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
1072
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1592
1073
|
let body;
|
|
1593
1074
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1594
1075
|
ClientRequestToken: [],
|
|
1595
1076
|
MilestoneName: [],
|
|
1596
1077
|
}));
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
hostname,
|
|
1600
|
-
port,
|
|
1601
|
-
method: "PUT",
|
|
1602
|
-
headers,
|
|
1603
|
-
path: resolvedPath,
|
|
1604
|
-
body,
|
|
1605
|
-
});
|
|
1078
|
+
b.m("PUT").h(headers).b(body);
|
|
1079
|
+
return b.build();
|
|
1606
1080
|
};
|
|
1607
1081
|
exports.se_UpgradeLensReviewCommand = se_UpgradeLensReviewCommand;
|
|
1608
1082
|
const se_UpgradeProfileVersionCommand = async (input, context) => {
|
|
1609
|
-
const
|
|
1083
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1610
1084
|
const headers = {
|
|
1611
1085
|
"content-type": "application/json",
|
|
1612
1086
|
};
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
1087
|
+
b.bp("/workloads/{WorkloadId}/profiles/{ProfileArn}/upgrade");
|
|
1088
|
+
b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
1089
|
+
b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
1617
1090
|
let body;
|
|
1618
1091
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1619
1092
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1620
1093
|
MilestoneName: [],
|
|
1621
1094
|
}));
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
hostname,
|
|
1625
|
-
port,
|
|
1626
|
-
method: "PUT",
|
|
1627
|
-
headers,
|
|
1628
|
-
path: resolvedPath,
|
|
1629
|
-
body,
|
|
1630
|
-
});
|
|
1095
|
+
b.m("PUT").h(headers).b(body);
|
|
1096
|
+
return b.build();
|
|
1631
1097
|
};
|
|
1632
1098
|
exports.se_UpgradeProfileVersionCommand = se_UpgradeProfileVersionCommand;
|
|
1633
1099
|
const se_UpgradeReviewTemplateLensReviewCommand = async (input, context) => {
|
|
1634
|
-
const
|
|
1100
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1635
1101
|
const headers = {
|
|
1636
1102
|
"content-type": "application/json",
|
|
1637
1103
|
};
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1104
|
+
b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/upgrade");
|
|
1105
|
+
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
1106
|
+
b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
|
|
1642
1107
|
let body;
|
|
1643
1108
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1644
1109
|
ClientRequestToken: [],
|
|
1645
1110
|
}));
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
hostname,
|
|
1649
|
-
port,
|
|
1650
|
-
method: "PUT",
|
|
1651
|
-
headers,
|
|
1652
|
-
path: resolvedPath,
|
|
1653
|
-
body,
|
|
1654
|
-
});
|
|
1111
|
+
b.m("PUT").h(headers).b(body);
|
|
1112
|
+
return b.build();
|
|
1655
1113
|
};
|
|
1656
1114
|
exports.se_UpgradeReviewTemplateLensReviewCommand = se_UpgradeReviewTemplateLensReviewCommand;
|
|
1657
1115
|
const de_AssociateLensesCommand = async (output, context) => {
|
|
@@ -5360,6 +4818,32 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
5360
4818
|
value !== "" &&
|
|
5361
4819
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
5362
4820
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4821
|
+
const _BLV = "BaseLensVersion";
|
|
4822
|
+
const _CRT = "ClientRequestToken";
|
|
4823
|
+
const _F = "Format";
|
|
4824
|
+
const _ISR = "IncludeSharedResources";
|
|
4825
|
+
const _LN = "LensName";
|
|
4826
|
+
const _LNP = "LensNamePrefix";
|
|
4827
|
+
const _LS = "LensStatus";
|
|
4828
|
+
const _LT = "LensType";
|
|
4829
|
+
const _LV = "LensVersion";
|
|
4830
|
+
const _MN = "MilestoneNumber";
|
|
4831
|
+
const _MR = "MaxResults";
|
|
4832
|
+
const _NT = "NextToken";
|
|
4833
|
+
const _PI = "PillarId";
|
|
4834
|
+
const _PNP = "ProfileNamePrefix";
|
|
4835
|
+
const _POT = "ProfileOwnerType";
|
|
4836
|
+
const _PV = "ProfileVersion";
|
|
4837
|
+
const _QP = "QuestionPriority";
|
|
4838
|
+
const _S = "Status";
|
|
4839
|
+
const _SRT = "ShareResourceType";
|
|
4840
|
+
const _SWP = "SharedWithPrefix";
|
|
4841
|
+
const _TK = "TagKeys";
|
|
4842
|
+
const _TLV = "TargetLensVersion";
|
|
4843
|
+
const _TNP = "TemplateNamePrefix";
|
|
4844
|
+
const _WI = "WorkloadId";
|
|
4845
|
+
const _WNP = "WorkloadNamePrefix";
|
|
4846
|
+
const _tK = "tagKeys";
|
|
5363
4847
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5364
4848
|
if (encoded.length) {
|
|
5365
4849
|
return JSON.parse(encoded);
|