@aws-sdk/client-codebuild 3.28.0 → 3.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -242,9 +242,13 @@ import {
242
242
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
243
243
  import {
244
244
  expectBoolean as __expectBoolean,
245
- expectInt as __expectInt,
245
+ expectInt32 as __expectInt32,
246
+ expectLong as __expectLong,
247
+ expectNonNull as __expectNonNull,
248
+ expectNumber as __expectNumber,
246
249
  expectString as __expectString,
247
- limitedParseFloat as __limitedParseFloat,
250
+ limitedParseDouble as __limitedParseDouble,
251
+ parseEpochTimestamp as __parseEpochTimestamp,
248
252
  serializeFloat as __serializeFloat,
249
253
  } from "@aws-sdk/smithy-client";
250
254
  import {
@@ -4845,7 +4849,7 @@ const deserializeAws_json1_1BatchRestrictions = (output: any, context: __SerdeCo
4845
4849
  output.computeTypesAllowed !== undefined && output.computeTypesAllowed !== null
4846
4850
  ? deserializeAws_json1_1ComputeTypesAllowed(output.computeTypesAllowed, context)
4847
4851
  : undefined,
4848
- maximumBuildsAllowed: __expectInt(output.maximumBuildsAllowed),
4852
+ maximumBuildsAllowed: __expectInt32(output.maximumBuildsAllowed),
4849
4853
  } as any;
4850
4854
  };
4851
4855
 
@@ -4858,7 +4862,7 @@ const deserializeAws_json1_1Build = (output: any, context: __SerdeContext): Buil
4858
4862
  : undefined,
4859
4863
  buildBatchArn: __expectString(output.buildBatchArn),
4860
4864
  buildComplete: __expectBoolean(output.buildComplete),
4861
- buildNumber: __expectInt(output.buildNumber),
4865
+ buildNumber: __expectLong(output.buildNumber),
4862
4866
  buildStatus: __expectString(output.buildStatus),
4863
4867
  cache:
4864
4868
  output.cache !== undefined && output.cache !== null
@@ -4871,7 +4875,9 @@ const deserializeAws_json1_1Build = (output: any, context: __SerdeContext): Buil
4871
4875
  : undefined,
4872
4876
  encryptionKey: __expectString(output.encryptionKey),
4873
4877
  endTime:
4874
- output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined,
4878
+ output.endTime !== undefined && output.endTime !== null
4879
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
4880
+ : undefined,
4875
4881
  environment:
4876
4882
  output.environment !== undefined && output.environment !== null
4877
4883
  ? deserializeAws_json1_1ProjectEnvironment(output.environment, context)
@@ -4899,7 +4905,7 @@ const deserializeAws_json1_1Build = (output: any, context: __SerdeContext): Buil
4899
4905
  ? deserializeAws_json1_1BuildPhases(output.phases, context)
4900
4906
  : undefined,
4901
4907
  projectName: __expectString(output.projectName),
4902
- queuedTimeoutInMinutes: __expectInt(output.queuedTimeoutInMinutes),
4908
+ queuedTimeoutInMinutes: __expectInt32(output.queuedTimeoutInMinutes),
4903
4909
  reportArns:
4904
4910
  output.reportArns !== undefined && output.reportArns !== null
4905
4911
  ? deserializeAws_json1_1BuildReportArns(output.reportArns, context)
@@ -4925,9 +4931,9 @@ const deserializeAws_json1_1Build = (output: any, context: __SerdeContext): Buil
4925
4931
  sourceVersion: __expectString(output.sourceVersion),
4926
4932
  startTime:
4927
4933
  output.startTime !== undefined && output.startTime !== null
4928
- ? new Date(Math.round(output.startTime * 1000))
4934
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
4929
4935
  : undefined,
4930
- timeoutInMinutes: __expectInt(output.timeoutInMinutes),
4936
+ timeoutInMinutes: __expectInt32(output.timeoutInMinutes),
4931
4937
  vpcConfig:
4932
4938
  output.vpcConfig !== undefined && output.vpcConfig !== null
4933
4939
  ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context)
@@ -4969,13 +4975,13 @@ const deserializeAws_json1_1BuildBatch = (output: any, context: __SerdeContext):
4969
4975
  output.buildBatchConfig !== undefined && output.buildBatchConfig !== null
