Skip to content

Commit ebcf028

Browse files
committed
chore: yarn generate-clients
1 parent b73157b commit ebcf028

File tree

238 files changed

+8615
-25834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+8615
-25834
lines changed

clients/client-accessanalyzer/protocols/Aws_restJson1.ts

Lines changed: 17 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,12 @@ export const serializeAws_restJson1CreateAnalyzerCommand = async (
7070
let resolvedPath = "/analyzer";
7171
let body: any;
7272
body = JSON.stringify({
73-
...(input.analyzerName !== undefined && {
74-
analyzerName: input.analyzerName,
75-
}),
73+
...(input.analyzerName !== undefined && { analyzerName: input.analyzerName }),
7674
...(input.archiveRules !== undefined && {
7775
archiveRules: serializeAws_restJson1InlineArchiveRulesList(input.archiveRules, context),
7876
}),
7977
clientToken: input.clientToken ?? generateIdempotencyToken(),
80-
...(input.tags !== undefined && {
81-
tags: serializeAws_restJson1TagsMap(input.tags, context),
82-
}),
78+
...(input.tags !== undefined && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
8379
...(input.type !== undefined && { type: input.type }),
8480
});
8581
const { hostname, protocol = "https", port } = await context.endpoint();
@@ -114,9 +110,7 @@ export const serializeAws_restJson1CreateArchiveRuleCommand = async (
114110
let body: any;
115111
body = JSON.stringify({
116112
clientToken: input.clientToken ?? generateIdempotencyToken(),
117-
...(input.filter !== undefined && {
118-
filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context),
119-
}),
113+
...(input.filter !== undefined && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
120114
...(input.ruleName !== undefined && { ruleName: input.ruleName }),
121115
});
122116
const { hostname, protocol = "https", port } = await context.endpoint();
@@ -350,9 +344,7 @@ export const serializeAws_restJson1ListAnalyzedResourcesCommand = async (
350344
...(input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }),
351345
...(input.maxResults !== undefined && { maxResults: input.maxResults }),
352346
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
353-
...(input.resourceType !== undefined && {
354-
resourceType: input.resourceType,
355-
}),
347+
...(input.resourceType !== undefined && { resourceType: input.resourceType }),
356348
});
357349
const { hostname, protocol = "https", port } = await context.endpoint();
358350
return new __HttpRequest({
@@ -375,9 +367,7 @@ export const serializeAws_restJson1ListAnalyzersCommand = async (
375367
};
376368
let resolvedPath = "/analyzer";
377369
const query: any = {
378-
...(input.maxResults !== undefined && {
379-
maxResults: input.maxResults.toString(),
380-
}),
370+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
381371
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
382372
...(input.type !== undefined && { type: input.type }),
383373
};
@@ -413,9 +403,7 @@ export const serializeAws_restJson1ListArchiveRulesCommand = async (
413403
throw new Error("No value provided for input HTTP label: analyzerName.");
414404
}
415405
const query: any = {
416-
...(input.maxResults !== undefined && {
417-
maxResults: input.maxResults.toString(),
418-
}),
406+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
419407
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
420408
};
421409
let body: any;
@@ -443,14 +431,10 @@ export const serializeAws_restJson1ListFindingsCommand = async (
443431
let body: any;
444432
body = JSON.stringify({
445433
...(input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }),
446-
...(input.filter !== undefined && {
447-
filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context),
448-
}),
434+
...(input.filter !== undefined && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
449435
...(input.maxResults !== undefined && { maxResults: input.maxResults }),
450436
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
451-
...(input.sort !== undefined && {
452-
sort: serializeAws_restJson1SortCriteria(input.sort, context),
453-
}),
437+
...(input.sort !== undefined && { sort: serializeAws_restJson1SortCriteria(input.sort, context) }),
454438
});
455439
const { hostname, protocol = "https", port } = await context.endpoint();
456440
return new __HttpRequest({
@@ -538,9 +522,7 @@ export const serializeAws_restJson1TagResourceCommand = async (
538522
}
539523
let body: any;
540524
body = JSON.stringify({
541-
...(input.tags !== undefined && {
542-
tags: serializeAws_restJson1TagsMap(input.tags, context),
543-
}),
525+
...(input.tags !== undefined && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
544526
});
545527
const { hostname, protocol = "https", port } = await context.endpoint();
546528
return new __HttpRequest({
@@ -572,9 +554,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (
572554
throw new Error("No value provided for input HTTP label: resourceArn.");
573555
}
574556
const query: any = {
575-
...(input.tagKeys !== undefined && {
576-
tagKeys: (input.tagKeys || []).map((_entry) => _entry),
577-
}),
557+
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
578558
};
579559
let body: any;
580560
const { hostname, protocol = "https", port } = await context.endpoint();
@@ -619,9 +599,7 @@ export const serializeAws_restJson1UpdateArchiveRuleCommand = async (
619599
let body: any;
620600
body = JSON.stringify({
621601
clientToken: input.clientToken ?? generateIdempotencyToken(),
622-
...(input.filter !== undefined && {
623-
filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context),
624-
}),
602+
...(input.filter !== undefined && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
625603
});
626604
const { hostname, protocol = "https", port } = await context.endpoint();
627605
return new __HttpRequest({
@@ -647,9 +625,7 @@ export const serializeAws_restJson1UpdateFindingsCommand = async (
647625
body = JSON.stringify({
648626
...(input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }),
649627
clientToken: input.clientToken ?? generateIdempotencyToken(),
650-
...(input.ids !== undefined && {
651-
ids: serializeAws_restJson1FindingIdList(input.ids, context),
652-
}),
628+
...(input.ids !== undefined && { ids: serializeAws_restJson1FindingIdList(input.ids, context) }),
653629
...(input.resourceArn !== undefined && { resourceArn: input.resourceArn }),
654630
...(input.status !== undefined && { status: input.status }),
655631
});
@@ -2398,16 +2374,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (
23982374

23992375
const serializeAws_restJson1Criterion = (input: Criterion, context: __SerdeContext): any => {
24002376
return {
2401-
...(input.contains !== undefined && {
2402-
contains: serializeAws_restJson1ValueList(input.contains, context),
2403-
}),
2404-
...(input.eq !== undefined && {
2405-
eq: serializeAws_restJson1ValueList(input.eq, context),
2406-
}),
2377+
...(input.contains !== undefined && { contains: serializeAws_restJson1ValueList(input.contains, context) }),
2378+
...(input.eq !== undefined && { eq: serializeAws_restJson1ValueList(input.eq, context) }),
24072379
...(input.exists !== undefined && { exists: input.exists }),
2408-
...(input.neq !== undefined && {
2409-
neq: serializeAws_restJson1ValueList(input.neq, context),
2410-
}),
2380+
...(input.neq !== undefined && { neq: serializeAws_restJson1ValueList(input.neq, context) }),
24112381
};
24122382
};
24132383

@@ -2427,9 +2397,7 @@ const serializeAws_restJson1FindingIdList = (input: string[], context: __SerdeCo
24272397

24282398
const serializeAws_restJson1InlineArchiveRule = (input: InlineArchiveRule, context: __SerdeContext): any => {
24292399
return {
2430-
...(input.filter !== undefined && {
2431-
filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context),
2432-
}),
2400+
...(input.filter !== undefined && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
24332401
...(input.ruleName !== undefined && { ruleName: input.ruleName }),
24342402
};
24352403
};
@@ -2440,9 +2408,7 @@ const serializeAws_restJson1InlineArchiveRulesList = (input: InlineArchiveRule[]
24402408

24412409
const serializeAws_restJson1SortCriteria = (input: SortCriteria, context: __SerdeContext): any => {
24422410
return {
2443-
...(input.attributeName !== undefined && {
2444-
attributeName: input.attributeName,
2445-
}),
2411+
...(input.attributeName !== undefined && { attributeName: input.attributeName }),
24462412
...(input.orderBy !== undefined && { orderBy: input.orderBy }),
24472413
};
24482414
};

0 commit comments

Comments
 (0)