@aws-sdk/client-machine-learning 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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-machine-learning",
3
3
  "description": "AWS SDK for JavaScript Machine Learning Client for Node.js, Browser and React Native",
4
- "version": "3.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,47 +27,47 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-sdk-machinelearning": "3.25.0",
41
- "@aws-sdk/middleware-serde": "3.25.0",
42
- "@aws-sdk/middleware-signing": "3.28.0",
43
- "@aws-sdk/middleware-stack": "3.25.0",
44
- "@aws-sdk/middleware-user-agent": "3.25.0",
45
- "@aws-sdk/node-config-provider": "3.28.0",
46
- "@aws-sdk/node-http-handler": "3.25.0",
47
- "@aws-sdk/protocol-http": "3.25.0",
48
- "@aws-sdk/smithy-client": "3.28.0",
49
- "@aws-sdk/types": "3.25.0",
50
- "@aws-sdk/url-parser": "3.25.0",
51
- "@aws-sdk/util-base64-browser": "3.23.0",
52
- "@aws-sdk/util-base64-node": "3.23.0",
53
- "@aws-sdk/util-body-length-browser": "3.23.0",
54
- "@aws-sdk/util-body-length-node": "3.23.0",
55
- "@aws-sdk/util-user-agent-browser": "3.25.0",
56
- "@aws-sdk/util-user-agent-node": "3.28.0",
57
- "@aws-sdk/util-utf8-browser": "3.23.0",
58
- "@aws-sdk/util-utf8-node": "3.23.0",
59
- "@aws-sdk/util-waiter": "3.25.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-sdk-machinelearning": "3.32.0",
41
+ "@aws-sdk/middleware-serde": "3.32.0",
42
+ "@aws-sdk/middleware-signing": "3.32.0",
43
+ "@aws-sdk/middleware-stack": "3.32.0",
44
+ "@aws-sdk/middleware-user-agent": "3.32.0",
45
+ "@aws-sdk/node-config-provider": "3.32.0",
46
+ "@aws-sdk/node-http-handler": "3.32.0",
47
+ "@aws-sdk/protocol-http": "3.32.0",
48
+ "@aws-sdk/smithy-client": "3.32.0",
49
+ "@aws-sdk/types": "3.32.0",
50
+ "@aws-sdk/url-parser": "3.32.0",
51
+ "@aws-sdk/util-base64-browser": "3.32.0",
52
+ "@aws-sdk/util-base64-node": "3.32.0",
53
+ "@aws-sdk/util-body-length-browser": "3.32.0",
54
+ "@aws-sdk/util-body-length-node": "3.32.0",
55
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
56
+ "@aws-sdk/util-user-agent-node": "3.32.0",
57
+ "@aws-sdk/util-utf8-browser": "3.32.0",
58
+ "@aws-sdk/util-utf8-node": "3.32.0",
59
+ "@aws-sdk/util-waiter": "3.32.0",
60
60
  "tslib": "^2.3.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-sdk/client-documentation-generator": "3.23.0",
63
+ "@aws-sdk/client-documentation-generator": "3.32.0",
64
64
  "@types/node": "^12.7.5",
65
65
  "downlevel-dts": "0.7.0",
66
66
  "jest": "^26.1.0",
67
67
  "rimraf": "^3.0.0",
68
68
  "ts-jest": "^26.4.1",
69
69
  "typedoc": "^0.19.2",