4970
4976
  ? deserializeAws_json1_1ProjectBuildBatchConfig(output.buildBatchConfig, context)
4971
4977
  : undefined,
4972
- buildBatchNumber: __expectInt(output.buildBatchNumber),
4978
+ buildBatchNumber: __expectLong(output.buildBatchNumber),
4973
4979
  buildBatchStatus: __expectString(output.buildBatchStatus),
4974
4980
  buildGroups:
4975
4981
  output.buildGroups !== undefined && output.buildGroups !== null
4976
4982
  ? deserializeAws_json1_1BuildGroups(output.buildGroups, context)
4977
4983
  : undefined,
4978
- buildTimeoutInMinutes: __expectInt(output.buildTimeoutInMinutes),
4984
+ buildTimeoutInMinutes: __expectInt32(output.buildTimeoutInMinutes),
4979
4985
  cache:
4980
4986
  output.cache !== undefined && output.cache !== null
4981
4987
  ? deserializeAws_json1_1ProjectCache(output.cache, context)
@@ -4985,7 +4991,9 @@ const deserializeAws_json1_1BuildBatch = (output: any, context: __SerdeContext):
4985
4991
  debugSessionEnabled: __expectBoolean(output.debugSessionEnabled),
4986
4992
  encryptionKey: __expectString(output.encryptionKey),
4987
4993
  endTime:
4988
- output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined,
4994
+ output.endTime !== undefined && output.endTime !== null
4995
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
4996
+ : undefined,
4989
4997
  environment:
4990
4998
  output.environment !== undefined && output.environment !== null
4991
4999
  ? deserializeAws_json1_1ProjectEnvironment(output.environment, context)
@@ -5005,7 +5013,7 @@ const deserializeAws_json1_1BuildBatch = (output: any, context: __SerdeContext):
5005
5013
  ? deserializeAws_json1_1BuildBatchPhases(output.phases, context)
5006
5014
  : undefined,
5007
5015
  projectName: __expectString(output.projectName),
5008
- queuedTimeoutInMinutes: __expectInt(output.queuedTimeoutInMinutes),
5016
+ queuedTimeoutInMinutes: __expectInt32(output.queuedTimeoutInMinutes),
5009
5017
  resolvedSourceVersion: __expectString(output.resolvedSourceVersion),
5010
5018
  secondaryArtifacts:
5011
5019
  output.secondaryArtifacts !== undefined && output.secondaryArtifacts !== null
@@ -5027,7 +5035,7 @@ const deserializeAws_json1_1BuildBatch = (output: any, context: __SerdeContext):
5027
5035
  sourceVersion: __expectString(output.sourceVersion),
5028
5036
  startTime:
5029
5037
  output.startTime !== undefined && output.startTime !== null
5030
- ? new Date(Math.round(output.startTime * 1000))
5038
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
5031
5039
  : undefined,
5032
5040
  vpcConfig:
5033
5041
  output.vpcConfig !== undefined && output.vpcConfig !== null
@@ -5064,14 +5072,16 @@ const deserializeAws_json1_1BuildBatchPhase = (output: any, context: __SerdeCont
5064
5072
  output.contexts !== undefined && output.contexts !== null
5065
5073
  ? deserializeAws_json1_1PhaseContexts(output.contexts, context)
5066
5074
  : undefined,
5067
- durationInSeconds: __expectInt(output.durationInSeconds),
5075
+ durationInSeconds: __expectLong(output.durationInSeconds),
5068
5076
  endTime:
5069
- output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined,
5077
+ output.endTime !== undefined && output.endTime !== null
5078
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
5079
+ : undefined,
5070
5080
  phaseStatus: __expectString(output.phaseStatus),
5071
5081
  phaseType: __expectString(output.phaseType),
5072
5082
  startTime:
5073
5083
  output.startTime !== undefined && output.startTime !== null
5074
- ? new Date(Math.round(output.startTime * 1000))
5084
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
5075
5085
  : undefined,
5076
5086
  } as any;
5077
5087
  };
@@ -5141,14 +5151,16 @@ const deserializeAws_json1_1BuildPhase = (output: any, context: __SerdeContext):
5141
5151
  output.contexts !== undefined && output.contexts !== null
