@aws-sdk/client-wellarchitected 3.350.0 → 3.352.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -0
- package/dist-cjs/WellArchitected.js +26 -0
- package/dist-cjs/commands/AssociateProfilesCommand.js +46 -0
- package/dist-cjs/commands/CreateProfileCommand.js +46 -0
- package/dist-cjs/commands/CreateProfileShareCommand.js +46 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +46 -0
- package/dist-cjs/commands/DeleteProfileShareCommand.js +46 -0
- package/dist-cjs/commands/DisassociateProfilesCommand.js +46 -0
- package/dist-cjs/commands/GetProfileCommand.js +46 -0
- package/dist-cjs/commands/GetProfileTemplateCommand.js +46 -0
- package/dist-cjs/commands/ListProfileNotificationsCommand.js +46 -0
- package/dist-cjs/commands/ListProfileSharesCommand.js +46 -0
- package/dist-cjs/commands/ListProfilesCommand.js +46 -0
- package/dist-cjs/commands/UpdateProfileCommand.js +46 -0
- package/dist-cjs/commands/UpgradeProfileVersionCommand.js +46 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/models/models_0.js +18 -1
- package/dist-cjs/pagination/ListProfileNotificationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListProfileSharesPaginator.js +29 -0
- package/dist-cjs/pagination/ListProfilesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +991 -40
- package/dist-es/WellArchitected.js +26 -0
- package/dist-es/commands/AssociateProfilesCommand.js +42 -0
- package/dist-es/commands/CreateProfileCommand.js +42 -0
- package/dist-es/commands/CreateProfileShareCommand.js +42 -0
- package/dist-es/commands/DeleteProfileCommand.js +42 -0
- package/dist-es/commands/DeleteProfileShareCommand.js +42 -0
- package/dist-es/commands/DisassociateProfilesCommand.js +42 -0
- package/dist-es/commands/GetProfileCommand.js +42 -0
- package/dist-es/commands/GetProfileTemplateCommand.js +42 -0
- package/dist-es/commands/ListProfileNotificationsCommand.js +42 -0
- package/dist-es/commands/ListProfileSharesCommand.js +42 -0
- package/dist-es/commands/ListProfilesCommand.js +42 -0
- package/dist-es/commands/UpdateProfileCommand.js +42 -0
- package/dist-es/commands/UpgradeProfileVersionCommand.js +42 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/models/models_0.js +17 -0
- package/dist-es/pagination/ListProfileNotificationsPaginator.js +25 -0
- package/dist-es/pagination/ListProfileSharesPaginator.js +25 -0
- package/dist-es/pagination/ListProfilesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +960 -36
- package/dist-types/WellArchitected.d.ts +91 -0
- package/dist-types/WellArchitectedClient.d.ts +15 -2
- package/dist-types/commands/AssociateProfilesCommand.d.ts +92 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +105 -0
- package/dist-types/commands/CreateProfileShareCommand.d.ts +97 -0
- package/dist-types/commands/CreateWorkloadCommand.d.ts +3 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +101 -0
- package/dist-types/commands/DeleteProfileShareCommand.d.ts +91 -0
- package/dist-types/commands/DisassociateProfilesCommand.d.ts +92 -0
- package/dist-types/commands/GetLensReviewCommand.d.ts +12 -0
- package/dist-types/commands/GetMilestoneCommand.d.ts +9 -0
- package/dist-types/commands/GetProfileCommand.d.ts +120 -0
- package/dist-types/commands/GetProfileTemplateCommand.d.ts +106 -0
- package/dist-types/commands/GetWorkloadCommand.d.ts +9 -0
- package/dist-types/commands/ListAnswersCommand.d.ts +2 -0
- package/dist-types/commands/ListLensReviewImprovementsCommand.d.ts +1 -0
- package/dist-types/commands/ListLensReviewsCommand.d.ts +9 -0
- package/dist-types/commands/ListMilestonesCommand.d.ts +9 -0
- package/dist-types/commands/ListProfileNotificationsCommand.d.ts +98 -0
- package/dist-types/commands/ListProfileSharesCommand.d.ts +100 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +99 -0
- package/dist-types/commands/ListShareInvitationsCommand.d.ts +5 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListWorkloadsCommand.d.ts +9 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLensReviewCommand.d.ts +12 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +131 -0
- package/dist-types/commands/UpdateShareInvitationCommand.d.ts +2 -1
- package/dist-types/commands/UpdateWorkloadCommand.d.ts +9 -0
- package/dist-types/commands/UpgradeProfileVersionCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +850 -90
- package/dist-types/pagination/ListProfileNotificationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProfileSharesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
- package/dist-types/ts3.4/WellArchitected.d.ts +221 -0
- package/dist-types/ts3.4/WellArchitectedClient.d.ts +80 -2
- package/dist-types/ts3.4/commands/AssociateProfilesCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateProfileShareCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/DeleteProfileShareCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DisassociateProfilesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetProfileTemplateCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListProfileNotificationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListProfileSharesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpgradeProfileVersionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +210 -0
- package/dist-types/ts3.4/pagination/ListProfileNotificationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProfileSharesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +5 -5
|
@@ -24,6 +24,27 @@ export const se_AssociateLensesCommand = async (input, context) => {
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
+
export const se_AssociateProfilesCommand = async (input, context) => {
|
|
28
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
|
+
const headers = {
|
|
30
|
+
"content-type": "application/json",
|
|
31
|
+
};
|
|
32
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/associateProfiles";
|
|
33
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
34
|
+
let body;
|
|
35
|
+
body = JSON.stringify(take(input, {
|
|
36
|
+
ProfileArns: (_) => _json(_),
|
|
37
|
+
}));
|
|
38
|
+
return new __HttpRequest({
|
|
39
|
+
protocol,
|
|
40
|
+
hostname,
|
|
41
|
+
port,
|
|
42
|
+
method: "PATCH",
|
|
43
|
+
headers,
|
|
44
|
+
path: resolvedPath,
|
|
45
|
+
body,
|
|
46
|
+
});
|
|
47
|
+
};
|
|
27
48
|
export const se_CreateLensShareCommand = async (input, context) => {
|
|
28
49
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
50
|
const headers = {
|
|
@@ -91,6 +112,52 @@ export const se_CreateMilestoneCommand = async (input, context) => {
|
|
|
91
112
|
body,
|
|
92
113
|
});
|
|
93
114
|
};
|
|
115
|
+
export const se_CreateProfileCommand = async (input, context) => {
|
|
116
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
117
|
+
const headers = {
|
|
118
|
+
"content-type": "application/json",
|
|
119
|
+
};
|
|
120
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
|
|
121
|
+
let body;
|
|
122
|
+
body = JSON.stringify(take(input, {
|
|
123
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
124
|
+
ProfileDescription: [],
|
|
125
|
+
ProfileName: [],
|
|
126
|
+
ProfileQuestions: (_) => _json(_),
|
|
127
|
+
Tags: (_) => _json(_),
|
|
128
|
+
}));
|
|
129
|
+
return new __HttpRequest({
|
|
130
|
+
protocol,
|
|
131
|
+
hostname,
|
|
132
|
+
port,
|
|
133
|
+
method: "POST",
|
|
134
|
+
headers,
|
|
135
|
+
path: resolvedPath,
|
|
136
|
+
body,
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
export const se_CreateProfileShareCommand = async (input, context) => {
|
|
140
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/json",
|
|
143
|
+
};
|
|
144
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares";
|
|
145
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
146
|
+
let body;
|
|
147
|
+
body = JSON.stringify(take(input, {
|
|
148
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
149
|
+
SharedWith: [],
|
|
150
|
+
}));
|
|
151
|
+
return new __HttpRequest({
|
|
152
|
+
protocol,
|
|
153
|
+
hostname,
|
|
154
|
+
port,
|
|
155
|
+
method: "POST",
|
|
156
|
+
headers,
|
|
157
|
+
path: resolvedPath,
|
|
158
|
+
body,
|
|
159
|
+
});
|
|
160
|
+
};
|
|
94
161
|
export const se_CreateWorkloadCommand = async (input, context) => {
|
|
95
162
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
96
163
|
const headers = {
|
|
@@ -113,6 +180,7 @@ export const se_CreateWorkloadCommand = async (input, context) => {
|
|
|
113
180
|
NonAwsRegions: (_) => _json(_),
|
|
114
181
|
Notes: [],
|
|
115
182
|
PillarPriorities: (_) => _json(_),
|
|
183
|
+
ProfileArns: (_) => _json(_),
|
|
116
184
|
ReviewOwner: [],
|
|
117
185
|
Tags: (_) => _json(_),
|
|
118
186
|
WorkloadName: [],
|
|
@@ -192,6 +260,47 @@ export const se_DeleteLensShareCommand = async (input, context) => {
|
|
|
192
260
|
body,
|
|
193
261
|
});
|
|
194
262
|
};
|
|
263
|
+
export const se_DeleteProfileCommand = async (input, context) => {
|
|
264
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
|
+
const headers = {};
|
|
266
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}";
|
|
267
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
268
|
+
const query = map({
|
|
269
|
+
ClientRequestToken: [, __expectNonNull(input.ClientRequestToken, `ClientRequestToken`)],
|
|
270
|
+
});
|
|
271
|
+
let body;
|
|
272
|
+
return new __HttpRequest({
|
|
273
|
+
protocol,
|
|
274
|
+
hostname,
|
|
275
|
+
port,
|
|
276
|
+
method: "DELETE",
|
|
277
|
+
headers,
|
|
278
|
+
path: resolvedPath,
|
|
279
|
+
query,
|
|
280
|
+
body,
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
export const se_DeleteProfileShareCommand = async (input, context) => {
|
|
284
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
285
|
+
const headers = {};
|
|
286
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares/{ShareId}";
|
|
287
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ShareId", () => input.ShareId, "{ShareId}", false);
|
|
288
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
289
|
+
const query = map({
|
|
290
|
+
ClientRequestToken: [, __expectNonNull(input.ClientRequestToken, `ClientRequestToken`)],
|
|
291
|
+
});
|
|
292
|
+
let body;
|
|
293
|
+
return new __HttpRequest({
|
|
294
|
+
protocol,
|
|
295
|
+
hostname,
|
|
296
|
+
port,
|
|
297
|
+
method: "DELETE",
|
|
298
|
+
headers,
|
|
299
|
+
path: resolvedPath,
|
|
300
|
+
query,
|
|
301
|
+
body,
|
|
302
|
+
});
|
|
303
|
+
};
|
|
195
304
|
export const se_DeleteWorkloadCommand = async (input, context) => {
|
|
196
305
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
197
306
|
const headers = {};
|
|
@@ -255,6 +364,28 @@ export const se_DisassociateLensesCommand = async (input, context) => {
|
|
|
255
364
|
body,
|
|
256
365
|
});
|
|
257
366
|
};
|
|
367
|
+
export const se_DisassociateProfilesCommand = async (input, context) => {
|
|
368
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
369
|
+
const headers = {
|
|
370
|
+
"content-type": "application/json",
|
|
371
|
+
};
|
|
372
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
373
|
+
"/workloads/{WorkloadId}/disassociateProfiles";
|
|
374
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify(take(input, {
|
|
377
|
+
ProfileArns: (_) => _json(_),
|
|
378
|
+
}));
|
|
379
|
+
return new __HttpRequest({
|
|
380
|
+
protocol,
|
|
381
|
+
hostname,
|
|
382
|
+
port,
|
|
383
|
+
method: "PATCH",
|
|
384
|
+
headers,
|
|
385
|
+
path: resolvedPath,
|
|
386
|
+
body,
|
|
387
|
+
});
|
|
388
|
+
};
|
|
258
389
|
export const se_ExportLensCommand = async (input, context) => {
|
|
259
390
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
260
391
|
const headers = {};
|
|
@@ -426,6 +557,44 @@ export const se_GetMilestoneCommand = async (input, context) => {
|
|
|
426
557
|
body,
|
|
427
558
|
});
|
|
428
559
|
};
|
|
560
|
+
export const se_GetProfileCommand = async (input, context) => {
|
|
561
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
562
|
+
const headers = {};
|
|
563
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}";
|
|
564
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
565
|
+
const query = map({
|
|
566
|
+
ProfileVersion: [, input.ProfileVersion],
|
|
567
|
+
});
|
|
568
|
+
let body;
|
|
569
|
+
return new __HttpRequest({
|
|
570
|
+
protocol,
|
|
571
|
+
hostname,
|
|
572
|
+
port,
|
|
573
|
+
method: "GET",
|
|
574
|
+
headers,
|
|
575
|
+
path: resolvedPath,
|
|
576
|
+
query,
|
|
577
|
+
body,
|
|
578
|
+
});
|
|
579
|
+
};
|
|
580
|
+
export const se_GetProfileTemplateCommand = async (input, context) => {
|
|
581
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
582
|
+
const headers = {
|
|
583
|
+
"content-type": "application/json",
|
|
584
|
+
};
|
|
585
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileTemplate";
|
|
586
|
+
let body;
|
|
587
|
+
body = "";
|
|
588
|
+
return new __HttpRequest({
|
|
589
|
+
protocol,
|
|
590
|
+
hostname,
|
|
591
|
+
port,
|
|
592
|
+
method: "GET",
|
|
593
|
+
headers,
|
|
594
|
+
path: resolvedPath,
|
|
595
|
+
body,
|
|
596
|
+
});
|
|
597
|
+
};
|
|
429
598
|
export const se_GetWorkloadCommand = async (input, context) => {
|
|
430
599
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
431
600
|
const headers = {};
|
|
@@ -477,6 +646,7 @@ export const se_ListAnswersCommand = async (input, context) => {
|
|
|
477
646
|
MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
|
|
478
647
|
NextToken: [, input.NextToken],
|
|
479
648
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
649
|
+
QuestionPriority: [, input.QuestionPriority],
|
|
480
650
|
});
|
|
481
651
|
let body;
|
|
482
652
|
return new __HttpRequest({
|
|
@@ -577,6 +747,7 @@ export const se_ListLensReviewImprovementsCommand = async (input, context) => {
|
|
|
577
747
|
MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber.toString()],
|
|
578
748
|
NextToken: [, input.NextToken],
|
|
579
749
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
750
|
+
QuestionPriority: [, input.QuestionPriority],
|
|
580
751
|
});
|
|
581
752
|
let body;
|
|
582
753
|
return new __HttpRequest({
|
|
@@ -680,6 +851,72 @@ export const se_ListNotificationsCommand = async (input, context) => {
|
|
|
680
851
|
body,
|
|
681
852
|
});
|
|
682
853
|
};
|
|
854
|
+
export const se_ListProfileNotificationsCommand = async (input, context) => {
|
|
855
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
856
|
+
const headers = {};
|
|
857
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileNotifications";
|
|
858
|
+
const query = map({
|
|
859
|
+
WorkloadId: [, input.WorkloadId],
|
|
860
|
+
NextToken: [, input.NextToken],
|
|
861
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
862
|
+
});
|
|
863
|
+
let body;
|
|
864
|
+
return new __HttpRequest({
|
|
865
|
+
protocol,
|
|
866
|
+
hostname,
|
|
867
|
+
port,
|
|
868
|
+
method: "GET",
|
|
869
|
+
headers,
|
|
870
|
+
path: resolvedPath,
|
|
871
|
+
query,
|
|
872
|
+
body,
|
|
873
|
+
});
|
|
874
|
+
};
|
|
875
|
+
export const se_ListProfilesCommand = async (input, context) => {
|
|
876
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
877
|
+
const headers = {};
|
|
878
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileSummaries";
|
|
879
|
+
const query = map({
|
|
880
|
+
ProfileNamePrefix: [, input.ProfileNamePrefix],
|
|
881
|
+
ProfileOwnerType: [, input.ProfileOwnerType],
|
|
882
|
+
NextToken: [, input.NextToken],
|
|
883
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
884
|
+
});
|
|
885
|
+
let body;
|
|
886
|
+
return new __HttpRequest({
|
|
887
|
+
protocol,
|
|
888
|
+
hostname,
|
|
889
|
+
port,
|
|
890
|
+
method: "GET",
|
|
891
|
+
headers,
|
|
892
|
+
path: resolvedPath,
|
|
893
|
+
query,
|
|
894
|
+
body,
|
|
895
|
+
});
|
|
896
|
+
};
|
|
897
|
+
export const se_ListProfileSharesCommand = async (input, context) => {
|
|
898
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
899
|
+
const headers = {};
|
|
900
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares";
|
|
901
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
902
|
+
const query = map({
|
|
903
|
+
SharedWithPrefix: [, input.SharedWithPrefix],
|
|
904
|
+
NextToken: [, input.NextToken],
|
|
905
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
906
|
+
Status: [, input.Status],
|
|
907
|
+
});
|
|
908
|
+
let body;
|
|
909
|
+
return new __HttpRequest({
|
|
910
|
+
protocol,
|
|
911
|
+
hostname,
|
|
912
|
+
port,
|
|
913
|
+
method: "GET",
|
|
914
|
+
headers,
|
|
915
|
+
path: resolvedPath,
|
|
916
|
+
query,
|
|
917
|
+
body,
|
|
918
|
+
});
|
|
919
|
+
};
|
|
683
920
|
export const se_ListShareInvitationsCommand = async (input, context) => {
|
|
684
921
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
685
922
|
const headers = {};
|
|
@@ -690,6 +927,7 @@ export const se_ListShareInvitationsCommand = async (input, context) => {
|
|
|
690
927
|
ShareResourceType: [, input.ShareResourceType],
|
|
691
928
|
NextToken: [, input.NextToken],
|
|
692
929
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
930
|
+
ProfileNamePrefix: [, input.ProfileNamePrefix],
|
|
693
931
|
});
|
|
694
932
|
let body;
|
|
695
933
|
return new __HttpRequest({
|
|
@@ -881,6 +1119,28 @@ export const se_UpdateLensReviewCommand = async (input, context) => {
|
|
|
881
1119
|
body,
|
|
882
1120
|
});
|
|
883
1121
|
};
|
|
1122
|
+
export const se_UpdateProfileCommand = async (input, context) => {
|
|
1123
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1124
|
+
const headers = {
|
|
1125
|
+
"content-type": "application/json",
|
|
1126
|
+
};
|
|
1127
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}";
|
|
1128
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
1129
|
+
let body;
|
|
1130
|
+
body = JSON.stringify(take(input, {
|
|
1131
|
+
ProfileDescription: [],
|
|
1132
|
+
ProfileQuestions: (_) => _json(_),
|
|
1133
|
+
}));
|
|
1134
|
+
return new __HttpRequest({
|
|
1135
|
+
protocol,
|
|
1136
|
+
hostname,
|
|
1137
|
+
port,
|
|
1138
|
+
method: "PATCH",
|
|
1139
|
+
headers,
|
|
1140
|
+
path: resolvedPath,
|
|
1141
|
+
body,
|
|
1142
|
+
});
|
|
1143
|
+
};
|
|
884
1144
|
export const se_UpdateShareInvitationCommand = async (input, context) => {
|
|
885
1145
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
886
1146
|
const headers = {
|
|
@@ -984,6 +1244,30 @@ export const se_UpgradeLensReviewCommand = async (input, context) => {
|
|
|
984
1244
|
body,
|
|
985
1245
|
});
|
|
986
1246
|
};
|
|
1247
|
+
export const se_UpgradeProfileVersionCommand = async (input, context) => {
|
|
1248
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1249
|
+
const headers = {
|
|
1250
|
+
"content-type": "application/json",
|
|
1251
|
+
};
|
|
1252
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1253
|
+
"/workloads/{WorkloadId}/profiles/{ProfileArn}/upgrade";
|
|
1254
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
|
|
1255
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
|
|
1256
|
+
let body;
|
|
1257
|
+
body = JSON.stringify(take(input, {
|
|
1258
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1259
|
+
MilestoneName: [],
|
|
1260
|
+
}));
|
|
1261
|
+
return new __HttpRequest({
|
|
1262
|
+
protocol,
|
|
1263
|
+
hostname,
|
|
1264
|
+
port,
|
|
1265
|
+
method: "PUT",
|
|
1266
|
+
headers,
|
|
1267
|
+
path: resolvedPath,
|
|
1268
|
+
body,
|
|
1269
|
+
});
|
|
1270
|
+
};
|
|
987
1271
|
export const de_AssociateLensesCommand = async (output, context) => {
|
|
988
1272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
989
1273
|
return de_AssociateLensesCommandError(output, context);
|
|
@@ -1028,21 +1312,17 @@ const de_AssociateLensesCommandError = async (output, context) => {
|
|
|
1028
1312
|
});
|
|
1029
1313
|
}
|
|
1030
1314
|
};
|
|
1031
|
-
export const
|
|
1315
|
+
export const de_AssociateProfilesCommand = async (output, context) => {
|
|
1032
1316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
-
return
|
|
1317
|
+
return de_AssociateProfilesCommandError(output, context);
|
|
1034
1318
|
}
|
|
1035
1319
|
const contents = map({
|
|
1036
1320
|
$metadata: deserializeMetadata(output),
|
|
1037
1321
|
});
|
|
1038
|
-
|
|
1039
|
-
const doc = take(data, {
|
|
1040
|
-
ShareId: __expectString,
|
|
1041
|
-
});
|
|
1042
|
-
Object.assign(contents, doc);
|
|
1322
|
+
await collectBody(output.body, context);
|
|
1043
1323
|
return contents;
|
|
1044
1324
|
};
|
|
1045
|
-
const
|
|
1325
|
+
const de_AssociateProfilesCommandError = async (output, context) => {
|
|
1046
1326
|
const parsedOutput = {
|
|
1047
1327
|
...output,
|
|
1048
1328
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1061,9 +1341,6 @@ const de_CreateLensShareCommandError = async (output, context) => {
|
|
|
1061
1341
|
case "ResourceNotFoundException":
|
|
1062
1342
|
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1063
1343
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ServiceQuotaExceededException":
|
|
1065
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1066
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1067
1344
|
case "ThrottlingException":
|
|
1068
1345
|
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1069
1346
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1079,22 +1356,73 @@ const de_CreateLensShareCommandError = async (output, context) => {
|
|
|
1079
1356
|
});
|
|
1080
1357
|
}
|
|
1081
1358
|
};
|
|
1082
|
-
export const
|
|
1359
|
+
export const de_CreateLensShareCommand = async (output, context) => {
|
|
1083
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1084
|
-
return
|
|
1361
|
+
return de_CreateLensShareCommandError(output, context);
|
|
1085
1362
|
}
|
|
1086
1363
|
const contents = map({
|
|
1087
1364
|
$metadata: deserializeMetadata(output),
|
|
1088
1365
|
});
|
|
1089
1366
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1090
1367
|
const doc = take(data, {
|
|
1091
|
-
|
|
1092
|
-
LensVersion: __expectString,
|
|
1368
|
+
ShareId: __expectString,
|
|
1093
1369
|
});
|
|
1094
1370
|
Object.assign(contents, doc);
|
|
1095
1371
|
return contents;
|
|
1096
1372
|
};
|
|
1097
|
-
const
|
|
1373
|
+
const de_CreateLensShareCommandError = async (output, context) => {
|
|
1374
|
+
const parsedOutput = {
|
|
1375
|
+
...output,
|
|
1376
|
+
body: await parseErrorBody(output.body, context),
|
|
1377
|
+
};
|
|
1378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
|
+
switch (errorCode) {
|
|
1380
|
+
case "AccessDeniedException":
|
|
1381
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1382
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1383
|
+
case "ConflictException":
|
|
1384
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1385
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1386
|
+
case "InternalServerException":
|
|
1387
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1388
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1389
|
+
case "ResourceNotFoundException":
|
|
1390
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1391
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1392
|
+
case "ServiceQuotaExceededException":
|
|
1393
|
+
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1394
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1395
|
+
case "ThrottlingException":
|
|
1396
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1397
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1398
|
+
case "ValidationException":
|
|
1399
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1400
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1401
|
+
default:
|
|
1402
|
+
const parsedBody = parsedOutput.body;
|
|
1403
|
+
return throwDefaultError({
|
|
1404
|
+
output,
|
|
1405
|
+
parsedBody,
|
|
1406
|
+
errorCode,
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
};
|
|
1410
|
+
export const de_CreateLensVersionCommand = async (output, context) => {
|
|
1411
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1412
|
+
return de_CreateLensVersionCommandError(output, context);
|
|
1413
|
+
}
|
|
1414
|
+
const contents = map({
|
|
1415
|
+
$metadata: deserializeMetadata(output),
|
|
1416
|
+
});
|
|
1417
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1418
|
+
const doc = take(data, {
|
|
1419
|
+
LensArn: __expectString,
|
|
1420
|
+
LensVersion: __expectString,
|
|
1421
|
+
});
|
|
1422
|
+
Object.assign(contents, doc);
|
|
1423
|
+
return contents;
|
|
1424
|
+
};
|
|
1425
|
+
const de_CreateLensVersionCommandError = async (output, context) => {
|
|
1098
1426
|
const parsedOutput = {
|
|
1099
1427
|
...output,
|
|
1100
1428
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1183,6 +1511,107 @@ const de_CreateMilestoneCommandError = async (output, context) => {
|
|
|
1183
1511
|
});
|
|
1184
1512
|
}
|
|
1185
1513
|
};
|
|
1514
|
+
export const de_CreateProfileCommand = async (output, context) => {
|
|
1515
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1516
|
+
return de_CreateProfileCommandError(output, context);
|
|
1517
|
+
}
|
|
1518
|
+
const contents = map({
|
|
1519
|
+
$metadata: deserializeMetadata(output),
|
|
1520
|
+
});
|
|
1521
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1522
|
+
const doc = take(data, {
|
|
1523
|
+
ProfileArn: __expectString,
|
|
1524
|
+
ProfileVersion: __expectString,
|
|
1525
|
+
});
|
|
1526
|
+
Object.assign(contents, doc);
|
|
1527
|
+
return contents;
|
|
1528
|
+
};
|
|
1529
|
+
const de_CreateProfileCommandError = async (output, context) => {
|
|
1530
|
+
const parsedOutput = {
|
|
1531
|
+
...output,
|
|
1532
|
+
body: await parseErrorBody(output.body, context),
|
|
1533
|
+
};
|
|
1534
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
|
+
switch (errorCode) {
|
|
1536
|
+
case "AccessDeniedException":
|
|
1537
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1538
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1539
|
+
case "ConflictException":
|
|
1540
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1541
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1542
|
+
case "InternalServerException":
|
|
1543
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1544
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1545
|
+
case "ServiceQuotaExceededException":
|
|
1546
|
+
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1547
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1548
|
+
case "ThrottlingException":
|
|
1549
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1550
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1551
|
+
case "ValidationException":
|
|
1552
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1553
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1554
|
+
default:
|
|
1555
|
+
const parsedBody = parsedOutput.body;
|
|
1556
|
+
return throwDefaultError({
|
|
1557
|
+
output,
|
|
1558
|
+
parsedBody,
|
|
1559
|
+
errorCode,
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
};
|
|
1563
|
+
export const de_CreateProfileShareCommand = async (output, context) => {
|
|
1564
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1565
|
+
return de_CreateProfileShareCommandError(output, context);
|
|
1566
|
+
}
|
|
1567
|
+
const contents = map({
|
|
1568
|
+
$metadata: deserializeMetadata(output),
|
|
1569
|
+
});
|
|
1570
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1571
|
+
const doc = take(data, {
|
|
1572
|
+
ProfileArn: __expectString,
|
|
1573
|
+
ShareId: __expectString,
|
|
1574
|
+
});
|
|
1575
|
+
Object.assign(contents, doc);
|
|
1576
|
+
return contents;
|
|
1577
|
+
};
|
|
1578
|
+
const de_CreateProfileShareCommandError = async (output, context) => {
|
|
1579
|
+
const parsedOutput = {
|
|
1580
|
+
...output,
|
|
1581
|
+
body: await parseErrorBody(output.body, context),
|
|
1582
|
+
};
|
|
1583
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
|
+
switch (errorCode) {
|
|
1585
|
+
case "AccessDeniedException":
|
|
1586
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1587
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1588
|
+
case "ConflictException":
|
|
1589
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1590
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1591
|
+
case "InternalServerException":
|
|
1592
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1593
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1594
|
+
case "ResourceNotFoundException":
|
|
1595
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1596
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1597
|
+
case "ServiceQuotaExceededException":
|
|
1598
|
+
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1599
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1600
|
+
case "ThrottlingException":
|
|
1601
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1602
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1603
|
+
case "ValidationException":
|
|
1604
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1605
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1606
|
+
default:
|
|
1607
|
+
const parsedBody = parsedOutput.body;
|
|
1608
|
+
return throwDefaultError({
|
|
1609
|
+
output,
|
|
1610
|
+
parsedBody,
|
|
1611
|
+
errorCode,
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
};
|
|
1186
1615
|
export const de_CreateWorkloadCommand = async (output, context) => {
|
|
1187
1616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
1617
|
return de_CreateWorkloadCommandError(output, context);
|
|
@@ -1375,6 +1804,94 @@ const de_DeleteLensShareCommandError = async (output, context) => {
|
|
|
1375
1804
|
});
|
|
1376
1805
|
}
|
|
1377
1806
|
};
|
|
1807
|
+
export const de_DeleteProfileCommand = async (output, context) => {
|
|
1808
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1809
|
+
return de_DeleteProfileCommandError(output, context);
|
|
1810
|
+
}
|
|
1811
|
+
const contents = map({
|
|
1812
|
+
$metadata: deserializeMetadata(output),
|
|
1813
|
+
});
|
|
1814
|
+
await collectBody(output.body, context);
|
|
1815
|
+
return contents;
|
|
1816
|
+
};
|
|
1817
|
+
const de_DeleteProfileCommandError = async (output, context) => {
|
|
1818
|
+
const parsedOutput = {
|
|
1819
|
+
...output,
|
|
1820
|
+
body: await parseErrorBody(output.body, context),
|
|
1821
|
+
};
|
|
1822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1823
|
+
switch (errorCode) {
|
|
1824
|
+
case "AccessDeniedException":
|
|
1825
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1826
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1827
|
+
case "ConflictException":
|
|
1828
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1829
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1830
|
+
case "InternalServerException":
|
|
1831
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1832
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1833
|
+
case "ResourceNotFoundException":
|
|
1834
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1835
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1836
|
+
case "ThrottlingException":
|
|
1837
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1838
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1839
|
+
case "ValidationException":
|
|
1840
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1841
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1842
|
+
default:
|
|
1843
|
+
const parsedBody = parsedOutput.body;
|
|
1844
|
+
return throwDefaultError({
|
|
1845
|
+
output,
|
|
1846
|
+
parsedBody,
|
|
1847
|
+
errorCode,
|
|
1848
|
+
});
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
export const de_DeleteProfileShareCommand = async (output, context) => {
|
|
1852
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1853
|
+
return de_DeleteProfileShareCommandError(output, context);
|
|
1854
|
+
}
|
|
1855
|
+
const contents = map({
|
|
1856
|
+
$metadata: deserializeMetadata(output),
|
|
1857
|
+
});
|
|
1858
|
+
await collectBody(output.body, context);
|
|
1859
|
+
return contents;
|
|
1860
|
+
};
|
|
1861
|
+
const de_DeleteProfileShareCommandError = async (output, context) => {
|
|
1862
|
+
const parsedOutput = {
|
|
1863
|
+
...output,
|
|
1864
|
+
body: await parseErrorBody(output.body, context),
|
|
1865
|
+
};
|
|
1866
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
|
+
switch (errorCode) {
|
|
1868
|
+
case "AccessDeniedException":
|
|
1869
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1870
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1871
|
+
case "ConflictException":
|
|
1872
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1873
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1874
|
+
case "InternalServerException":
|
|
1875
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1876
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1877
|
+
case "ResourceNotFoundException":
|
|
1878
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1879
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1880
|
+
case "ThrottlingException":
|
|
1881
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1882
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1883
|
+
case "ValidationException":
|
|
1884
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1885
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1886
|
+
default:
|
|
1887
|
+
const parsedBody = parsedOutput.body;
|
|
1888
|
+
return throwDefaultError({
|
|
1889
|
+
output,
|
|
1890
|
+
parsedBody,
|
|
1891
|
+
errorCode,
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
};
|
|
1378
1895
|
export const de_DeleteWorkloadCommand = async (output, context) => {
|
|
1379
1896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
1897
|
return de_DeleteWorkloadCommandError(output, context);
|
|
@@ -1507,6 +2024,50 @@ const de_DisassociateLensesCommandError = async (output, context) => {
|
|
|
1507
2024
|
});
|
|
1508
2025
|
}
|
|
1509
2026
|
};
|
|
2027
|
+
export const de_DisassociateProfilesCommand = async (output, context) => {
|
|
2028
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2029
|
+
return de_DisassociateProfilesCommandError(output, context);
|
|
2030
|
+
}
|
|
2031
|
+
const contents = map({
|
|
2032
|
+
$metadata: deserializeMetadata(output),
|
|
2033
|
+
});
|
|
2034
|
+
await collectBody(output.body, context);
|
|
2035
|
+
return contents;
|
|
2036
|
+
};
|
|
2037
|
+
const de_DisassociateProfilesCommandError = async (output, context) => {
|
|
2038
|
+
const parsedOutput = {
|
|
2039
|
+
...output,
|
|
2040
|
+
body: await parseErrorBody(output.body, context),
|
|
2041
|
+
};
|
|
2042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
|
+
switch (errorCode) {
|
|
2044
|
+
case "AccessDeniedException":
|
|
2045
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2046
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2047
|
+
case "ConflictException":
|
|
2048
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2049
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2050
|
+
case "InternalServerException":
|
|
2051
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2052
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2053
|
+
case "ResourceNotFoundException":
|
|
2054
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2055
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2056
|
+
case "ThrottlingException":
|
|
2057
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2058
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2059
|
+
case "ValidationException":
|
|
2060
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2061
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2062
|
+
default:
|
|
2063
|
+
const parsedBody = parsedOutput.body;
|
|
2064
|
+
return throwDefaultError({
|
|
2065
|
+
output,
|
|
2066
|
+
parsedBody,
|
|
2067
|
+
errorCode,
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
};
|
|
1510
2071
|
export const de_ExportLensCommand = async (output, context) => {
|
|
1511
2072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1512
2073
|
return de_ExportLensCommandError(output, context);
|
|
@@ -1709,7 +2270,104 @@ export const de_GetLensReviewCommand = async (output, context) => {
|
|
|
1709
2270
|
Object.assign(contents, doc);
|
|
1710
2271
|
return contents;
|
|
1711
2272
|
};
|
|
1712
|
-
const de_GetLensReviewCommandError = async (output, context) => {
|
|
2273
|
+
const de_GetLensReviewCommandError = async (output, context) => {
|
|
2274
|
+
const parsedOutput = {
|
|
2275
|
+
...output,
|
|
2276
|
+
body: await parseErrorBody(output.body, context),
|
|
2277
|
+
};
|
|
2278
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
|
+
switch (errorCode) {
|
|
2280
|
+
case "AccessDeniedException":
|
|
2281
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2282
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2283
|
+
case "InternalServerException":
|
|
2284
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2285
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2286
|
+
case "ResourceNotFoundException":
|
|
2287
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2288
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2289
|
+
case "ThrottlingException":
|
|
2290
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2291
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2292
|
+
case "ValidationException":
|
|
2293
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2294
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2295
|
+
default:
|
|
2296
|
+
const parsedBody = parsedOutput.body;
|
|
2297
|
+
return throwDefaultError({
|
|
2298
|
+
output,
|
|
2299
|
+
parsedBody,
|
|
2300
|
+
errorCode,
|
|
2301
|
+
});
|
|
2302
|
+
}
|
|
2303
|
+
};
|
|
2304
|
+
export const de_GetLensReviewReportCommand = async (output, context) => {
|
|
2305
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2306
|
+
return de_GetLensReviewReportCommandError(output, context);
|
|
2307
|
+
}
|
|
2308
|
+
const contents = map({
|
|
2309
|
+
$metadata: deserializeMetadata(output),
|
|
2310
|
+
});
|
|
2311
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2312
|
+
const doc = take(data, {
|
|
2313
|
+
LensReviewReport: _json,
|
|
2314
|
+
MilestoneNumber: __expectInt32,
|
|
2315
|
+
WorkloadId: __expectString,
|
|
2316
|
+
});
|
|
2317
|
+
Object.assign(contents, doc);
|
|
2318
|
+
return contents;
|
|
2319
|
+
};
|
|
2320
|
+
const de_GetLensReviewReportCommandError = async (output, context) => {
|
|
2321
|
+
const parsedOutput = {
|
|
2322
|
+
...output,
|
|
2323
|
+
body: await parseErrorBody(output.body, context),
|
|
2324
|
+
};
|
|
2325
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2326
|
+
switch (errorCode) {
|
|
2327
|
+
case "AccessDeniedException":
|
|
2328
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2329
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2330
|
+
case "InternalServerException":
|
|
2331
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2332
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2333
|
+
case "ResourceNotFoundException":
|
|
2334
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2335
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2336
|
+
case "ThrottlingException":
|
|
2337
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2338
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2339
|
+
case "ValidationException":
|
|
2340
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2341
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2342
|
+
default:
|
|
2343
|
+
const parsedBody = parsedOutput.body;
|
|
2344
|
+
return throwDefaultError({
|
|
2345
|
+
output,
|
|
2346
|
+
parsedBody,
|
|
2347
|
+
errorCode,
|
|
2348
|
+
});
|
|
2349
|
+
}
|
|
2350
|
+
};
|
|
2351
|
+
export const de_GetLensVersionDifferenceCommand = async (output, context) => {
|
|
2352
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2353
|
+
return de_GetLensVersionDifferenceCommandError(output, context);
|
|
2354
|
+
}
|
|
2355
|
+
const contents = map({
|
|
2356
|
+
$metadata: deserializeMetadata(output),
|
|
2357
|
+
});
|
|
2358
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2359
|
+
const doc = take(data, {
|
|
2360
|
+
BaseLensVersion: __expectString,
|
|
2361
|
+
LatestLensVersion: __expectString,
|
|
2362
|
+
LensAlias: __expectString,
|
|
2363
|
+
LensArn: __expectString,
|
|
2364
|
+
TargetLensVersion: __expectString,
|
|
2365
|
+
VersionDifferences: _json,
|
|
2366
|
+
});
|
|
2367
|
+
Object.assign(contents, doc);
|
|
2368
|
+
return contents;
|
|
2369
|
+
};
|
|
2370
|
+
const de_GetLensVersionDifferenceCommandError = async (output, context) => {
|
|
1713
2371
|
const parsedOutput = {
|
|
1714
2372
|
...output,
|
|
1715
2373
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1740,23 +2398,22 @@ const de_GetLensReviewCommandError = async (output, context) => {
|
|
|
1740
2398
|
});
|
|
1741
2399
|
}
|
|
1742
2400
|
};
|
|
1743
|
-
export const
|
|
2401
|
+
export const de_GetMilestoneCommand = async (output, context) => {
|
|
1744
2402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1745
|
-
return
|
|
2403
|
+
return de_GetMilestoneCommandError(output, context);
|
|
1746
2404
|
}
|
|
1747
2405
|
const contents = map({
|
|
1748
2406
|
$metadata: deserializeMetadata(output),
|
|
1749
2407
|
});
|
|
1750
2408
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1751
2409
|
const doc = take(data, {
|
|
1752
|
-
|
|
1753
|
-
MilestoneNumber: __expectInt32,
|
|
2410
|
+
Milestone: (_) => de_Milestone(_, context),
|
|
1754
2411
|
WorkloadId: __expectString,
|
|
1755
2412
|
});
|
|
1756
2413
|
Object.assign(contents, doc);
|
|
1757
2414
|
return contents;
|
|
1758
2415
|
};
|
|
1759
|
-
const
|
|
2416
|
+
const de_GetMilestoneCommandError = async (output, context) => {
|
|
1760
2417
|
const parsedOutput = {
|
|
1761
2418
|
...output,
|
|
1762
2419
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1787,26 +2444,21 @@ const de_GetLensReviewReportCommandError = async (output, context) => {
|
|
|
1787
2444
|
});
|
|
1788
2445
|
}
|
|
1789
2446
|
};
|
|
1790
|
-
export const
|
|
2447
|
+
export const de_GetProfileCommand = async (output, context) => {
|
|
1791
2448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1792
|
-
return
|
|
2449
|
+
return de_GetProfileCommandError(output, context);
|
|
1793
2450
|
}
|
|
1794
2451
|
const contents = map({
|
|
1795
2452
|
$metadata: deserializeMetadata(output),
|
|
1796
2453
|
});
|
|
1797
2454
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1798
2455
|
const doc = take(data, {
|
|
1799
|
-
|
|
1800
|
-
LatestLensVersion: __expectString,
|
|
1801
|
-
LensAlias: __expectString,
|
|
1802
|
-
LensArn: __expectString,
|
|
1803
|
-
TargetLensVersion: __expectString,
|
|
1804
|
-
VersionDifferences: _json,
|
|
2456
|
+
Profile: (_) => de_Profile(_, context),
|
|
1805
2457
|
});
|
|
1806
2458
|
Object.assign(contents, doc);
|
|
1807
2459
|
return contents;
|
|
1808
2460
|
};
|
|
1809
|
-
const
|
|
2461
|
+
const de_GetProfileCommandError = async (output, context) => {
|
|
1810
2462
|
const parsedOutput = {
|
|
1811
2463
|
...output,
|
|
1812
2464
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1837,22 +2489,21 @@ const de_GetLensVersionDifferenceCommandError = async (output, context) => {
|
|
|
1837
2489
|
});
|
|
1838
2490
|
}
|
|
1839
2491
|
};
|
|
1840
|
-
export const
|
|
2492
|
+
export const de_GetProfileTemplateCommand = async (output, context) => {
|
|
1841
2493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1842
|
-
return
|
|
2494
|
+
return de_GetProfileTemplateCommandError(output, context);
|
|
1843
2495
|
}
|
|
1844
2496
|
const contents = map({
|
|
1845
2497
|
$metadata: deserializeMetadata(output),
|
|
1846
2498
|
});
|
|
1847
2499
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1848
2500
|
const doc = take(data, {
|
|
1849
|
-
|
|
1850
|
-
WorkloadId: __expectString,
|
|
2501
|
+
ProfileTemplate: (_) => de_ProfileTemplate(_, context),
|
|
1851
2502
|
});
|
|
1852
2503
|
Object.assign(contents, doc);
|
|
1853
2504
|
return contents;
|
|
1854
2505
|
};
|
|
1855
|
-
const
|
|
2506
|
+
const de_GetProfileTemplateCommandError = async (output, context) => {
|
|
1856
2507
|
const parsedOutput = {
|
|
1857
2508
|
...output,
|
|
1858
2509
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2399,6 +3050,138 @@ const de_ListNotificationsCommandError = async (output, context) => {
|
|
|
2399
3050
|
});
|
|
2400
3051
|
}
|
|
2401
3052
|
};
|
|
3053
|
+
export const de_ListProfileNotificationsCommand = async (output, context) => {
|
|
3054
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3055
|
+
return de_ListProfileNotificationsCommandError(output, context);
|
|
3056
|
+
}
|
|
3057
|
+
const contents = map({
|
|
3058
|
+
$metadata: deserializeMetadata(output),
|
|
3059
|
+
});
|
|
3060
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3061
|
+
const doc = take(data, {
|
|
3062
|
+
NextToken: __expectString,
|
|
3063
|
+
NotificationSummaries: _json,
|
|
3064
|
+
});
|
|
3065
|
+
Object.assign(contents, doc);
|
|
3066
|
+
return contents;
|
|
3067
|
+
};
|
|
3068
|
+
const de_ListProfileNotificationsCommandError = async (output, context) => {
|
|
3069
|
+
const parsedOutput = {
|
|
3070
|
+
...output,
|
|
3071
|
+
body: await parseErrorBody(output.body, context),
|
|
3072
|
+
};
|
|
3073
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3074
|
+
switch (errorCode) {
|
|
3075
|
+
case "AccessDeniedException":
|
|
3076
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3077
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3078
|
+
case "InternalServerException":
|
|
3079
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3080
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3081
|
+
case "ThrottlingException":
|
|
3082
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3083
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3084
|
+
case "ValidationException":
|
|
3085
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3086
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3087
|
+
default:
|
|
3088
|
+
const parsedBody = parsedOutput.body;
|
|
3089
|
+
return throwDefaultError({
|
|
3090
|
+
output,
|
|
3091
|
+
parsedBody,
|
|
3092
|
+
errorCode,
|
|
3093
|
+
});
|
|
3094
|
+
}
|
|
3095
|
+
};
|
|
3096
|
+
export const de_ListProfilesCommand = async (output, context) => {
|
|
3097
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3098
|
+
return de_ListProfilesCommandError(output, context);
|
|
3099
|
+
}
|
|
3100
|
+
const contents = map({
|
|
3101
|
+
$metadata: deserializeMetadata(output),
|
|
3102
|
+
});
|
|
3103
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3104
|
+
const doc = take(data, {
|
|
3105
|
+
NextToken: __expectString,
|
|
3106
|
+
ProfileSummaries: (_) => de_ProfileSummaries(_, context),
|
|
3107
|
+
});
|
|
3108
|
+
Object.assign(contents, doc);
|
|
3109
|
+
return contents;
|
|
3110
|
+
};
|
|
3111
|
+
const de_ListProfilesCommandError = async (output, context) => {
|
|
3112
|
+
const parsedOutput = {
|
|
3113
|
+
...output,
|
|
3114
|
+
body: await parseErrorBody(output.body, context),
|
|
3115
|
+
};
|
|
3116
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3117
|
+
switch (errorCode) {
|
|
3118
|
+
case "AccessDeniedException":
|
|
3119
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3120
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3121
|
+
case "InternalServerException":
|
|
3122
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3123
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3124
|
+
case "ThrottlingException":
|
|
3125
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3126
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3127
|
+
case "ValidationException":
|
|
3128
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3129
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3130
|
+
default:
|
|
3131
|
+
const parsedBody = parsedOutput.body;
|
|
3132
|
+
return throwDefaultError({
|
|
3133
|
+
output,
|
|
3134
|
+
parsedBody,
|
|
3135
|
+
errorCode,
|
|
3136
|
+
});
|
|
3137
|
+
}
|
|
3138
|
+
};
|
|
3139
|
+
export const de_ListProfileSharesCommand = async (output, context) => {
|
|
3140
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3141
|
+
return de_ListProfileSharesCommandError(output, context);
|
|
3142
|
+
}
|
|
3143
|
+
const contents = map({
|
|
3144
|
+
$metadata: deserializeMetadata(output),
|
|
3145
|
+
});
|
|
3146
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3147
|
+
const doc = take(data, {
|
|
3148
|
+
NextToken: __expectString,
|
|
3149
|
+
ProfileShareSummaries: _json,
|
|
3150
|
+
});
|
|
3151
|
+
Object.assign(contents, doc);
|
|
3152
|
+
return contents;
|
|
3153
|
+
};
|
|
3154
|
+
const de_ListProfileSharesCommandError = async (output, context) => {
|
|
3155
|
+
const parsedOutput = {
|
|
3156
|
+
...output,
|
|
3157
|
+
body: await parseErrorBody(output.body, context),
|
|
3158
|
+
};
|
|
3159
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3160
|
+
switch (errorCode) {
|
|
3161
|
+
case "AccessDeniedException":
|
|
3162
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3163
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3164
|
+
case "InternalServerException":
|
|
3165
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3166
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3167
|
+
case "ResourceNotFoundException":
|
|
3168
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3169
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3170
|
+
case "ThrottlingException":
|
|
3171
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3172
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3173
|
+
case "ValidationException":
|
|
3174
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3175
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3176
|
+
default:
|
|
3177
|
+
const parsedBody = parsedOutput.body;
|
|
3178
|
+
return throwDefaultError({
|
|
3179
|
+
output,
|
|
3180
|
+
parsedBody,
|
|
3181
|
+
errorCode,
|
|
3182
|
+
});
|
|
3183
|
+
}
|
|
3184
|
+
};
|
|
2402
3185
|
export const de_ListShareInvitationsCommand = async (output, context) => {
|
|
2403
3186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2404
3187
|
return de_ListShareInvitationsCommandError(output, context);
|
|
@@ -2773,6 +3556,54 @@ const de_UpdateLensReviewCommandError = async (output, context) => {
|
|
|
2773
3556
|
});
|
|
2774
3557
|
}
|
|
2775
3558
|
};
|
|
3559
|
+
export const de_UpdateProfileCommand = async (output, context) => {
|
|
3560
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3561
|
+
return de_UpdateProfileCommandError(output, context);
|
|
3562
|
+
}
|
|
3563
|
+
const contents = map({
|
|
3564
|
+
$metadata: deserializeMetadata(output),
|
|
3565
|
+
});
|
|
3566
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3567
|
+
const doc = take(data, {
|
|
3568
|
+
Profile: (_) => de_Profile(_, context),
|
|
3569
|
+
});
|
|
3570
|
+
Object.assign(contents, doc);
|
|
3571
|
+
return contents;
|
|
3572
|
+
};
|
|
3573
|
+
const de_UpdateProfileCommandError = async (output, context) => {
|
|
3574
|
+
const parsedOutput = {
|
|
3575
|
+
...output,
|
|
3576
|
+
body: await parseErrorBody(output.body, context),
|
|
3577
|
+
};
|
|
3578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3579
|
+
switch (errorCode) {
|
|
3580
|
+
case "AccessDeniedException":
|
|
3581
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3582
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3583
|
+
case "ConflictException":
|
|
3584
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
3585
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3586
|
+
case "InternalServerException":
|
|
3587
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3588
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3589
|
+
case "ResourceNotFoundException":
|
|
3590
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3591
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3592
|
+
case "ThrottlingException":
|
|
3593
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3594
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3595
|
+
case "ValidationException":
|
|
3596
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3597
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3598
|
+
default:
|
|
3599
|
+
const parsedBody = parsedOutput.body;
|
|
3600
|
+
return throwDefaultError({
|
|
3601
|
+
output,
|
|
3602
|
+
parsedBody,
|
|
3603
|
+
errorCode,
|
|
3604
|
+
});
|
|
3605
|
+
}
|
|
3606
|
+
};
|
|
2776
3607
|
export const de_UpdateShareInvitationCommand = async (output, context) => {
|
|
2777
3608
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2778
3609
|
return de_UpdateShareInvitationCommandError(output, context);
|
|
@@ -2962,6 +3793,50 @@ const de_UpgradeLensReviewCommandError = async (output, context) => {
|
|
|
2962
3793
|
});
|
|
2963
3794
|
}
|
|
2964
3795
|
};
|
|
3796
|
+
export const de_UpgradeProfileVersionCommand = async (output, context) => {
|
|
3797
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3798
|
+
return de_UpgradeProfileVersionCommandError(output, context);
|
|
3799
|
+
}
|
|
3800
|
+
const contents = map({
|
|
3801
|
+
$metadata: deserializeMetadata(output),
|
|
3802
|
+
});
|
|
3803
|
+
await collectBody(output.body, context);
|
|
3804
|
+
return contents;
|
|
3805
|
+
};
|
|
3806
|
+
const de_UpgradeProfileVersionCommandError = async (output, context) => {
|
|
3807
|
+
const parsedOutput = {
|
|
3808
|
+
...output,
|
|
3809
|
+
body: await parseErrorBody(output.body, context),
|
|
3810
|
+
};
|
|
3811
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3812
|
+
switch (errorCode) {
|
|
3813
|
+
case "AccessDeniedException":
|
|
3814
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3815
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3816
|
+
case "ConflictException":
|
|
3817
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
3818
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3819
|
+
case "InternalServerException":
|
|
3820
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3821
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3822
|
+
case "ResourceNotFoundException":
|
|
3823
|
+
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3824
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3825
|
+
case "ThrottlingException":
|
|
3826
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3827
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3828
|
+
case "ValidationException":
|
|
3829
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3830
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3831
|
+
default:
|
|
3832
|
+
const parsedBody = parsedOutput.body;
|
|
3833
|
+
return throwDefaultError({
|
|
3834
|
+
output,
|
|
3835
|
+
parsedBody,
|
|
3836
|
+
errorCode,
|
|
3837
|
+
});
|
|
3838
|
+
}
|
|
3839
|
+
};
|
|
2965
3840
|
const throwDefaultError = withBaseException(__BaseException);
|
|
2966
3841
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2967
3842
|
const contents = map({});
|
|
@@ -3144,6 +4019,8 @@ const de_LensReview = (output, context) => {
|
|
|
3144
4019
|
NextToken: __expectString,
|
|
3145
4020
|
Notes: __expectString,
|
|
3146
4021
|
PillarReviewSummaries: _json,
|
|
4022
|
+
PrioritizedRiskCounts: _json,
|
|
4023
|
+
Profiles: _json,
|
|
3147
4024
|
RiskCounts: _json,
|
|
3148
4025
|
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3149
4026
|
});
|
|
@@ -3163,6 +4040,8 @@ const de_LensReviewSummary = (output, context) => {
|
|
|
3163
4040
|
LensName: __expectString,
|
|
3164
4041
|
LensStatus: __expectString,
|
|
3165
4042
|
LensVersion: __expectString,
|
|
4043
|
+
PrioritizedRiskCounts: _json,
|
|
4044
|
+
Profiles: _json,
|
|
3166
4045
|
RiskCounts: _json,
|
|
3167
4046
|
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3168
4047
|
});
|
|
@@ -3213,6 +4092,47 @@ const de_MilestoneSummary = (output, context) => {
|
|
|
3213
4092
|
WorkloadSummary: (_) => de_WorkloadSummary(_, context),
|
|
3214
4093
|
});
|
|
3215
4094
|
};
|
|
4095
|
+
const de_Profile = (output, context) => {
|
|
4096
|
+
return take(output, {
|
|
4097
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4098
|
+
Owner: __expectString,
|
|
4099
|
+
ProfileArn: __expectString,
|
|
4100
|
+
ProfileDescription: __expectString,
|
|
4101
|
+
ProfileName: __expectString,
|
|
4102
|
+
ProfileQuestions: _json,
|
|
4103
|
+
ProfileVersion: __expectString,
|
|
4104
|
+
ShareInvitationId: __expectString,
|
|
4105
|
+
Tags: _json,
|
|
4106
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4107
|
+
});
|
|
4108
|
+
};
|
|
4109
|
+
const de_ProfileSummaries = (output, context) => {
|
|
4110
|
+
const retVal = (output || [])
|
|
4111
|
+
.filter((e) => e != null)
|
|
4112
|
+
.map((entry) => {
|
|
4113
|
+
return de_ProfileSummary(entry, context);
|
|
4114
|
+
});
|
|
4115
|
+
return retVal;
|
|
4116
|
+
};
|
|
4117
|
+
const de_ProfileSummary = (output, context) => {
|
|
4118
|
+
return take(output, {
|
|
4119
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4120
|
+
Owner: __expectString,
|
|
4121
|
+
ProfileArn: __expectString,
|
|
4122
|
+
ProfileDescription: __expectString,
|
|
4123
|
+
ProfileName: __expectString,
|
|
4124
|
+
ProfileVersion: __expectString,
|
|
4125
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4126
|
+
});
|
|
4127
|
+
};
|
|
4128
|
+
const de_ProfileTemplate = (output, context) => {
|
|
4129
|
+
return take(output, {
|
|
4130
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4131
|
+
TemplateName: __expectString,
|
|
4132
|
+
TemplateQuestions: _json,
|
|
4133
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4134
|
+
});
|
|
4135
|
+
};
|
|
3216
4136
|
const de_Workload = (output, context) => {
|
|
3217
4137
|
return take(output, {
|
|
3218
4138
|
AccountIds: _json,
|
|
@@ -3231,6 +4151,8 @@ const de_Workload = (output, context) => {
|
|
|
3231
4151
|
Notes: __expectString,
|
|
3232
4152
|
Owner: __expectString,
|
|
3233
4153
|
PillarPriorities: _json,
|
|
4154
|
+
PrioritizedRiskCounts: _json,
|
|
4155
|
+
Profiles: _json,
|
|
3234
4156
|
ReviewOwner: __expectString,
|
|
3235
4157
|
ReviewRestrictionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3236
4158
|
RiskCounts: _json,
|
|
@@ -3255,6 +4177,8 @@ const de_WorkloadSummary = (output, context) => {
|
|
|
3255
4177
|
ImprovementStatus: __expectString,
|
|
3256
4178
|
Lenses: _json,
|
|
3257
4179
|
Owner: __expectString,
|
|
4180
|
+
PrioritizedRiskCounts: _json,
|
|
4181
|
+
Profiles: _json,
|
|
3258
4182
|
RiskCounts: _json,
|
|
3259
4183
|
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3260
4184
|
WorkloadArn: __expectString,
|