Skip to content

Commit a663ebb

Browse files
committed
chore: yarn generate-clients
1 parent 9fea2cb commit a663ebb

File tree

203 files changed

+8308
-24924
lines changed

Some content is hidden

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

203 files changed

+8308
-24924
lines changed

clients/client-accessanalyzer/protocols/Aws_restJson1_1.ts

Lines changed: 17 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,12 @@ export const serializeAws_restJson1_1CreateAnalyzerCommand = async (
6767
let resolvedPath = "/analyzer";
6868
let body: any;
6969
body = JSON.stringify({
70-
...(input.analyzerName !== undefined && {
71-
analyzerName: input.analyzerName,
72-
}),
70+
...(input.analyzerName !== undefined && { analyzerName: input.analyzerName }),
7371
...(input.archiveRules !== undefined && {
7472
archiveRules: serializeAws_restJson1_1InlineArchiveRulesList(input.archiveRules, context),
7573
}),
7674
clientToken: input.clientToken ?? generateIdempotencyToken(),
77-
...(input.tags !== undefined && {
78-
tags: serializeAws_restJson1_1TagsMap(input.tags, context),
79-
}),
75+
...(input.tags !== undefined && { tags: serializeAws_restJson1_1TagsMap(input.tags, context) }),
8076
...(input.type !== undefined && { type: input.type }),
8177
});
8278
const { hostname, protocol = "https", port } = await context.endpoint();
@@ -111,9 +107,7 @@ export const serializeAws_restJson1_1CreateArchiveRuleCommand = async (
111107
let body: any;
112108
body = JSON.stringify({
113109
clientToken: input.clientToken ?? generateIdempotencyToken(),
114-
...(input.filter !== undefined && {
115-
filter: serializeAws_restJson1_1FilterCriteriaMap(input.filter, context),
116-
}),
110+
...(input.filter !== undefined && { filter: serializeAws_restJson1_1FilterCriteriaMap(input.filter, context) }),
117111
...(input.ruleName !== undefined && { ruleName: input.ruleName }),
118112
});
119113
const { hostname, protocol = "https", port } = await context.endpoint();
@@ -347,9 +341,7 @@ export const serializeAws_restJson1_1ListAnalyzedResourcesCommand = async (
347341
...(input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }),
348342
...(input.maxResults !== undefined && { maxResults: input.maxResults }),
349343
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
350-
...(input.resourceType !== undefined && {
351-
resourceType: input.resourceType,
352-
}),
344+
...(input.resourceType !== undefined && { resourceType: input.resourceType }),
353345
});
354346
const { hostname, protocol = "https", port } = await context.endpoint();
355347
return new __HttpRequest({
@@ -372,9 +364,7 @@ export const serializeAws_restJson1_1ListAnalyzersCommand = async (
372364
};
373365
let resolvedPath = "/analyzer";
374366
const query: any = {
375-
...(input.maxResults !== undefined && {
376-
maxResults: input.maxResults.toString(),
377-
}),
367+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
378368
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
379369
...(input.type !== undefined && { type: input.type }),
380370
};
@@ -410,9 +400,7 @@ export const serializeAws_restJson1_1ListArchiveRulesCommand = async (
410400
throw new Error("No value provided for input HTTP label: analyzerName.");
411401
}
412402
const query: any = {
413-
...(input.maxResults !== undefined && {
414-
maxResults: input.maxResults.toString(),
415-
}),
403+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
416404
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
417405
};
418406
let body: any;
@@ -440,14 +428,10 @@ export const serializeAws_restJson1_1ListFindingsCommand = async (
440428
let body: any;
441429
body = JSON.stringify({
442430
...(input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }),
443-
...(input.filter !== undefined && {
444-
filter: serializeAws_restJson1_1FilterCriteriaMap(input.filter, context),
445-
}),
431+
...(input.filter !== undefined && { filter: serializeAws_restJson1_1FilterCriteriaMap(input.filter, context) }),
446432
...(input.maxResults !== undefined && { maxResults: input.maxResults }),
447433
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
448-
...(input.sort !== undefined && {
449-
sort: serializeAws_restJson1_1SortCriteria(input.sort, context),
450-
}),
434+
...(input.sort !== undefined && { sort: serializeAws_restJson1_1SortCriteria(input.sort, context) }),
451435
});
452436
const { hostname, protocol = "https", port } = await context.endpoint();
453437
return new __HttpRequest({
@@ -535,9 +519,7 @@ export const serializeAws_restJson1_1TagResourceCommand = async (
535519
}
536520
let body: any;
537521
body = JSON.stringify({
538-
...(input.tags !== undefined && {
539-
tags: serializeAws_restJson1_1TagsMap(input.tags, context),
540-
}),
522+
...(input.tags !== undefined && { tags: serializeAws_restJson1_1TagsMap(input.tags, context) }),
541523
});
542524
const { hostname, protocol = "https", port } = await context.endpoint();
543525
return new __HttpRequest({
@@ -569,9 +551,7 @@ export const serializeAws_restJson1_1UntagResourceCommand = async (
569551
throw new Error("No value provided for input HTTP label: resourceArn.");
570552
}
571553
const query: any = {
572-
...(input.tagKeys !== undefined && {
573-
tagKeys: (input.tagKeys || []).map((_entry) => _entry),
574-
}),
554+
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
575555
};
576556
let body: any;
577557
const { hostname, protocol = "https", port } = await context.endpoint();
@@ -616,9 +596,7 @@ export const serializeAws_restJson1_1UpdateArchiveRuleCommand = async (
616596
let body: any;
617597
body = JSON.stringify({
618598
clientToken: input.clientToken ?? generateIdempotencyToken(),
619-
...(input.filter !== undefined && {
620-
filter: serializeAws_restJson1_1FilterCriteriaMap(input.filter, context),
621-
}),
599+
...(input.filter !== undefined && { filter: serializeAws_restJson1_1FilterCriteriaMap(input.filter, context) }),
622600
});
623601
const { hostname, protocol = "https", port } = await context.endpoint();
624602
return new __HttpRequest({
@@ -644,9 +622,7 @@ export const serializeAws_restJson1_1UpdateFindingsCommand = async (
644622
body = JSON.stringify({
645623
...(input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }),
646624
clientToken: input.clientToken ?? generateIdempotencyToken(),
647-
...(input.ids !== undefined && {
648-
ids: serializeAws_restJson1_1FindingIdList(input.ids, context),
649-
}),
625+
...(input.ids !== undefined && { ids: serializeAws_restJson1_1FindingIdList(input.ids, context) }),
650626
...(input.resourceArn !== undefined && { resourceArn: input.resourceArn }),
651627
...(input.status !== undefined && { status: input.status }),
652628
});
@@ -2393,16 +2369,10 @@ const deserializeAws_restJson1_1ValidationExceptionResponse = async (
23932369

23942370
const serializeAws_restJson1_1Criterion = (input: Criterion, context: __SerdeContext): any => {
23952371
return {
2396-
...(input.contains !== undefined && {
2397-
contains: serializeAws_restJson1_1ValueList(input.contains, context),
2398-
}),
2399-
...(input.eq !== undefined && {
2400-
eq: serializeAws_restJson1_1ValueList(input.eq, context),
2401-
}),
2372+
...(input.contains !== undefined && { contains: serializeAws_restJson1_1ValueList(input.contains, context) }),
2373+
...(input.eq !== undefined && { eq: serializeAws_restJson1_1ValueList(input.eq, context) }),
24022374
...(input.exists !== undefined && { exists: input.exists }),
2403-
...(input.neq !== undefined && {
2404-
neq: serializeAws_restJson1_1ValueList(input.neq, context),
2405-
}),
2375+
...(input.neq !== undefined && { neq: serializeAws_restJson1_1ValueList(input.neq, context) }),
24062376
};
24072377
};
24082378

@@ -2425,9 +2395,7 @@ const serializeAws_restJson1_1FindingIdList = (input: string[], context: __Serde
24252395

24262396
const serializeAws_restJson1_1InlineArchiveRule = (input: InlineArchiveRule, context: __SerdeContext): any => {
24272397
return {
2428-
...(input.filter !== undefined && {
2429-
filter: serializeAws_restJson1_1FilterCriteriaMap(input.filter, context),
2430-
}),
2398+
...(input.filter !== undefined && { filter: serializeAws_restJson1_1FilterCriteriaMap(input.filter, context) }),
24312399
...(input.ruleName !== undefined && { ruleName: input.ruleName }),
24322400
};
24332401
};
@@ -2438,9 +2406,7 @@ const serializeAws_restJson1_1InlineArchiveRulesList = (input: InlineArchiveRule
24382406

24392407
const serializeAws_restJson1_1SortCriteria = (input: SortCriteria, context: __SerdeContext): any => {
24402408
return {
2441-
...(input.attributeName !== undefined && {
2442-
attributeName: input.attributeName,
2443-
}),
2409+
...(input.attributeName !== undefined && { attributeName: input.attributeName }),
24442410
...(input.orderBy !== undefined && { orderBy: input.orderBy }),
24452411
};
24462412
};

0 commit comments

Comments
 (0)