5142
5152
  ? deserializeAws_json1_1PhaseContexts(output.contexts, context)
5143
5153
  : undefined,
5144
- durationInSeconds: __expectInt(output.durationInSeconds),
5154
+ durationInSeconds: __expectLong(output.durationInSeconds),
5145
5155
  endTime:
5146
- output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined,
5156
+ output.endTime !== undefined && output.endTime !== null
5157
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
5158
+ : undefined,
5147
5159
  phaseStatus: __expectString(output.phaseStatus),
5148
5160
  phaseType: __expectString(output.phaseType),
5149
5161
  startTime:
5150
5162
  output.startTime !== undefined && output.startTime !== null
5151
- ? new Date(Math.round(output.startTime * 1000))
5163
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
5152
5164
  : undefined,
5153
5165
  } as any;
5154
5166
  };
@@ -5225,7 +5237,7 @@ const deserializeAws_json1_1BuildSummary = (output: any, context: __SerdeContext
5225
5237
  : undefined,
5226
5238
  requestedOn:
5227
5239
  output.requestedOn !== undefined && output.requestedOn !== null
5228
- ? new Date(Math.round(output.requestedOn * 1000))
5240
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.requestedOn)))
5229
5241
  : undefined,
5230
5242
  secondaryArtifacts:
5231
5243
  output.secondaryArtifacts !== undefined && output.secondaryArtifacts !== null
@@ -5244,16 +5256,18 @@ const deserializeAws_json1_1CloudWatchLogsConfig = (output: any, context: __Serd
5244
5256
 
5245
5257
  const deserializeAws_json1_1CodeCoverage = (output: any, context: __SerdeContext): CodeCoverage => {
5246
5258
  return {
5247
- branchCoveragePercentage: __limitedParseFloat(output.branchCoveragePercentage),
5248
- branchesCovered: __expectInt(output.branchesCovered),
5249
- branchesMissed: __expectInt(output.branchesMissed),
5259
+ branchCoveragePercentage: __limitedParseDouble(output.branchCoveragePercentage),
5260
+ branchesCovered: __expectInt32(output.branchesCovered),
5261
+ branchesMissed: __expectInt32(output.branchesMissed),
5250
5262
  expired:
5251
- output.expired !== undefined && output.expired !== null ? new Date(Math.round(output.expired * 1000)) : undefined,
5263
+ output.expired !== undefined && output.expired !== null
5264
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expired)))
5265
+ : undefined,
5252
5266
  filePath: __expectString(output.filePath),
5253
5267
  id: __expectString(output.id),
5254
- lineCoveragePercentage: __limitedParseFloat(output.lineCoveragePercentage),
5255
- linesCovered: __expectInt(output.linesCovered),
5256
- linesMissed: __expectInt(output.linesMissed),
5268
+ lineCoveragePercentage: __limitedParseDouble(output.lineCoveragePercentage),
5269
+ linesCovered: __expectInt32(output.linesCovered),
5270
+ linesMissed: __expectInt32(output.linesMissed),
5257
5271
  reportARN: __expectString(output.reportARN),
5258
5272
  } as any;
5259
5273
  };
@@ -5263,12 +5277,12 @@ const deserializeAws_json1_1CodeCoverageReportSummary = (
5263
5277
  context: __SerdeContext
5264
5278
  ): CodeCoverageReportSummary => {
5265
5279
  return {
5266
- branchCoveragePercentage: __limitedParseFloat(output.branchCoveragePercentage),
5267
- branchesCovered: __expectInt(output.branchesCovered),
5268
- branchesMissed: __expectInt(output.branchesMissed),
5269
- lineCoveragePercentage: __limitedParseFloat(output.lineCoveragePercentage),
5270
- linesCovered: __expectInt(output.linesCovered),
5271
- linesMissed: __expectInt(output.linesMissed),
5280
+ branchCoveragePercentage: __limitedParseDouble(output.branchCoveragePercentage),
5281
+ branchesCovered: __expectInt32(output.branchesCovered),
5282
+ branchesMissed: __expectInt32(output.branchesMissed),
5283
+ lineCoveragePercentage: __limitedParseDouble(output.lineCoveragePercentage),
5284
+ linesCovered: __expectInt32(output.linesCovered),
5285
+ linesMissed: __expectInt32(output.linesMissed),
5272
5286
  } as any;
5273
5287
  };
