Skip to content

Commit 5c8165d

Browse files
authored
chore: remove __type and isa from shapes (#1502)
1 parent 0b2ad5d commit 5c8165d

File tree

469 files changed

+2341
-74644
lines changed

Some content is hidden

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

469 files changed

+2341
-74644
lines changed

clients/client-accessanalyzer/models/index.ts

Lines changed: 3 additions & 98 deletions
Large diffs are not rendered by default.

clients/client-accessanalyzer/protocols/Aws_restJson1.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,6 @@ export const deserializeAws_restJson1CreateAnalyzerCommand = async (
650650
}
651651
const contents: CreateAnalyzerCommandOutput = {
652652
$metadata: deserializeMetadata(output),
653-
__type: "CreateAnalyzerResponse",
654653
arn: undefined,
655654
};
656655
const data: any = await parseBody(output.body, context);
@@ -1011,7 +1010,6 @@ export const deserializeAws_restJson1GetAnalyzedResourceCommand = async (
10111010
}
10121011
const contents: GetAnalyzedResourceCommandOutput = {
10131012
$metadata: deserializeMetadata(output),
1014-
__type: "GetAnalyzedResourceResponse",
10151013
resource: undefined,
10161014
};
10171015
const data: any = await parseBody(output.body, context);
@@ -1099,7 +1097,6 @@ export const deserializeAws_restJson1GetAnalyzerCommand = async (
10991097
}
11001098
const contents: GetAnalyzerCommandOutput = {
11011099
$metadata: deserializeMetadata(output),
1102-
__type: "GetAnalyzerResponse",
11031100
analyzer: undefined,
11041101
};
11051102
const data: any = await parseBody(output.body, context);
@@ -1187,7 +1184,6 @@ export const deserializeAws_restJson1GetArchiveRuleCommand = async (
11871184
}
11881185
const contents: GetArchiveRuleCommandOutput = {
11891186
$metadata: deserializeMetadata(output),
1190-
__type: "GetArchiveRuleResponse",
11911187
archiveRule: undefined,
11921188
};
11931189
const data: any = await parseBody(output.body, context);
@@ -1275,7 +1271,6 @@ export const deserializeAws_restJson1GetFindingCommand = async (
12751271
}
12761272
const contents: GetFindingCommandOutput = {
12771273
$metadata: deserializeMetadata(output),
1278-
__type: "GetFindingResponse",
12791274
finding: undefined,
12801275
};
12811276
const data: any = await parseBody(output.body, context);
@@ -1363,7 +1358,6 @@ export const deserializeAws_restJson1ListAnalyzedResourcesCommand = async (
13631358
}
13641359
const contents: ListAnalyzedResourcesCommandOutput = {
13651360
$metadata: deserializeMetadata(output),
1366-
__type: "ListAnalyzedResourcesResponse",
13671361
analyzedResources: undefined,
13681362
nextToken: undefined,
13691363
};
@@ -1455,7 +1449,6 @@ export const deserializeAws_restJson1ListAnalyzersCommand = async (
14551449
}
14561450
const contents: ListAnalyzersCommandOutput = {
14571451
$metadata: deserializeMetadata(output),
1458-
__type: "ListAnalyzersResponse",
14591452
analyzers: undefined,
14601453
nextToken: undefined,
14611454
};
@@ -1539,7 +1532,6 @@ export const deserializeAws_restJson1ListArchiveRulesCommand = async (
15391532
}
15401533
const contents: ListArchiveRulesCommandOutput = {
15411534
$metadata: deserializeMetadata(output),
1542-
__type: "ListArchiveRulesResponse",
15431535
archiveRules: undefined,
15441536
nextToken: undefined,
15451537
};
@@ -1623,7 +1615,6 @@ export const deserializeAws_restJson1ListFindingsCommand = async (
16231615
}
16241616
const contents: ListFindingsCommandOutput = {
16251617
$metadata: deserializeMetadata(output),
1626-
__type: "ListFindingsResponse",
16271618
findings: undefined,
16281619
nextToken: undefined,
16291620
};
@@ -1715,7 +1706,6 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
17151706
}
17161707
const contents: ListTagsForResourceCommandOutput = {
17171708
$metadata: deserializeMetadata(output),
1718-
__type: "ListTagsForResourceResponse",
17191709
tags: undefined,
17201710
};
17211711
const data: any = await parseBody(output.body, context);
@@ -1886,7 +1876,6 @@ export const deserializeAws_restJson1TagResourceCommand = async (
18861876
}
18871877
const contents: TagResourceCommandOutput = {
18881878
$metadata: deserializeMetadata(output),
1889-
__type: "TagResourceResponse",
18901879
};
18911880
await collectBody(output.body, context);
18921881
return Promise.resolve(contents);
@@ -1970,7 +1959,6 @@ export const deserializeAws_restJson1UntagResourceCommand = async (
19701959
}
19711960
const contents: UntagResourceCommandOutput = {
19721961
$metadata: deserializeMetadata(output),
1973-
__type: "UntagResourceResponse",
19741962
};
19751963
await collectBody(output.body, context);
19761964
return Promise.resolve(contents);
@@ -2433,7 +2421,6 @@ const deserializeAws_restJson1ActionList = (output: any, context: __SerdeContext
24332421

24342422
const deserializeAws_restJson1AnalyzedResource = (output: any, context: __SerdeContext): AnalyzedResource => {
24352423
return {
2436-
__type: "AnalyzedResource",
24372424
actions:
24382425
output.actions !== undefined && output.actions !== null
24392426
? deserializeAws_restJson1ActionList(output.actions, context)
@@ -2469,7 +2456,6 @@ const deserializeAws_restJson1AnalyzedResourceSummary = (
24692456
context: __SerdeContext
24702457
): AnalyzedResourceSummary => {
24712458
return {
2472-
__type: "AnalyzedResourceSummary",
24732459
resourceArn: output.resourceArn !== undefined && output.resourceArn !== null ? output.resourceArn : undefined,
24742460
resourceOwnerAccount:
24752461
output.resourceOwnerAccount !== undefined && output.resourceOwnerAccount !== null
@@ -2485,7 +2471,6 @@ const deserializeAws_restJson1AnalyzersList = (output: any, context: __SerdeCont
24852471

24862472
const deserializeAws_restJson1AnalyzerSummary = (output: any, context: __SerdeContext): AnalyzerSummary => {
24872473
return {
2488-
__type: "AnalyzerSummary",
24892474
arn: output.arn !== undefined && output.arn !== null ? output.arn : undefined,
24902475
createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
24912476
lastResourceAnalyzed:
@@ -2516,7 +2501,6 @@ const deserializeAws_restJson1ArchiveRulesList = (output: any, context: __SerdeC
25162501

25172502
const deserializeAws_restJson1ArchiveRuleSummary = (output: any, context: __SerdeContext): ArchiveRuleSummary => {
25182503
return {
2519-
__type: "ArchiveRuleSummary",
25202504
createdAt: output.createdAt !== undefined && output.createdAt !== null ? new Date(output.createdAt) : undefined,
25212505
filter:
25222506
output.filter !== undefined && output.filter !== null
@@ -2539,7 +2523,6 @@ const deserializeAws_restJson1ConditionKeyMap = (output: any, context: __SerdeCo
25392523

25402524
const deserializeAws_restJson1Criterion = (output: any, context: __SerdeContext): Criterion => {
25412525
return {
2542-
__type: "Criterion",
25432526
contains:
25442527
output.contains !== undefined && output.contains !== null
25452528
? deserializeAws_restJson1ValueList(output.contains, context)
@@ -2569,7 +2552,6 @@ const deserializeAws_restJson1FilterCriteriaMap = (
25692552

25702553
const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext): Finding => {
25712554
return {
2572-
__type: "Finding",
25732555
action:
25742556
output.action !== undefined && output.action !== null
25752557
? deserializeAws_restJson1ActionList(output.action, context)
@@ -2608,7 +2590,6 @@ const deserializeAws_restJson1FindingsList = (output: any, context: __SerdeConte
26082590

26092591
const deserializeAws_restJson1FindingSource = (output: any, context: __SerdeContext): FindingSource => {
26102592
return {
2611-
__type: "FindingSource",
26122593
detail:
26132594
output.detail !== undefined && output.detail !== null
26142595
? deserializeAws_restJson1FindingSourceDetail(output.detail, context)
@@ -2619,7 +2600,6 @@ const deserializeAws_restJson1FindingSource = (output: any, context: __SerdeCont
26192600

26202601
const deserializeAws_restJson1FindingSourceDetail = (output: any, context: __SerdeContext): FindingSourceDetail => {
26212602
return {
2622-
__type: "FindingSourceDetail",
26232603
accessPointArn:
26242604
output.accessPointArn !== undefined && output.accessPointArn !== null ? output.accessPointArn : undefined,
26252605
} as any;
@@ -2631,7 +2611,6 @@ const deserializeAws_restJson1FindingSourceList = (output: any, context: __Serde
26312611

26322612
const deserializeAws_restJson1FindingSummary = (output: any, context: __SerdeContext): FindingSummary => {
26332613
return {
2634-
__type: "FindingSummary",
26352614
action:
26362615
output.action !== undefined && output.action !== null
26372616
? deserializeAws_restJson1ActionList(output.action, context)
@@ -2680,7 +2659,6 @@ const deserializeAws_restJson1SharedViaList = (output: any, context: __SerdeCont
26802659

26812660
const deserializeAws_restJson1StatusReason = (output: any, context: __SerdeContext): StatusReason => {
26822661
return {
2683-
__type: "StatusReason",
26842662
code: output.code !== undefined && output.code !== null ? output.code : undefined,
26852663
} as any;
26862664
};
@@ -2700,7 +2678,6 @@ const deserializeAws_restJson1ValidationExceptionField = (
27002678
context: __SerdeContext
27012679
): ValidationExceptionField => {
27022680
return {
2703-
__type: "ValidationExceptionField",
27042681
message: output.message !== undefined && output.message !== null ? output.message : undefined,
27052682
name: output.name !== undefined && output.name !== null ? output.name : undefined,
27062683
} as any;

0 commit comments

Comments
 (0)