70
- "typescript": "~4.3.2"
70
+ "typescript": "~4.3.5"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=10.0.0"
@@ -146,9 +146,13 @@ import {
146
146
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
147
147
  import {
148
148
  expectBoolean as __expectBoolean,
149
- expectInt as __expectInt,
149
+ expectInt32 as __expectInt32,
150
+ expectLong as __expectLong,
151
+ expectNonNull as __expectNonNull,
152
+ expectNumber as __expectNumber,
150
153
  expectString as __expectString,
151
- limitedParseFloat as __limitedParseFloat,
154
+ limitedParseFloat32 as __limitedParseFloat32,
155
+ parseEpochTimestamp as __parseEpochTimestamp,
152
156
  serializeFloat as __serializeFloat,
153
157
  } from "@aws-sdk/smithy-client";
154
158
  import {
@@ -3090,21 +3094,21 @@ const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeCont
3090
3094
  return {
3091
3095
  BatchPredictionDataSourceId: __expectString(output.BatchPredictionDataSourceId),
3092
3096
  BatchPredictionId: __expectString(output.BatchPredictionId),
3093
- ComputeTime: __expectInt(output.ComputeTime),
3097
+ ComputeTime: __expectLong(output.ComputeTime),
3094
3098
  CreatedAt:
3095
3099
  output.CreatedAt !== undefined && output.CreatedAt !== null
3096
- ? new Date(Math.round(output.CreatedAt * 1000))
3100
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
3097
3101
  : undefined,
3098
3102
  CreatedByIamUser: __expectString(output.CreatedByIamUser),
3099
3103
  FinishedAt:
3100
3104
  output.FinishedAt !== undefined && output.FinishedAt !== null
3101
- ? new Date(Math.round(output.FinishedAt * 1000))
3105
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
3102
3106
  : undefined,
3103
3107
  InputDataLocationS3: __expectString(output.InputDataLocationS3),
3104
- InvalidRecordCount: __expectInt(output.InvalidRecordCount),
3108
+ InvalidRecordCount: __expectLong(output.InvalidRecordCount),
3105
3109
  LastUpdatedAt:
3106
3110
  output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
3107
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
3111
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
3108
3112
  : undefined,
3109
3113
  MLModelId: __expectString(output.MLModelId),
3110
3114
  Message: __expectString(output.Message),
@@ -3112,10 +3116,10 @@ const deserializeAws_json1_1BatchPrediction = (output: any, context: __SerdeCont
3112
3116
  OutputUri: __expectString(output.OutputUri),
3113
3117
  StartedAt:
3114
3118
  output.StartedAt !== undefined && output.StartedAt !== null
3115
- ? new Date(Math.round(output.StartedAt * 1000))
3119
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
3116
3120
  : undefined,
3117
3121
  Status: __expectString(output.Status),
3118
- TotalRecordCount: __expectInt(output.TotalRecordCount),
3122
+ TotalRecordCount: __expectLong(output.TotalRecordCount),
3119
3123
  } as any;
3120
3124
  };
3121
3125
 
@@ -3194,27 +3198,27 @@ const deserializeAws_json1_1CreateRealtimeEndpointOutput = (
3194
3198
  const deserializeAws_json1_1DataSource = (output: any, context: __SerdeContext): DataSource => {
3195
3199
  return {
3196
3200
  ComputeStatistics: __expectBoolean(output.ComputeStatistics),
3197
- ComputeTime: __expectInt(output.ComputeTime),
3201
+ ComputeTime: __expectLong(output.ComputeTime),
3198
3202
  CreatedAt:
3199
3203
  output.CreatedAt !== undefined && output.CreatedAt !== null
3200
- ? new Date(Math.round(output.CreatedAt * 1000))
3204
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
3201
3205
  : undefined,
3202
3206
  CreatedByIamUser: __expectString(output.CreatedByIamUser),
3203
3207
  DataLocationS3: __expectString(output.DataLocationS3),
3204
3208
  DataRearrangement: __expectString(output.DataRearrangement),
3205
- DataSizeInBytes: __expectInt(output.DataSizeInBytes),
3209
+ DataSizeInBytes: __expectLong(output.DataSizeInBytes),
3206
3210
  DataSourceId: __expectString(output.DataSourceId),
3207
3211
  FinishedAt:
3208
3212
  output.FinishedAt !== undefined && output.FinishedAt !== null
3209
- ? new Date(Math.round(output.FinishedAt * 1000))
3213
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
3210
3214
  : undefined,
3211
3215
  LastUpdatedAt:
3212
3216
  output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
3213
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
3217
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
3214
3218
  : undefined,
3215
3219
  Message: __expectString(output.Message),
3216
3220
  Name: __expectString(output.Name),
3217
- NumberOfFiles: __expectInt(output.NumberOfFiles),
3221
+ NumberOfFiles: __expectLong(output.NumberOfFiles),
3218
3222
  RDSMetadata:
3219
3223
  output.RDSMetadata !== undefined && output.RDSMetadata !== null
3220
3224
  ? deserializeAws_json1_1RDSMetadata(output.RDSMetadata, context)
@@ -3226,7 +3230,7 @@ const deserializeAws_json1_1DataSource = (output: any, context: __SerdeContext):
3226
3230
  RoleARN: __expectString(output.RoleARN),
3227
3231
  StartedAt:
3228
3232
  output.StartedAt !== undefined && output.StartedAt !== null
3229
- ? new Date(Math.round(output.StartedAt * 1000))
3233
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
3230
3234
  : undefined,
3231
3235
  Status: __expectString(output.Status),
3232
3236
  } as any;
@@ -3367,22 +3371,22 @@ const deserializeAws_json1_1DetailsMap = (output: any, context: __SerdeContext):
3367
3371
 
3368
3372
  const deserializeAws_json1_1Evaluation = (output: any, context: __SerdeContext): Evaluation => {
3369
3373
  return {
3370
- ComputeTime: __expectInt(output.ComputeTime),
3374
+ ComputeTime: __expectLong(output.ComputeTime),
3371
3375
  CreatedAt:
3372
3376
  output.CreatedAt !== undefined && output.CreatedAt !== null
3373
- ? new Date(Math.round(output.CreatedAt * 1000))
3377
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
3374
3378
  : undefined,
3375
3379
  CreatedByIamUser: __expectString(output.CreatedByIamUser),
3376
3380
  EvaluationDataSourceId: __expectString(output.EvaluationDataSourceId),
3377
3381
  EvaluationId: __expectString(output.EvaluationId),
3378
3382
  FinishedAt:
3379
3383
  output.FinishedAt !== undefined && output.FinishedAt !== null
3380
- ? new Date(Math.round(output.FinishedAt * 1000))
3384
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
3381
3385
  : undefined,
3382
3386
  InputDataLocationS3: __expectString(output.InputDataLocationS3),
3383
3387
  LastUpdatedAt:
3384
3388
  output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
3385
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
3389
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
3386
3390
  : undefined,
3387
3391
  MLModelId: __expectString(output.MLModelId),
3388
3392
  Message: __expectString(output.Message),
@@ -3393,7 +3397,7 @@ const deserializeAws_json1_1Evaluation = (output: any, context: __SerdeContext):
3393
3397
  : undefined,
3394
3398
  StartedAt:
3395
3399
  output.StartedAt !== undefined && output.StartedAt !== null
3396
- ? new Date(Math.round(output.StartedAt * 1000))
3400
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
3397
3401
  : undefined,
3398
3402
  Status: __expectString(output.Status),
3399
3403
  } as any;
@@ -3417,21 +3421,21 @@ const deserializeAws_json1_1GetBatchPredictionOutput = (
3417
3421
  return {
3418
3422
  BatchPredictionDataSourceId: __expectString(output.BatchPredictionDataSourceId),
3419
3423
  BatchPredictionId: __expectString(output.BatchPredictionId),
3420
- ComputeTime: __expectInt(output.ComputeTime),
3424
+ ComputeTime: __expectLong(output.ComputeTime),
3421
3425
  CreatedAt:
3422
3426
  output.CreatedAt !== undefined && output.CreatedAt !== null
3423
- ? new Date(Math.round(output.CreatedAt * 1000))
3427
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
3424
3428
  : undefined,
3425
3429
  CreatedByIamUser: __expectString(output.CreatedByIamUser),
3426
3430
  FinishedAt:
3427
3431
  output.FinishedAt !== undefined && output.FinishedAt !== null
3428
- ? new Date(Math.round(output.FinishedAt * 1000))
3432
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
3429
3433
  : undefined,
3430
3434
  InputDataLocationS3: __expectString(output.InputDataLocationS3),
3431
- InvalidRecordCount: __expectInt(output.InvalidRecordCount),
3435
+ InvalidRecordCount: __expectLong(output.InvalidRecordCount),
3432
3436
  LastUpdatedAt:
3433
3437
  output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
3434
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
3438
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
3435
3439
  : undefined,
3436
3440
  LogUri: __expectString(output.LogUri),
3437
3441
  MLModelId: __expectString(output.MLModelId),
@@ -3440,39 +3444,39 @@ const deserializeAws_json1_1GetBatchPredictionOutput = (
3440
3444
  OutputUri: __expectString(output.OutputUri),
3441
3445
  StartedAt:
3442
3446
  output.StartedAt !== undefined && output.StartedAt !== null
3443
- ? new Date(Math.round(output.StartedAt * 1000))
3447
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
3444
3448
  : undefined,
3445
3449
  Status: __expectString(output.Status),
3446
- TotalRecordCount: __expectInt(output.TotalRecordCount),
3450
+ TotalRecordCount: __expectLong(output.TotalRecordCount),
3447
3451
  } as any;
3448
3452
  };
3449
3453
 
3450
3454
  const deserializeAws_json1_1GetDataSourceOutput = (output: any, context: __SerdeContext): GetDataSourceOutput => {
3451
3455
  return {
3452
3456
  ComputeStatistics: __expectBoolean(output.ComputeStatistics),
3453
- ComputeTime: __expectInt(output.ComputeTime),
3457
+ ComputeTime: __expectLong(output.ComputeTime),
3454
3458
  CreatedAt:
3455
3459
  output.CreatedAt !== undefined && output.CreatedAt !== null
3456
- ? new Date(Math.round(output.CreatedAt * 1000))
3460
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
3457
3461
  : undefined,
3458
3462
  CreatedByIamUser: __expectString(output.CreatedByIamUser),
3459
3463
  DataLocationS3: __expectString(output.DataLocationS3),
3460
3464
  DataRearrangement: __expectString(output.DataRearrangement),
3461
- DataSizeInBytes: __expectInt(output.DataSizeInBytes),
3465
+ DataSizeInBytes: __expectLong(output.DataSizeInBytes),
3462
3466
  DataSourceId: __expectString(output.DataSourceId),
3463
3467
  DataSourceSchema: __expectString(output.DataSourceSchema),
3464
3468
  FinishedAt:
3465
3469
  output.FinishedAt !== undefined && output.FinishedAt !== null
3466
- ? new Date(Math.round(output.FinishedAt * 1000))
3470
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
3467
3471
  : undefined,
3468
3472
  LastUpdatedAt:
3469
3473
  output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
3470
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
3474
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
3471
3475
  : undefined,
3472
3476
  LogUri: __expectString(output.LogUri),
3473
3477
  Message: __expectString(output.Message),
3474
3478
  Name: __expectString(output.Name),
3475
- NumberOfFiles: __expectInt(output.NumberOfFiles),
3479
+ NumberOfFiles: __expectLong(output.NumberOfFiles),
3476
3480
  RDSMetadata:
3477
3481
  output.RDSMetadata !== undefined && output.RDSMetadata !== null
3478
3482
  ? deserializeAws_json1_1RDSMetadata(output.RDSMetadata, context)
@@ -3484,7 +3488,7 @@ const deserializeAws_json1_1GetDataSourceOutput = (output: any, context: __Serde
3484
3488
  RoleARN: __expectString(output.RoleARN),
3485
3489
  StartedAt:
3486
3490
  output.StartedAt !== undefined && output.StartedAt !== null
3487
- ? new Date(Math.round(output.StartedAt * 1000))
3491
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
3488
3492
  : undefined,
3489
3493
  Status: __expectString(output.Status),
3490
3494
  } as any;
@@ -3492,22 +3496,22 @@ const deserializeAws_json1_1GetDataSourceOutput = (output: any, context: __Serde
3492
3496
 
3493
3497
  const deserializeAws_json1_1GetEvaluationOutput = (output: any, context: __SerdeContext): GetEvaluationOutput => {
3494
3498
  return {
3495
- ComputeTime: __expectInt(output.ComputeTime),
3499
+ ComputeTime: __expectLong(output.ComputeTime),
3496
3500
  CreatedAt:
3497
3501
  output.CreatedAt !== undefined && output.CreatedAt !== null
3498
- ? new Date(Math.round(output.CreatedAt * 1000))
3502
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
3499
3503
  : undefined,
3500
3504
  CreatedByIamUser: __expectString(output.CreatedByIamUser),
3501
3505
  EvaluationDataSourceId: __expectString(output.EvaluationDataSourceId),
3502
3506
  EvaluationId: __expectString(output.EvaluationId),
3503
3507
  FinishedAt:
3504
3508
  output.FinishedAt !== undefined && output.FinishedAt !== null
3505
- ? new Date(Math.round(output.FinishedAt * 1000))
3509
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
3506
3510
  : undefined,
3507
3511
  InputDataLocationS3: __expectString(output.InputDataLocationS3),
3508
3512
  LastUpdatedAt:
3509
3513
  output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
3510
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
3514
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
3511
3515
  : undefined,
3512
3516
  LogUri: __expectString(output.LogUri),
3513
3517
  MLModelId: __expectString(output.MLModelId),
@@ -3519,7 +3523,7 @@ const deserializeAws_json1_1GetEvaluationOutput = (output: any, context: __Serde
3519
3523
  : undefined,
3520
3524
  StartedAt:
3521
3525
  output.StartedAt !== undefined && output.StartedAt !== null
3522
- ? new Date(Math.round(output.StartedAt * 1000))
3526
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
3523
3527
  : undefined,
3524
3528
  Status: __expectString(output.Status),
3525
3529
  } as any;
@@ -3527,10 +3531,10 @@ const deserializeAws_json1_1GetEvaluationOutput = (output: any, context: __Serde
3527
3531
 
3528
3532
  const deserializeAws_json1_1GetMLModelOutput = (output: any, context: __SerdeContext): GetMLModelOutput => {
3529
3533
  return {
3530
- ComputeTime: __expectInt(output.ComputeTime),
3534
+ ComputeTime: __expectLong(output.ComputeTime),
3531
3535
  CreatedAt:
3532
3536
  output.CreatedAt !== undefined && output.CreatedAt !== null
3533
- ? new Date(Math.round(output.CreatedAt * 1000))
3537
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
3534
3538
  : undefined,
3535
3539
  CreatedByIamUser: __expectString(output.CreatedByIamUser),
3536
3540
  EndpointInfo:
@@ -3539,12 +3543,12 @@ const deserializeAws_json1_1GetMLModelOutput = (output: any, context: __SerdeCon
3539
3543
  : undefined,
3540
3544
  FinishedAt:
3541
3545
  output.FinishedAt !== undefined && output.FinishedAt !== null
3542
- ? new Date(Math.round(output.FinishedAt * 1000))
3546
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
3543
3547
  : undefined,
3544
3548
  InputDataLocationS3: __expectString(output.InputDataLocationS3),
3545
3549
  LastUpdatedAt:
3546
3550
  output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
3547
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
3551
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
3548
3552
  : undefined,
3549
3553
  LogUri: __expectString(output.LogUri),
3550
3554
  MLModelId: __expectString(output.MLModelId),
@@ -3553,15 +3557,15 @@ const deserializeAws_json1_1GetMLModelOutput = (output: any, context: __SerdeCon
3553
3557
  Name: __expectString(output.Name),
3554
3558
  Recipe: __expectString(output.Recipe),
3555
3559
  Schema: __expectString(output.Schema),
3556
- ScoreThreshold: __limitedParseFloat(output.ScoreThreshold),
3560
+ ScoreThreshold: __limitedParseFloat32(output.ScoreThreshold),
3557
3561
  ScoreThresholdLastUpdatedAt:
3558
3562
  output.ScoreThresholdLastUpdatedAt !== undefined && output.ScoreThresholdLastUpdatedAt !== null
3559
- ? new Date(Math.round(output.ScoreThresholdLastUpdatedAt * 1000))
3563
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ScoreThresholdLastUpdatedAt)))
3560
3564
  : undefined,
3561
- SizeInBytes: __expectInt(output.SizeInBytes),
3565
+ SizeInBytes: __expectLong(output.SizeInBytes),
3562
3566
  StartedAt:
3563
3567
  output.StartedAt !== undefined && output.StartedAt !== null
3564
- ? new Date(Math.round(output.StartedAt * 1000))
3568
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
3565
3569
  : undefined,
3566
3570
  Status: __expectString(output.Status),
3567
3571
  TrainingDataSourceId: __expectString(output.TrainingDataSourceId),
@@ -3577,7 +3581,7 @@ const deserializeAws_json1_1IdempotentParameterMismatchException = (
3577
3581
  context: __SerdeContext
3578
3582
  ): IdempotentParameterMismatchException => {
3579
3583
  return {
3580
- code: __expectInt(output.code),
3584
+ code: __expectInt32(output.code),
3581
3585
  message: __expectString(output.message),
3582
3586
  } as any;
3583
3587
  };
@@ -3587,14 +3591,14 @@ const deserializeAws_json1_1InternalServerException = (
3587
3591
  context: __SerdeContext
3588
3592
  ): InternalServerException => {
3589
3593
  return {
3590
- code: __expectInt(output.code),
3594
+ code: __expectInt32(output.code),
3591
3595
  message: __expectString(output.message),
3592
3596
  } as any;
3593
3597
  };
3594
3598
 
3595
3599
  const deserializeAws_json1_1InvalidInputException = (output: any, context: __SerdeContext): InvalidInputException => {
3596
3600
  return {
3597
- code: __expectInt(output.code),
3601
+ code: __expectInt32(output.code),
3598
3602
  message: __expectString(output.message),
3599
3603
  } as any;
3600
3604
  };
@@ -3607,7 +3611,7 @@ const deserializeAws_json1_1InvalidTagException = (output: any, context: __Serde
3607
3611
 
3608
3612
  const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => {
3609
3613
  return {
3610
- code: __expectInt(output.code),
3614
+ code: __expectInt32(output.code),
3611
3615
  message: __expectString(output.message),
3612
3616
  } as any;
3613
3617
  };
@@ -3615,10 +3619,10 @@ const deserializeAws_json1_1LimitExceededException = (output: any, context: __Se
3615
3619
  const deserializeAws_json1_1MLModel = (output: any, context: __SerdeContext): MLModel => {
3616
3620
  return {
3617
3621
  Algorithm: __expectString(output.Algorithm),
3618
- ComputeTime: __expectInt(output.ComputeTime),
3622
+ ComputeTime: __expectLong(output.ComputeTime),
3619
3623
  CreatedAt:
3620
3624
  output.CreatedAt !== undefined && output.CreatedAt !== null
3621
- ? new Date(Math.round(output.CreatedAt * 1000))
3625
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
3622
3626
  : undefined,
3623
3627
  CreatedByIamUser: __expectString(output.CreatedByIamUser),
3624
3628
  EndpointInfo:
@@ -3627,26 +3631,26 @@ const deserializeAws_json1_1MLModel = (output: any, context: __SerdeContext): ML
3627
3631
  : undefined,
3628
3632
  FinishedAt:
3629
3633
  output.FinishedAt !== undefined && output.FinishedAt !== null
3630
- ? new Date(Math.round(output.FinishedAt * 1000))
3634
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FinishedAt)))
3631
3635
  : undefined,
3632
3636
  InputDataLocationS3: __expectString(output.InputDataLocationS3),
3633
3637
  LastUpdatedAt:
3634
3638
  output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
3635
- ? new Date(Math.round(output.LastUpdatedAt * 1000))
3639
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
3636
3640
  : undefined,
3637
3641
  MLModelId: __expectString(output.MLModelId),
3638
3642
  MLModelType: __expectString(output.MLModelType),
3639
3643
  Message: __expectString(output.Message),
3640
3644
  Name: __expectString(output.Name),
3641
- ScoreThreshold: __limitedParseFloat(output.ScoreThreshold),
3645
+ ScoreThreshold: __limitedParseFloat32(output.ScoreThreshold),
3642
3646
  ScoreThresholdLastUpdatedAt:
3643
3647
  output.ScoreThresholdLastUpdatedAt !== undefined && output.ScoreThresholdLastUpdatedAt !== null
3644
- ? new Date(Math.round(output.ScoreThresholdLastUpdatedAt * 1000))
3648
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ScoreThresholdLastUpdatedAt)))
3645
3649
  : undefined,
3646
- SizeInBytes: __expectInt(output.SizeInBytes),
3650
+ SizeInBytes: __expectLong(output.SizeInBytes),
3647
3651
  StartedAt:
3648
3652
  output.StartedAt !== undefined && output.StartedAt !== null
3649
- ? new Date(Math.round(output.StartedAt * 1000))
3653
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedAt)))
3650
3654
  : undefined,
3651
3655
  Status: __expectString(output.Status),
3652
3656
  TrainingDataSourceId: __expectString(output.TrainingDataSourceId),
@@ -3703,7 +3707,7 @@ const deserializeAws_json1_1Prediction = (output: any, context: __SerdeContext):
3703
3707
  output.predictedScores !== undefined && output.predictedScores !== null
3704
3708
  ? deserializeAws_json1_1ScoreValuePerLabelMap(output.predictedScores, context)
3705
3709
  : undefined,
3706
- predictedValue: __limitedParseFloat(output.predictedValue),
3710
+ predictedValue: __limitedParseFloat32(output.predictedValue),
3707
3711
  } as any;
3708
3712
  };
3709
3713
 
@@ -3750,11 +3754,11 @@ const deserializeAws_json1_1RealtimeEndpointInfo = (output: any, context: __Serd
3750
3754
  return {
3751
3755
  CreatedAt:
3752
3756
  output.CreatedAt !== undefined && output.CreatedAt !== null
3753
- ? new Date(Math.round(output.CreatedAt * 1000))
3757
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
3754
3758
  : undefined,
3755
3759
  EndpointStatus: __expectString(output.EndpointStatus),
3756
3760
  EndpointUrl: __expectString(output.EndpointUrl),
3757
- PeakRequestsPerSecond: __expectInt(output.PeakRequestsPerSecond),
3761
+ PeakRequestsPerSecond: __expectInt32(output.PeakRequestsPerSecond),
3758
3762
  } as any;
3759
3763
  };
3760
3764
 
@@ -3781,7 +3785,7 @@ const deserializeAws_json1_1ResourceNotFoundException = (
3781
3785
  context: __SerdeContext
3782
3786
  ): ResourceNotFoundException => {
3783
3787
  return {
3784
- code: __expectInt(output.code),
3788
+ code: __expectInt32(output.code),
3785
3789
  message: __expectString(output.message),
3786
3790
  } as any;
3787
3791
  };
@@ -3796,7 +3800,7 @@ const deserializeAws_json1_1ScoreValuePerLabelMap = (
3796
3800
  }
3797
3801
  return {
3798
3802
  ...acc,
3799
- [key]: __limitedParseFloat(value) as any,
3803
+ [key]: __limitedParseFloat32(value) as any,
3800
3804
  };
3801
3805
  }, {});
3802
3806
  };