5274
5288
 
@@ -5827,9 +5841,11 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr
5827
5841
  output.cache !== undefined && output.cache !== null
5828
5842
  ? deserializeAws_json1_1ProjectCache(output.cache, context)
5829
5843
  : undefined,
5830
- concurrentBuildLimit: __expectInt(output.concurrentBuildLimit),
5844
+ concurrentBuildLimit: __expectInt32(output.concurrentBuildLimit),
5831
5845
  created:
5832
- output.created !== undefined && output.created !== null ? new Date(Math.round(output.created * 1000)) : undefined,
5846
+ output.created !== undefined && output.created !== null
5847
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
5848
+ : undefined,
5833
5849
  description: __expectString(output.description),
5834
5850
  encryptionKey: __expectString(output.encryptionKey),
5835
5851
  environment:
@@ -5842,7 +5858,7 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr
5842
5858
  : undefined,
5843
5859
  lastModified:
5844
5860
  output.lastModified !== undefined && output.lastModified !== null
5845
- ? new Date(Math.round(output.lastModified * 1000))
5861
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModified)))
5846
5862
  : undefined,
5847
5863
  logsConfig:
5848
5864
  output.logsConfig !== undefined && output.logsConfig !== null
@@ -5851,7 +5867,7 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr
5851
5867
  name: __expectString(output.name),
5852
5868
  projectVisibility: __expectString(output.projectVisibility),
5853
5869
  publicProjectAlias: __expectString(output.publicProjectAlias),
5854
- queuedTimeoutInMinutes: __expectInt(output.queuedTimeoutInMinutes),
5870
+ queuedTimeoutInMinutes: __expectInt32(output.queuedTimeoutInMinutes),
5855
5871
  resourceAccessRole: __expectString(output.resourceAccessRole),
5856
5872
  secondaryArtifacts:
5857
5873
  output.secondaryArtifacts !== undefined && output.secondaryArtifacts !== null
@@ -5875,7 +5891,7 @@ const deserializeAws_json1_1Project = (output: any, context: __SerdeContext): Pr
5875
5891
  output.tags !== undefined && output.tags !== null
5876
5892
  ? deserializeAws_json1_1TagList(output.tags, context)
5877
5893
  : undefined,
5878
- timeoutInMinutes: __expectInt(output.timeoutInMinutes),
5894
+ timeoutInMinutes: __expectInt32(output.timeoutInMinutes),
5879
5895
  vpcConfig:
5880
5896
  output.vpcConfig !== undefined && output.vpcConfig !== null
5881
5897
  ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context)
@@ -5942,7 +5958,7 @@ const deserializeAws_json1_1ProjectBuildBatchConfig = (
5942
5958
  ? deserializeAws_json1_1BatchRestrictions(output.restrictions, context)
5943
5959
  : undefined,
5944
5960
  serviceRole: __expectString(output.serviceRole),
5945
- timeoutInMins: __expectInt(output.timeoutInMins),
5961
+ timeoutInMins: __expectInt32(output.timeoutInMins),
5946
5962
  } as any;
5947
5963
  };
5948
5964
 
@@ -6061,7 +6077,7 @@ const deserializeAws_json1_1ProjectSource = (output: any, context: __SerdeContex
6061
6077
  ? deserializeAws_json1_1BuildStatusConfig(output.buildStatusConfig, context)
6062
6078
  : undefined,
6063
6079
  buildspec: __expectString(output.buildspec),
6064
- gitCloneDepth: __expectInt(output.gitCloneDepth),
6080
+ gitCloneDepth: __expectInt32(output.gitCloneDepth),
6065
6081
  gitSubmodulesConfig:
6066
6082
  output.gitSubmodulesConfig !== undefined && output.gitSubmodulesConfig !== null
6067
6083
  ? deserializeAws_json1_1GitSubmodulesConfig(output.gitSubmodulesConfig, context)
@@ -6116,10 +6132,14 @@ const deserializeAws_json1_1Report = (output: any, context: __SerdeContext): Rep
6116
6132
  ? deserializeAws_json1_1CodeCoverageReportSummary(output.codeCoverageSummary, context)
6117
6133
  : undefined,
6118
6134
  created:
6119
- output.created !== undefined && output.created !== null ? new Date(Math.round(output.created * 1000)) : undefined,
6135
+ output.created !== undefined && output.created !== null
6136
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
6137
+ : undefined,
6120
6138
  executionId: __expectString(output.executionId),
6121
6139
  expired:
6122
- output.expired !== undefined && output.expired !== null ? new Date(Math.round(output.expired * 1000)) : undefined,
6140
+ output.expired !== undefined && output.expired !== null
6141
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expired)))
6142
+ : undefined,
6123
6143
  exportConfig:
