Skip to content

Commit 1a87839

Browse files
authored
chore: codegen for invalid serialization of empty body (#869)
1 parent 9913924 commit 1a87839

File tree

190 files changed

+12395
-12395
lines changed

Some content is hidden

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

190 files changed

+12395
-12395
lines changed

clients/client-acm-pca/protocols/Aws_json1_1.ts

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

clients/client-acm/protocols/Aws_json1_1.ts

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,26 +1481,26 @@ const serializeAws_json1_1AddTagsToCertificateRequest = (
14811481
input: AddTagsToCertificateRequest,
14821482
context: __SerdeContext
14831483
): any => {
1484-
let bodyParams: any = {};
1484+
const bodyParams: any = {};
14851485
if (input.CertificateArn !== undefined) {
14861486
bodyParams["CertificateArn"] = input.CertificateArn;
14871487
}
14881488
if (input.Tags !== undefined) {
14891489
bodyParams["Tags"] = serializeAws_json1_1TagList(input.Tags, context);
14901490
}
1491-
return bodyParams;
1491+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
14921492
};
14931493

14941494
const serializeAws_json1_1CertificateOptions = (
14951495
input: CertificateOptions,
14961496
context: __SerdeContext
14971497
): any => {
1498-
let bodyParams: any = {};
1498+
const bodyParams: any = {};
14991499
if (input.CertificateTransparencyLoggingPreference !== undefined) {
15001500
bodyParams["CertificateTransparencyLoggingPreference"] =
15011501
input.CertificateTransparencyLoggingPreference;
15021502
}
1503-
return bodyParams;
1503+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
15041504
};
15051505

15061506
const serializeAws_json1_1CertificateStatuses = (
@@ -1514,22 +1514,22 @@ const serializeAws_json1_1DeleteCertificateRequest = (
15141514
input: DeleteCertificateRequest,
15151515
context: __SerdeContext
15161516
): any => {
1517-
let bodyParams: any = {};
1517+
const bodyParams: any = {};
15181518
if (input.CertificateArn !== undefined) {
15191519
bodyParams["CertificateArn"] = input.CertificateArn;
15201520
}
1521-
return bodyParams;
1521+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
15221522
};
15231523

15241524
const serializeAws_json1_1DescribeCertificateRequest = (
15251525
input: DescribeCertificateRequest,
15261526
context: __SerdeContext
15271527
): any => {
1528-
let bodyParams: any = {};
1528+
const bodyParams: any = {};
15291529
if (input.CertificateArn !== undefined) {
15301530
bodyParams["CertificateArn"] = input.CertificateArn;
15311531
}
1532-
return bodyParams;
1532+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
15331533
};
15341534

15351535
const serializeAws_json1_1DomainList = (
@@ -1543,14 +1543,14 @@ const serializeAws_json1_1DomainValidationOption = (
15431543
input: DomainValidationOption,
15441544
context: __SerdeContext
15451545
): any => {
1546-
let bodyParams: any = {};
1546+
const bodyParams: any = {};
15471547
if (input.DomainName !== undefined) {
15481548
bodyParams["DomainName"] = input.DomainName;
15491549
}
15501550
if (input.ValidationDomain !== undefined) {
15511551
bodyParams["ValidationDomain"] = input.ValidationDomain;
15521552
}
1553-
return bodyParams;
1553+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
15541554
};
15551555

15561556
const serializeAws_json1_1DomainValidationOptionList = (
@@ -1566,14 +1566,14 @@ const serializeAws_json1_1ExportCertificateRequest = (
15661566
input: ExportCertificateRequest,
15671567
context: __SerdeContext
15681568
): any => {
1569-
let bodyParams: any = {};
1569+
const bodyParams: any = {};
15701570
if (input.CertificateArn !== undefined) {
15711571
bodyParams["CertificateArn"] = input.CertificateArn;
15721572
}
15731573
if (input.Passphrase !== undefined) {
15741574
bodyParams["Passphrase"] = context.base64Encoder(input.Passphrase);
15751575
}
1576-
return bodyParams;
1576+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
15771577
};
15781578

15791579
const serializeAws_json1_1ExtendedKeyUsageFilterList = (
@@ -1587,7 +1587,7 @@ const serializeAws_json1_1Filters = (
15871587
input: Filters,
15881588
context: __SerdeContext
15891589
): any => {
1590-
let bodyParams: any = {};
1590+
const bodyParams: any = {};
15911591
if (input.extendedKeyUsage !== undefined) {
15921592
bodyParams[
15931593
"extendedKeyUsage"
@@ -1608,25 +1608,25 @@ const serializeAws_json1_1Filters = (
16081608
context
16091609
);
16101610
}
1611-
return bodyParams;
1611+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
16121612
};
16131613

16141614
const serializeAws_json1_1GetCertificateRequest = (
16151615
input: GetCertificateRequest,
16161616
context: __SerdeContext
16171617
): any => {
1618-
let bodyParams: any = {};
1618+
const bodyParams: any = {};
16191619
if (input.CertificateArn !== undefined) {
16201620
bodyParams["CertificateArn"] = input.CertificateArn;
16211621
}
1622-
return bodyParams;
1622+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
16231623
};
16241624

16251625
const serializeAws_json1_1ImportCertificateRequest = (
16261626
input: ImportCertificateRequest,
16271627
context: __SerdeContext
16281628
): any => {
1629-
let bodyParams: any = {};
1629+
const bodyParams: any = {};
16301630
if (input.Certificate !== undefined) {
16311631
bodyParams["Certificate"] = context.base64Encoder(input.Certificate);
16321632
}
@@ -1644,7 +1644,7 @@ const serializeAws_json1_1ImportCertificateRequest = (
16441644
if (input.Tags !== undefined) {
16451645
bodyParams["Tags"] = serializeAws_json1_1TagList(input.Tags, context);
16461646
}
1647-
return bodyParams;
1647+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
16481648
};
16491649

16501650
const serializeAws_json1_1KeyAlgorithmList = (
@@ -1665,7 +1665,7 @@ const serializeAws_json1_1ListCertificatesRequest = (
16651665
input: ListCertificatesRequest,
16661666
context: __SerdeContext
16671667
): any => {
1668-
let bodyParams: any = {};
1668+
const bodyParams: any = {};
16691669
if (input.CertificateStatuses !== undefined) {
16701670
bodyParams["CertificateStatuses"] = serializeAws_json1_1CertificateStatuses(
16711671
input.CertificateStatuses,
@@ -1684,50 +1684,50 @@ const serializeAws_json1_1ListCertificatesRequest = (
16841684
if (input.NextToken !== undefined) {
16851685
bodyParams["NextToken"] = input.NextToken;
16861686
}
1687-
return bodyParams;
1687+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
16881688
};
16891689

16901690
const serializeAws_json1_1ListTagsForCertificateRequest = (
16911691
input: ListTagsForCertificateRequest,
16921692
context: __SerdeContext
16931693
): any => {
1694-
let bodyParams: any = {};
1694+
const bodyParams: any = {};
16951695
if (input.CertificateArn !== undefined) {
16961696
bodyParams["CertificateArn"] = input.CertificateArn;
16971697
}
1698-
return bodyParams;
1698+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
16991699
};
17001700

17011701
const serializeAws_json1_1RemoveTagsFromCertificateRequest = (
17021702
input: RemoveTagsFromCertificateRequest,
17031703
context: __SerdeContext
17041704
): any => {
1705-
let bodyParams: any = {};
1705+
const bodyParams: any = {};
17061706
if (input.CertificateArn !== undefined) {
17071707
bodyParams["CertificateArn"] = input.CertificateArn;
17081708
}
17091709
if (input.Tags !== undefined) {
17101710
bodyParams["Tags"] = serializeAws_json1_1TagList(input.Tags, context);
17111711
}
1712-
return bodyParams;
1712+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
17131713
};
17141714

17151715
const serializeAws_json1_1RenewCertificateRequest = (
17161716
input: RenewCertificateRequest,
17171717
context: __SerdeContext
17181718
): any => {
1719-
let bodyParams: any = {};
1719+
const bodyParams: any = {};
17201720
if (input.CertificateArn !== undefined) {
17211721
bodyParams["CertificateArn"] = input.CertificateArn;
17221722
}
1723-
return bodyParams;
1723+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
17241724
};
17251725

17261726
const serializeAws_json1_1RequestCertificateRequest = (
17271727
input: RequestCertificateRequest,
17281728
context: __SerdeContext
17291729
): any => {
1730-
let bodyParams: any = {};
1730+
const bodyParams: any = {};
17311731
if (input.CertificateAuthorityArn !== undefined) {
17321732
bodyParams["CertificateAuthorityArn"] = input.CertificateAuthorityArn;
17331733
}
@@ -1763,14 +1763,14 @@ const serializeAws_json1_1RequestCertificateRequest = (
17631763
if (input.ValidationMethod !== undefined) {
17641764
bodyParams["ValidationMethod"] = input.ValidationMethod;
17651765
}
1766-
return bodyParams;
1766+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
17671767
};
17681768

17691769
const serializeAws_json1_1ResendValidationEmailRequest = (
17701770
input: ResendValidationEmailRequest,
17711771
context: __SerdeContext
17721772
): any => {
1773-
let bodyParams: any = {};
1773+
const bodyParams: any = {};
17741774
if (input.CertificateArn !== undefined) {
17751775
bodyParams["CertificateArn"] = input.CertificateArn;
17761776
}
@@ -1780,18 +1780,18 @@ const serializeAws_json1_1ResendValidationEmailRequest = (
17801780
if (input.ValidationDomain !== undefined) {
17811781
bodyParams["ValidationDomain"] = input.ValidationDomain;
17821782
}
1783-
return bodyParams;
1783+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
17841784
};
17851785

17861786
const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
1787-
let bodyParams: any = {};
1787+
const bodyParams: any = {};
17881788
if (input.Key !== undefined) {
17891789
bodyParams["Key"] = input.Key;
17901790
}
17911791
if (input.Value !== undefined) {
17921792
bodyParams["Value"] = input.Value;
17931793
}
1794-
return bodyParams;
1794+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
17951795
};
17961796

17971797
const serializeAws_json1_1TagList = (
@@ -1805,7 +1805,7 @@ const serializeAws_json1_1UpdateCertificateOptionsRequest = (
18051805
input: UpdateCertificateOptionsRequest,
18061806
context: __SerdeContext
18071807
): any => {
1808-
let bodyParams: any = {};
1808+
const bodyParams: any = {};
18091809
if (input.CertificateArn !== undefined) {
18101810
bodyParams["CertificateArn"] = input.CertificateArn;
18111811
}
@@ -1815,7 +1815,7 @@ const serializeAws_json1_1UpdateCertificateOptionsRequest = (
18151815
context
18161816
);
18171817
}
1818-
return bodyParams;
1818+
return Object.entries(bodyParams).length !== 0 ? bodyParams : undefined;
18191819
};
18201820

18211821
const deserializeAws_json1_1CertificateDetail = (

0 commit comments

Comments
 (0)