Skip to content

Commit 00117df

Browse files
authored
chore: codegen for incorrect expiration value (#822)
1 parent 2a39dab commit 00117df

File tree

129 files changed

+1561
-6545
lines changed

Some content is hidden

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

129 files changed

+1561
-6545
lines changed

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

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3125,41 +3125,25 @@ const deserializeAws_json1_1CertificateAuthority = (
31253125
);
31263126
}
31273127
if (output.CreatedAt !== undefined) {
3128-
contents.CreatedAt = new Date(
3129-
output.CreatedAt % 1 != 0
3130-
? Math.round(output.CreatedAt * 1000)
3131-
: output.CreatedAt
3132-
);
3128+
contents.CreatedAt = new Date(Math.round(output.CreatedAt * 1000));
31333129
}
31343130
if (output.FailureReason !== undefined) {
31353131
contents.FailureReason = output.FailureReason;
31363132
}
31373133
if (output.LastStateChangeAt !== undefined) {
31383134
contents.LastStateChangeAt = new Date(
3139-
output.LastStateChangeAt % 1 != 0
3140-
? Math.round(output.LastStateChangeAt * 1000)
3141-
: output.LastStateChangeAt
3135+
Math.round(output.LastStateChangeAt * 1000)
31423136
);
31433137
}
31443138
if (output.NotAfter !== undefined) {
3145-
contents.NotAfter = new Date(
3146-
output.NotAfter % 1 != 0
3147-
? Math.round(output.NotAfter * 1000)
3148-
: output.NotAfter
3149-
);
3139+
contents.NotAfter = new Date(Math.round(output.NotAfter * 1000));
31503140
}
31513141
if (output.NotBefore !== undefined) {
3152-
contents.NotBefore = new Date(
3153-
output.NotBefore % 1 != 0
3154-
? Math.round(output.NotBefore * 1000)
3155-
: output.NotBefore
3156-
);
3142+
contents.NotBefore = new Date(Math.round(output.NotBefore * 1000));
31573143
}
31583144
if (output.RestorableUntil !== undefined) {
31593145
contents.RestorableUntil = new Date(
3160-
output.RestorableUntil % 1 != 0
3161-
? Math.round(output.RestorableUntil * 1000)
3162-
: output.RestorableUntil
3146+
Math.round(output.RestorableUntil * 1000)
31633147
);
31643148
}
31653149
if (output.RevocationConfiguration !== undefined) {
@@ -3306,11 +3290,7 @@ const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportResponse = (
33063290
contents.AuditReportStatus = output.AuditReportStatus;
33073291
}
33083292
if (output.CreatedAt !== undefined) {
3309-
contents.CreatedAt = new Date(
3310-
output.CreatedAt % 1 != 0
3311-
? Math.round(output.CreatedAt * 1000)
3312-
: output.CreatedAt
3313-
);
3293+
contents.CreatedAt = new Date(Math.round(output.CreatedAt * 1000));
33143294
}
33153295
if (output.S3BucketName !== undefined) {
33163296
contents.S3BucketName = output.S3BucketName;
@@ -3625,11 +3605,7 @@ const deserializeAws_json1_1Permission = (
36253605
contents.CertificateAuthorityArn = output.CertificateAuthorityArn;
36263606
}
36273607
if (output.CreatedAt !== undefined) {
3628-
contents.CreatedAt = new Date(
3629-
output.CreatedAt % 1 != 0
3630-
? Math.round(output.CreatedAt * 1000)
3631-
: output.CreatedAt
3632-
);
3608+
contents.CreatedAt = new Date(Math.round(output.CreatedAt * 1000));
36333609
}
36343610
if (output.Policy !== undefined) {
36353611
contents.Policy = output.Policy;

clients/client-acm/protocols/Aws_json1_1.ts

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,11 +1934,7 @@ const deserializeAws_json1_1CertificateDetail = (
19341934
contents.CertificateAuthorityArn = output.CertificateAuthorityArn;
19351935
}
19361936
if (output.CreatedAt !== undefined) {
1937-
contents.CreatedAt = new Date(
1938-
output.CreatedAt % 1 != 0
1939-
? Math.round(output.CreatedAt * 1000)
1940-
: output.CreatedAt
1941-
);
1937+
contents.CreatedAt = new Date(Math.round(output.CreatedAt * 1000));
19421938
}
19431939
if (output.DomainName !== undefined) {
19441940
contents.DomainName = output.DomainName;
@@ -1959,21 +1955,13 @@ const deserializeAws_json1_1CertificateDetail = (
19591955
contents.FailureReason = output.FailureReason;
19601956
}
19611957
if (output.ImportedAt !== undefined) {
1962-
contents.ImportedAt = new Date(
1963-
output.ImportedAt % 1 != 0
1964-
? Math.round(output.ImportedAt * 1000)
1965-
: output.ImportedAt
1966-
);
1958+
contents.ImportedAt = new Date(Math.round(output.ImportedAt * 1000));
19671959
}
19681960
if (output.InUseBy !== undefined) {
19691961
contents.InUseBy = deserializeAws_json1_1InUseList(output.InUseBy, context);
19701962
}
19711963
if (output.IssuedAt !== undefined) {
1972-
contents.IssuedAt = new Date(
1973-
output.IssuedAt % 1 != 0
1974-
? Math.round(output.IssuedAt * 1000)
1975-
: output.IssuedAt
1976-
);
1964+
contents.IssuedAt = new Date(Math.round(output.IssuedAt * 1000));
19771965
}
19781966
if (output.Issuer !== undefined) {
19791967
contents.Issuer = output.Issuer;
@@ -1988,18 +1976,10 @@ const deserializeAws_json1_1CertificateDetail = (
19881976
);
19891977
}
19901978
if (output.NotAfter !== undefined) {
1991-
contents.NotAfter = new Date(
1992-
output.NotAfter % 1 != 0
1993-
? Math.round(output.NotAfter * 1000)
1994-
: output.NotAfter
1995-
);
1979+
contents.NotAfter = new Date(Math.round(output.NotAfter * 1000));
19961980
}
19971981
if (output.NotBefore !== undefined) {
1998-
contents.NotBefore = new Date(
1999-
output.NotBefore % 1 != 0
2000-
? Math.round(output.NotBefore * 1000)
2001-
: output.NotBefore
2002-
);
1982+
contents.NotBefore = new Date(Math.round(output.NotBefore * 1000));
20031983
}
20041984
if (output.Options !== undefined) {
20051985
contents.Options = deserializeAws_json1_1CertificateOptions(
@@ -2020,11 +2000,7 @@ const deserializeAws_json1_1CertificateDetail = (
20202000
contents.RevocationReason = output.RevocationReason;
20212001
}
20222002
if (output.RevokedAt !== undefined) {
2023-
contents.RevokedAt = new Date(
2024-
output.RevokedAt % 1 != 0
2025-
? Math.round(output.RevokedAt * 1000)
2026-
: output.RevokedAt
2027-
);
2003+
contents.RevokedAt = new Date(Math.round(output.RevokedAt * 1000));
20282004
}
20292005
if (output.Serial !== undefined) {
20302006
contents.Serial = output.Serial;
@@ -2433,11 +2409,7 @@ const deserializeAws_json1_1RenewalSummary = (
24332409
contents.RenewalStatusReason = output.RenewalStatusReason;
24342410
}
24352411
if (output.UpdatedAt !== undefined) {
2436-
contents.UpdatedAt = new Date(
2437-
output.UpdatedAt % 1 != 0
2438-
? Math.round(output.UpdatedAt * 1000)
2439-
: output.UpdatedAt
2440-
);
2412+
contents.UpdatedAt = new Date(Math.round(output.UpdatedAt * 1000));
24412413
}
24422414
return contents;
24432415
};

clients/client-alexa-for-business/protocols/Aws_json1_1.ts

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11063,11 +11063,7 @@ const deserializeAws_json1_1BusinessReport = (
1106311063
Status: undefined
1106411064
};
1106511065
if (output.DeliveryTime !== undefined) {
11066-
contents.DeliveryTime = new Date(
11067-
output.DeliveryTime % 1 != 0
11068-
? Math.round(output.DeliveryTime * 1000)
11069-
: output.DeliveryTime
11070-
);
11066+
contents.DeliveryTime = new Date(Math.round(output.DeliveryTime * 1000));
1107111067
}
1107211068
if (output.DownloadUrl !== undefined) {
1107311069
contents.DownloadUrl = output.DownloadUrl;
@@ -11704,11 +11700,7 @@ const deserializeAws_json1_1DeviceData = (
1170411700
SoftwareVersion: undefined
1170511701
};
1170611702
if (output.CreatedTime !== undefined) {
11707-
contents.CreatedTime = new Date(
11708-
output.CreatedTime % 1 != 0
11709-
? Math.round(output.CreatedTime * 1000)
11710-
: output.CreatedTime
11711-
);
11703+
contents.CreatedTime = new Date(Math.round(output.CreatedTime * 1000));
1171211704
}
1171311705
if (output.DeviceArn !== undefined) {
1171411706
contents.DeviceArn = output.DeviceArn;
@@ -11772,11 +11764,7 @@ const deserializeAws_json1_1DeviceEvent = (
1177211764
Value: undefined
1177311765
};
1177411766
if (output.Timestamp !== undefined) {
11775-
contents.Timestamp = new Date(
11776-
output.Timestamp % 1 != 0
11777-
? Math.round(output.Timestamp * 1000)
11778-
: output.Timestamp
11779-
);
11767+
contents.Timestamp = new Date(Math.round(output.Timestamp * 1000));
1178011768
}
1178111769
if (output.Type !== undefined) {
1178211770
contents.Type = output.Type;
@@ -11811,9 +11799,7 @@ const deserializeAws_json1_1DeviceNetworkProfileInfo = (
1181111799
}
1181211800
if (output.CertificateExpirationTime !== undefined) {
1181311801
contents.CertificateExpirationTime = new Date(
11814-
output.CertificateExpirationTime % 1 != 0
11815-
? Math.round(output.CertificateExpirationTime * 1000)
11816-
: output.CertificateExpirationTime
11802+
Math.round(output.CertificateExpirationTime * 1000)
1181711803
);
1181811804
}
1181911805
if (output.NetworkProfileArn !== undefined) {
@@ -11864,9 +11850,7 @@ const deserializeAws_json1_1DeviceStatusInfo = (
1186411850
}
1186511851
if (output.ConnectionStatusUpdatedTime !== undefined) {
1186611852
contents.ConnectionStatusUpdatedTime = new Date(
11867-
output.ConnectionStatusUpdatedTime % 1 != 0
11868-
? Math.round(output.ConnectionStatusUpdatedTime * 1000)
11869-
: output.ConnectionStatusUpdatedTime
11853+
Math.round(output.ConnectionStatusUpdatedTime * 1000)
1187011854
);
1187111855
}
1187211856
if (output.DeviceStatusDetails !== undefined) {

clients/client-amplify/protocols/Aws_restJson1_1.ts

Lines changed: 14 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4939,11 +4939,7 @@ const deserializeAws_restJson1_1App = (
49394939
contents.buildSpec = output.buildSpec;
49404940
}
49414941
if (output.createTime !== undefined) {
4942-
contents.createTime = new Date(
4943-
output.createTime % 1 != 0
4944-
? Math.round(output.createTime * 1000)
4945-
: output.createTime
4946-
);
4942+
contents.createTime = new Date(Math.round(output.createTime * 1000));
49474943
}
49484944
if (output.customRules !== undefined) {
49494945
contents.customRules = deserializeAws_restJson1_1CustomRules(
@@ -4994,11 +4990,7 @@ const deserializeAws_restJson1_1App = (
49944990
contents.tags = deserializeAws_restJson1_1TagMap(output.tags, context);
49954991
}
49964992
if (output.updateTime !== undefined) {
4997-
contents.updateTime = new Date(
4998-
output.updateTime % 1 != 0
4999-
? Math.round(output.updateTime * 1000)
5000-
: output.updateTime
5001-
);
4993+
contents.updateTime = new Date(Math.round(output.updateTime * 1000));
50024994
}
50034995
return contents;
50044996
};
@@ -5119,11 +5111,7 @@ const deserializeAws_restJson1_1BackendEnvironment = (
51195111
contents.backendEnvironmentArn = output.backendEnvironmentArn;
51205112
}
51215113
if (output.createTime !== undefined) {
5122-
contents.createTime = new Date(
5123-
output.createTime % 1 != 0
5124-
? Math.round(output.createTime * 1000)
5125-
: output.createTime
5126-
);
5114+
contents.createTime = new Date(Math.round(output.createTime * 1000));
51275115
}
51285116
if (output.deploymentArtifacts !== undefined) {
51295117
contents.deploymentArtifacts = output.deploymentArtifacts;
@@ -5135,11 +5123,7 @@ const deserializeAws_restJson1_1BackendEnvironment = (
51355123
contents.stackName = output.stackName;
51365124
}
51375125
if (output.updateTime !== undefined) {
5138-
contents.updateTime = new Date(
5139-
output.updateTime % 1 != 0
5140-
? Math.round(output.updateTime * 1000)
5141-
: output.updateTime
5142-
);
5126+
contents.updateTime = new Date(Math.round(output.updateTime * 1000));
51435127
}
51445128
return contents;
51455129
};
@@ -5211,11 +5195,7 @@ const deserializeAws_restJson1_1Branch = (
52115195
contents.buildSpec = output.buildSpec;
52125196
}
52135197
if (output.createTime !== undefined) {
5214-
contents.createTime = new Date(
5215-
output.createTime % 1 != 0
5216-
? Math.round(output.createTime * 1000)
5217-
: output.createTime
5218-
);
5198+
contents.createTime = new Date(Math.round(output.createTime * 1000));
52195199
}
52205200
if (output.customDomains !== undefined) {
52215201
contents.customDomains = deserializeAws_restJson1_1CustomDomains(
@@ -5275,11 +5255,7 @@ const deserializeAws_restJson1_1Branch = (
52755255
contents.ttl = output.ttl;
52765256
}
52775257
if (output.updateTime !== undefined) {
5278-
contents.updateTime = new Date(
5279-
output.updateTime % 1 != 0
5280-
? Math.round(output.updateTime * 1000)
5281-
: output.updateTime
5282-
);
5258+
contents.updateTime = new Date(Math.round(output.updateTime * 1000));
52835259
}
52845260
return contents;
52855261
};
@@ -5461,18 +5437,10 @@ const deserializeAws_restJson1_1JobSummary = (
54615437
contents.commitMessage = output.commitMessage;
54625438
}
54635439
if (output.commitTime !== undefined) {
5464-
contents.commitTime = new Date(
5465-
output.commitTime % 1 != 0
5466-
? Math.round(output.commitTime * 1000)
5467-
: output.commitTime
5468-
);
5440+
contents.commitTime = new Date(Math.round(output.commitTime * 1000));
54695441
}
54705442
if (output.endTime !== undefined) {
5471-
contents.endTime = new Date(
5472-
output.endTime % 1 != 0
5473-
? Math.round(output.endTime * 1000)
5474-
: output.endTime
5475-
);
5443+
contents.endTime = new Date(Math.round(output.endTime * 1000));
54765444
}
54775445
if (output.jobArn !== undefined) {
54785446
contents.jobArn = output.jobArn;
@@ -5484,11 +5452,7 @@ const deserializeAws_restJson1_1JobSummary = (
54845452
contents.jobType = output.jobType;
54855453
}
54865454
if (output.startTime !== undefined) {
5487-
contents.startTime = new Date(
5488-
output.startTime % 1 != 0
5489-
? Math.round(output.startTime * 1000)
5490-
: output.startTime
5491-
);
5455+
contents.startTime = new Date(Math.round(output.startTime * 1000));
54925456
}
54935457
if (output.status !== undefined) {
54945458
contents.status = output.status;
@@ -5512,9 +5476,7 @@ const deserializeAws_restJson1_1ProductionBranch = (
55125476
}
55135477
if (output.lastDeployTime !== undefined) {
55145478
contents.lastDeployTime = new Date(
5515-
output.lastDeployTime % 1 != 0
5516-
? Math.round(output.lastDeployTime * 1000)
5517-
: output.lastDeployTime
5479+
Math.round(output.lastDeployTime * 1000)
55185480
);
55195481
}
55205482
if (output.status !== undefined) {
@@ -5562,11 +5524,7 @@ const deserializeAws_restJson1_1Step = (
55625524
contents.context = output.context;
55635525
}
55645526
if (output.endTime !== undefined) {
5565-
contents.endTime = new Date(
5566-
output.endTime % 1 != 0
5567-
? Math.round(output.endTime * 1000)
5568-
: output.endTime
5569-
);
5527+
contents.endTime = new Date(Math.round(output.endTime * 1000));
55705528
}
55715529
if (output.logUrl !== undefined) {
55725530
contents.logUrl = output.logUrl;
@@ -5578,11 +5536,7 @@ const deserializeAws_restJson1_1Step = (
55785536
);
55795537
}
55805538
if (output.startTime !== undefined) {
5581-
contents.startTime = new Date(
5582-
output.startTime % 1 != 0
5583-
? Math.round(output.startTime * 1000)
5584-
: output.startTime
5585-
);
5539+
contents.startTime = new Date(Math.round(output.startTime * 1000));
55865540
}
55875541
if (output.status !== undefined) {
55885542
contents.status = output.status;
@@ -5692,21 +5646,13 @@ const deserializeAws_restJson1_1Webhook = (
56925646
contents.branchName = output.branchName;
56935647
}
56945648
if (output.createTime !== undefined) {
5695-
contents.createTime = new Date(
5696-
output.createTime % 1 != 0
5697-
? Math.round(output.createTime * 1000)
5698-
: output.createTime
5699-
);
5649+
contents.createTime = new Date(Math.round(output.createTime * 1000));
57005650
}
57015651
if (output.description !== undefined) {
57025652
contents.description = output.description;
57035653
}
57045654
if (output.updateTime !== undefined) {
5705-
contents.updateTime = new Date(
5706-
output.updateTime % 1 != 0
5707-
? Math.round(output.updateTime * 1000)
5708-
: output.updateTime
5709-
);
5655+
contents.updateTime = new Date(Math.round(output.updateTime * 1000));
57105656
}
57115657
if (output.webhookArn !== undefined) {
57125658
contents.webhookArn = output.webhookArn;

0 commit comments

Comments
 (0)