6124
6144
  output.exportConfig !== undefined && output.exportConfig !== null
6125
6145
  ? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context)
@@ -6161,14 +6181,16 @@ const deserializeAws_json1_1ReportGroup = (output: any, context: __SerdeContext)
6161
6181
  return {
6162
6182
  arn: __expectString(output.arn),
6163
6183
  created:
6164
- output.created !== undefined && output.created !== null ? new Date(Math.round(output.created * 1000)) : undefined,
6184
+ output.created !== undefined && output.created !== null
6185
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
6186
+ : undefined,
6165
6187
  exportConfig:
6166
6188
  output.exportConfig !== undefined && output.exportConfig !== null
6167
6189
  ? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context)
6168
6190
  : undefined,
6169
6191
  lastModified:
6170
6192
  output.lastModified !== undefined && output.lastModified !== null
6171
- ? new Date(Math.round(output.lastModified * 1000))
6193
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModified)))
6172
6194
  : undefined,
6173
6195
  name: __expectString(output.name),
6174
6196
  status: __expectString(output.status),
@@ -6242,7 +6264,7 @@ const deserializeAws_json1_1ReportStatusCounts = (output: any, context: __SerdeC
6242
6264
  }
6243
6265
  return {
6244
6266
  ...acc,
6245
- [key]: __expectInt(value) as any,
6267
+ [key]: __expectInt32(value) as any,
6246
6268
  };
6247
6269
  }, {});
6248
6270
  };
@@ -6436,9 +6458,11 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta
6436
6458
 
6437
6459
  const deserializeAws_json1_1TestCase = (output: any, context: __SerdeContext): TestCase => {
6438
6460
  return {
6439
- durationInNanoSeconds: __expectInt(output.durationInNanoSeconds),
6461
+ durationInNanoSeconds: __expectLong(output.durationInNanoSeconds),
6440
6462
  expired:
6441
- output.expired !== undefined && output.expired !== null ? new Date(Math.round(output.expired * 1000)) : undefined,
6463
+ output.expired !== undefined && output.expired !== null
6464
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expired)))
6465
+ : undefined,
6442
6466
  message: __expectString(output.message),
6443
6467
  name: __expectString(output.name),
6444
6468
  prefix: __expectString(output.prefix),
@@ -6461,12 +6485,12 @@ const deserializeAws_json1_1TestCases = (output: any, context: __SerdeContext):
6461
6485
 
6462
6486
  const deserializeAws_json1_1TestReportSummary = (output: any, context: __SerdeContext): TestReportSummary => {
6463
6487
  return {
6464
- durationInNanoSeconds: __expectInt(output.durationInNanoSeconds),
6488
+ durationInNanoSeconds: __expectLong(output.durationInNanoSeconds),
6465
6489
  statusCounts:
6466
6490
  output.statusCounts !== undefined && output.statusCounts !== null
6467
6491
  ? deserializeAws_json1_1ReportStatusCounts(output.statusCounts, context)
6468
6492
  : undefined,
6469
- total: __expectInt(output.total),
6493
+ total: __expectInt32(output.total),
6470
6494
  } as any;
6471
6495
  };
6472
6496
 
@@ -6535,7 +6559,7 @@ const deserializeAws_json1_1Webhook = (output: any, context: __SerdeContext): We
6535
6559
  : undefined,
6536
6560
  lastModifiedSecret:
6537
6561
  output.lastModifiedSecret !== undefined && output.lastModifiedSecret !== null
6538
- ? new Date(Math.round(output.lastModifiedSecret * 1000))
6562
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedSecret)))
6539
6563
  : undefined,
6540
6564
  payloadUrl: __expectString(output.payloadUrl),
6541
6565
  secret: __expectString(output.secret),