@aws-sdk/client-cloudwatch-events 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-cloudwatch-events",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Events 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,45 +27,45 @@
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-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.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-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.23.0",
61
+ "@aws-sdk/client-documentation-generator": "3.32.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
65
65
  "rimraf": "^3.0.0",
66
66
  "ts-jest": "^26.4.1",
67
67
  "typedoc": "^0.19.2",
68
- "typescript": "~4.3.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -264,8 +264,12 @@ import {
264
264
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
265
265
  import {
266
266
  expectBoolean as __expectBoolean,
267
- expectInt as __expectInt,
267
+ expectInt32 as __expectInt32,
268
+ expectLong as __expectLong,
269
+ expectNonNull as __expectNonNull,
270
+ expectNumber as __expectNumber,
268
271
  expectString as __expectString,
272
+ parseEpochTimestamp as __parseEpochTimestamp,
269
273
  } from "@aws-sdk/smithy-client";
270
274
  import {
271
275
  Endpoint as __Endpoint,
@@ -6029,14 +6033,14 @@ const deserializeAws_json1_1ApiDestination = (output: any, context: __SerdeConte
6029
6033
  ConnectionArn: __expectString(output.ConnectionArn),
6030
6034
  CreationTime:
6031
6035
  output.CreationTime !== undefined && output.CreationTime !== null
6032
- ? new Date(Math.round(output.CreationTime * 1000))
6036
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6033
6037
  : undefined,
6034
6038
  HttpMethod: __expectString(output.HttpMethod),
6035
6039
  InvocationEndpoint: __expectString(output.InvocationEndpoint),
6036
- InvocationRateLimitPerSecond: __expectInt(output.InvocationRateLimitPerSecond),
6040
+ InvocationRateLimitPerSecond: __expectInt32(output.InvocationRateLimitPerSecond),
6037
6041
  LastModifiedTime:
6038
6042
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
6039
- ? new Date(Math.round(output.LastModifiedTime * 1000))
6043
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
6040
6044
  : undefined,
6041
6045
  Name: __expectString(output.Name),
6042
6046
  } as any;
@@ -6058,12 +6062,12 @@ const deserializeAws_json1_1Archive = (output: any, context: __SerdeContext): Ar
6058
6062
  ArchiveName: __expectString(output.ArchiveName),
6059
6063
  CreationTime:
6060
6064
  output.CreationTime !== undefined && output.CreationTime !== null
6061
- ? new Date(Math.round(output.CreationTime * 1000))
6065
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6062
6066
  : undefined,
6063
- EventCount: __expectInt(output.EventCount),
6067
+ EventCount: __expectLong(output.EventCount),
6064
6068
  EventSourceArn: __expectString(output.EventSourceArn),
6065
- RetentionDays: __expectInt(output.RetentionDays),
6066
- SizeBytes: __expectInt(output.SizeBytes),
6069
+ RetentionDays: __expectInt32(output.RetentionDays),
6070
+ SizeBytes: __expectLong(output.SizeBytes),
6067
6071
  State: __expectString(output.State),
6068
6072
  StateReason: __expectString(output.StateReason),
6069
6073
  } as any;
@@ -6096,7 +6100,7 @@ const deserializeAws_json1_1AwsVpcConfiguration = (output: any, context: __Serde
6096
6100
 
6097
6101
  const deserializeAws_json1_1BatchArrayProperties = (output: any, context: __SerdeContext): BatchArrayProperties => {
6098
6102
  return {
6099
- Size: __expectInt(output.Size),
6103
+ Size: __expectInt32(output.Size),
6100
6104
  } as any;
6101
6105
  };
6102
6106
 
@@ -6117,7 +6121,7 @@ const deserializeAws_json1_1BatchParameters = (output: any, context: __SerdeCont
6117
6121
 
6118
6122
  const deserializeAws_json1_1BatchRetryStrategy = (output: any, context: __SerdeContext): BatchRetryStrategy => {
6119
6123
  return {
6120
- Attempts: __expectInt(output.Attempts),
6124
+ Attempts: __expectInt32(output.Attempts),
6121
6125
  } as any;
6122
6126
  };
6123
6127
 
@@ -6148,9 +6152,9 @@ const deserializeAws_json1_1CapacityProviderStrategyItem = (
6148
6152
  context: __SerdeContext
6149
6153
  ): CapacityProviderStrategyItem => {
6150
6154
  return {
6151
- base: __expectInt(output.base),
6155
+ base: __expectInt32(output.base),
6152
6156
  capacityProvider: __expectString(output.capacityProvider),
6153
- weight: __expectInt(output.weight),
6157
+ weight: __expectInt32(output.weight),
6154
6158
  } as any;
6155
6159
  };
6156
6160
 
@@ -6170,15 +6174,15 @@ const deserializeAws_json1_1Connection = (output: any, context: __SerdeContext):
6170
6174
  ConnectionState: __expectString(output.ConnectionState),
6171
6175
  CreationTime:
6172
6176
  output.CreationTime !== undefined && output.CreationTime !== null
6173
- ? new Date(Math.round(output.CreationTime * 1000))
6177
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6174
6178
  : undefined,
6175
6179
  LastAuthorizedTime:
6176
6180
  output.LastAuthorizedTime !== undefined && output.LastAuthorizedTime !== null
6177
- ? new Date(Math.round(output.LastAuthorizedTime * 1000))
6181
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAuthorizedTime)))
6178
6182
  : undefined,
6179
6183
  LastModifiedTime:
6180
6184
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
6181
- ? new Date(Math.round(output.LastModifiedTime * 1000))
6185
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
6182
6186
  : undefined,
6183
6187
  Name: __expectString(output.Name),
6184
6188
  StateReason: __expectString(output.StateReason),
@@ -6369,11 +6373,11 @@ const deserializeAws_json1_1CreateApiDestinationResponse = (
6369
6373
  ApiDestinationState: __expectString(output.ApiDestinationState),
6370
6374
  CreationTime:
6371
6375
  output.CreationTime !== undefined && output.CreationTime !== null
6372
- ? new Date(Math.round(output.CreationTime * 1000))
6376
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6373
6377
  : undefined,
6374
6378
  LastModifiedTime:
6375
6379
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
6376
- ? new Date(Math.round(output.LastModifiedTime * 1000))
6380
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
6377
6381
  : undefined,
6378
6382
  } as any;
6379
6383
  };
@@ -6383,7 +6387,7 @@ const deserializeAws_json1_1CreateArchiveResponse = (output: any, context: __Ser
6383
6387
  ArchiveArn: __expectString(output.ArchiveArn),
6384
6388
  CreationTime:
6385
6389
  output.CreationTime !== undefined && output.CreationTime !== null
6386
- ? new Date(Math.round(output.CreationTime * 1000))
6390
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6387
6391
  : undefined,
6388
6392
  State: __expectString(output.State),
6389
6393
  StateReason: __expectString(output.StateReason),
@@ -6399,11 +6403,11 @@ const deserializeAws_json1_1CreateConnectionResponse = (
6399
6403
  ConnectionState: __expectString(output.ConnectionState),
6400
6404
  CreationTime:
6401
6405
  output.CreationTime !== undefined && output.CreationTime !== null
6402
- ? new Date(Math.round(output.CreationTime * 1000))
6406
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6403
6407
  : undefined,
6404
6408
  LastModifiedTime:
6405
6409
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
6406
- ? new Date(Math.round(output.LastModifiedTime * 1000))
6410
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
6407
6411
  : undefined,
6408
6412
  } as any;
6409
6413
  };
@@ -6438,15 +6442,15 @@ const deserializeAws_json1_1DeauthorizeConnectionResponse = (
6438
6442
  ConnectionState: __expectString(output.ConnectionState),
6439
6443
  CreationTime:
6440
6444
  output.CreationTime !== undefined && output.CreationTime !== null
6441
- ? new Date(Math.round(output.CreationTime * 1000))
6445
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6442
6446
  : undefined,
6443
6447
  LastAuthorizedTime:
6444
6448
  output.LastAuthorizedTime !== undefined && output.LastAuthorizedTime !== null
6445
- ? new Date(Math.round(output.LastAuthorizedTime * 1000))
6449
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAuthorizedTime)))
6446
6450
  : undefined,
6447
6451
  LastModifiedTime:
6448
6452
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
6449
- ? new Date(Math.round(output.LastModifiedTime * 1000))
6453
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
6450
6454
  : undefined,
6451
6455
  } as any;
6452
6456
  };
@@ -6471,15 +6475,15 @@ const deserializeAws_json1_1DeleteConnectionResponse = (
6471
6475
  ConnectionState: __expectString(output.ConnectionState),
6472
6476
  CreationTime:
6473
6477
  output.CreationTime !== undefined && output.CreationTime !== null
6474
- ? new Date(Math.round(output.CreationTime * 1000))
6478
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6475
6479
  : undefined,
6476
6480
  LastAuthorizedTime:
6477
6481
  output.LastAuthorizedTime !== undefined && output.LastAuthorizedTime !== null
6478
- ? new Date(Math.round(output.LastAuthorizedTime * 1000))
6482
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAuthorizedTime)))
6479
6483
  : undefined,
6480
6484
  LastModifiedTime:
6481
6485
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
6482
- ? new Date(Math.round(output.LastModifiedTime * 1000))
6486
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
6483
6487
  : undefined,
6484
6488
  } as any;
6485
6489
  };
@@ -6494,15 +6498,15 @@ const deserializeAws_json1_1DescribeApiDestinationResponse = (
6494
6498
  ConnectionArn: __expectString(output.ConnectionArn),
6495
6499
  CreationTime:
6496
6500
  output.CreationTime !== undefined && output.CreationTime !== null
6497
- ? new Date(Math.round(output.CreationTime * 1000))
6501
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6498
6502
  : undefined,
6499
6503
  Description: __expectString(output.Description),
6500
6504
  HttpMethod: __expectString(output.HttpMethod),
6501
6505
  InvocationEndpoint: __expectString(output.InvocationEndpoint),
6502
- InvocationRateLimitPerSecond: __expectInt(output.InvocationRateLimitPerSecond),
6506
+ InvocationRateLimitPerSecond: __expectInt32(output.InvocationRateLimitPerSecond),
6503
6507
  LastModifiedTime:
6504
6508
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
6505
- ? new Date(Math.round(output.LastModifiedTime * 1000))
6509
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
6506
6510
  : undefined,
6507
6511
  Name: __expectString(output.Name),
6508
6512
  } as any;
@@ -6517,14 +6521,14 @@ const deserializeAws_json1_1DescribeArchiveResponse = (
6517
6521
  ArchiveName: __expectString(output.ArchiveName),
6518
6522
  CreationTime:
6519
6523
  output.CreationTime !== undefined && output.CreationTime !== null
6520
- ? new Date(Math.round(output.CreationTime * 1000))
6524
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6521
6525
  : undefined,
6522
6526
  Description: __expectString(output.Description),
6523
- EventCount: __expectInt(output.EventCount),
6527
+ EventCount: __expectLong(output.EventCount),
6524
6528
  EventPattern: __expectString(output.EventPattern),
6525
6529
  EventSourceArn: __expectString(output.EventSourceArn),
6526
- RetentionDays: __expectInt(output.RetentionDays),
6527
- SizeBytes: __expectInt(output.SizeBytes),
6530
+ RetentionDays: __expectInt32(output.RetentionDays),
6531
+ SizeBytes: __expectLong(output.SizeBytes),
6528
6532
  State: __expectString(output.State),
6529
6533
  StateReason: __expectString(output.StateReason),
6530
6534
  } as any;
@@ -6544,16 +6548,16 @@ const deserializeAws_json1_1DescribeConnectionResponse = (
6544
6548
  ConnectionState: __expectString(output.ConnectionState),
6545
6549
  CreationTime:
6546
6550
  output.CreationTime !== undefined && output.CreationTime !== null
6547
- ? new Date(Math.round(output.CreationTime * 1000))
6551
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6548
6552
  : undefined,
6549
6553
  Description: __expectString(output.Description),
6550
6554
  LastAuthorizedTime:
6551
6555
  output.LastAuthorizedTime !== undefined && output.LastAuthorizedTime !== null
6552
- ? new Date(Math.round(output.LastAuthorizedTime * 1000))
6556
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAuthorizedTime)))
6553
6557
  : undefined,
6554
6558
  LastModifiedTime:
6555
6559
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
6556
- ? new Date(Math.round(output.LastModifiedTime * 1000))
6560
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
6557
6561
  : undefined,
6558
6562
  Name: __expectString(output.Name),
6559
6563
  SecretArn: __expectString(output.SecretArn),
@@ -6581,11 +6585,11 @@ const deserializeAws_json1_1DescribeEventSourceResponse = (
6581
6585
  CreatedBy: __expectString(output.CreatedBy),
6582
6586
  CreationTime:
6583
6587
  output.CreationTime !== undefined && output.CreationTime !== null
6584
- ? new Date(Math.round(output.CreationTime * 1000))
6588
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6585
6589
  : undefined,
6586
6590
  ExpirationTime:
6587
6591
  output.ExpirationTime !== undefined && output.ExpirationTime !== null
6588
- ? new Date(Math.round(output.ExpirationTime * 1000))
6592
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpirationTime)))
6589
6593
  : undefined,
6590
6594
  Name: __expectString(output.Name),
6591
6595
  State: __expectString(output.State),
@@ -6611,26 +6615,26 @@ const deserializeAws_json1_1DescribeReplayResponse = (output: any, context: __Se
6611
6615
  : undefined,
6612
6616
  EventEndTime:
6613
6617
  output.EventEndTime !== undefined && output.EventEndTime !== null
6614
- ? new Date(Math.round(output.EventEndTime * 1000))
6618
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventEndTime)))
6615
6619
  : undefined,
6616
6620
  EventLastReplayedTime:
6617
6621
  output.EventLastReplayedTime !== undefined && output.EventLastReplayedTime !== null
6618
- ? new Date(Math.round(output.EventLastReplayedTime * 1000))
6622
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventLastReplayedTime)))
6619
6623
  : undefined,
6620
6624
  EventSourceArn: __expectString(output.EventSourceArn),
6621
6625
  EventStartTime:
6622
6626
  output.EventStartTime !== undefined && output.EventStartTime !== null
6623
- ? new Date(Math.round(output.EventStartTime * 1000))
6627
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventStartTime)))
6624
6628
  : undefined,
6625
6629
  ReplayArn: __expectString(output.ReplayArn),
6626
6630
  ReplayEndTime:
6627
6631
  output.ReplayEndTime !== undefined && output.ReplayEndTime !== null
6628
- ? new Date(Math.round(output.ReplayEndTime * 1000))
6632
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReplayEndTime)))
6629
6633
  : undefined,
6630
6634
  ReplayName: __expectString(output.ReplayName),
6631
6635
  ReplayStartTime:
6632
6636
  output.ReplayStartTime !== undefined && output.ReplayStartTime !== null
6633
- ? new Date(Math.round(output.ReplayStartTime * 1000))
6637
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReplayStartTime)))
6634
6638
  : undefined,
6635
6639
  State: __expectString(output.State),
6636
6640
  StateReason: __expectString(output.StateReason),
@@ -6681,7 +6685,7 @@ const deserializeAws_json1_1EcsParameters = (output: any, context: __SerdeContex
6681
6685
  output.Tags !== undefined && output.Tags !== null
6682
6686
  ? deserializeAws_json1_1TagList(output.Tags, context)
6683
6687
  : undefined,
6684
- TaskCount: __expectInt(output.TaskCount),
6688
+ TaskCount: __expectInt32(output.TaskCount),
6685
6689
  TaskDefinitionArn: __expectString(output.TaskDefinitionArn),
6686
6690
  } as any;
6687
6691
  };
@@ -6711,11 +6715,11 @@ const deserializeAws_json1_1EventSource = (output: any, context: __SerdeContext)
6711
6715
  CreatedBy: __expectString(output.CreatedBy),
6712
6716
  CreationTime:
6713
6717
  output.CreationTime !== undefined && output.CreationTime !== null
6714
- ? new Date(Math.round(output.CreationTime * 1000))
6718
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6715
6719
  : undefined,
6716
6720
  ExpirationTime:
6717
6721
  output.ExpirationTime !== undefined && output.ExpirationTime !== null
6718
- ? new Date(Math.round(output.ExpirationTime * 1000))
6722
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpirationTime)))
6719
6723
  : undefined,
6720
6724
  Name: __expectString(output.Name),
6721
6725
  State: __expectString(output.State),
@@ -6993,11 +6997,11 @@ const deserializeAws_json1_1PartnerEventSourceAccount = (
6993
6997
  Account: __expectString(output.Account),
6994
6998
  CreationTime:
6995
6999
  output.CreationTime !== undefined && output.CreationTime !== null
6996
- ? new Date(Math.round(output.CreationTime * 1000))
7000
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
6997
7001
  : undefined,
6998
7002
  ExpirationTime:
6999
7003
  output.ExpirationTime !== undefined && output.ExpirationTime !== null
7000
- ? new Date(Math.round(output.ExpirationTime * 1000))
7004
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpirationTime)))
7001
7005
  : undefined,
7002
7006
  State: __expectString(output.State),
7003
7007
  } as any;
@@ -7090,7 +7094,7 @@ const deserializeAws_json1_1PutEventsResponse = (output: any, context: __SerdeCo
7090
7094
  output.Entries !== undefined && output.Entries !== null
7091
7095
  ? deserializeAws_json1_1PutEventsResultEntryList(output.Entries, context)
7092
7096
  : undefined,
7093
- FailedEntryCount: __expectInt(output.FailedEntryCount),
7097
+ FailedEntryCount: __expectInt32(output.FailedEntryCount),
7094
7098
  } as any;
7095
7099
  };
7096
7100
 
@@ -7125,7 +7129,7 @@ const deserializeAws_json1_1PutPartnerEventsResponse = (
7125
7129
  output.Entries !== undefined && output.Entries !== null
7126
7130
  ? deserializeAws_json1_1PutPartnerEventsResultEntryList(output.Entries, context)
7127
7131
  : undefined,
7128
- FailedEntryCount: __expectInt(output.FailedEntryCount),
7132
+ FailedEntryCount: __expectInt32(output.FailedEntryCount),
7129
7133
  } as any;
7130
7134
  };
7131
7135
 
@@ -7166,7 +7170,7 @@ const deserializeAws_json1_1PutTargetsResponse = (output: any, context: __SerdeC
7166
7170
  output.FailedEntries !== undefined && output.FailedEntries !== null
7167
7171
  ? deserializeAws_json1_1PutTargetsResultEntryList(output.FailedEntries, context)
7168
7172
  : undefined,
7169
- FailedEntryCount: __expectInt(output.FailedEntryCount),
7173
+ FailedEntryCount: __expectInt32(output.FailedEntryCount),
7170
7174
  } as any;
7171
7175
  };
7172
7176
 
@@ -7224,7 +7228,7 @@ const deserializeAws_json1_1RemoveTargetsResponse = (output: any, context: __Ser
7224
7228
  output.FailedEntries !== undefined && output.FailedEntries !== null
7225
7229
  ? deserializeAws_json1_1RemoveTargetsResultEntryList(output.FailedEntries, context)
7226
7230
  : undefined,
7227
- FailedEntryCount: __expectInt(output.FailedEntryCount),
7231
+ FailedEntryCount: __expectInt32(output.FailedEntryCount),
7228
7232
  } as any;
7229
7233
  };
7230
7234
 
@@ -7257,25 +7261,25 @@ const deserializeAws_json1_1Replay = (output: any, context: __SerdeContext): Rep
7257
7261
  return {
7258
7262
  EventEndTime:
7259
7263
  output.EventEndTime !== undefined && output.EventEndTime !== null
7260
- ? new Date(Math.round(output.EventEndTime * 1000))
7264
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventEndTime)))
7261
7265
  : undefined,
7262
7266
  EventLastReplayedTime:
7263
7267
  output.EventLastReplayedTime !== undefined && output.EventLastReplayedTime !== null
7264
- ? new Date(Math.round(output.EventLastReplayedTime * 1000))
7268
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventLastReplayedTime)))
7265
7269
  : undefined,
7266
7270
  EventSourceArn: __expectString(output.EventSourceArn),
7267
7271
  EventStartTime:
7268
7272
  output.EventStartTime !== undefined && output.EventStartTime !== null
7269
- ? new Date(Math.round(output.EventStartTime * 1000))
7273
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventStartTime)))
7270
7274
  : undefined,
7271
7275
  ReplayEndTime:
7272
7276
  output.ReplayEndTime !== undefined && output.ReplayEndTime !== null
7273
- ? new Date(Math.round(output.ReplayEndTime * 1000))
7277
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReplayEndTime)))
7274
7278
  : undefined,
7275
7279
  ReplayName: __expectString(output.ReplayName),
7276
7280
  ReplayStartTime:
7277
7281
  output.ReplayStartTime !== undefined && output.ReplayStartTime !== null
7278
- ? new Date(Math.round(output.ReplayStartTime * 1000))
7282
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReplayStartTime)))
7279
7283
  : undefined,
7280
7284
  State: __expectString(output.State),
7281
7285
  StateReason: __expectString(output.StateReason),
@@ -7334,8 +7338,8 @@ const deserializeAws_json1_1ResourceNotFoundException = (
7334
7338
 
7335
7339
  const deserializeAws_json1_1RetryPolicy = (output: any, context: __SerdeContext): RetryPolicy => {
7336
7340
  return {
7337
- MaximumEventAgeInSeconds: __expectInt(output.MaximumEventAgeInSeconds),
7338
- MaximumRetryAttempts: __expectInt(output.MaximumRetryAttempts),
7341
+ MaximumEventAgeInSeconds: __expectInt32(output.MaximumEventAgeInSeconds),
7342
+ MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts),
7339
7343
  } as any;
7340
7344
  };
7341
7345
 
@@ -7463,7 +7467,7 @@ const deserializeAws_json1_1StartReplayResponse = (output: any, context: __Serde
7463
7467
  ReplayArn: __expectString(output.ReplayArn),
7464
7468
  ReplayStartTime:
7465
7469
  output.ReplayStartTime !== undefined && output.ReplayStartTime !== null
7466
- ? new Date(Math.round(output.ReplayStartTime * 1000))
7470
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReplayStartTime)))
7467
7471
  : undefined,
7468
7472
  State: __expectString(output.State),
7469
7473
  StateReason: __expectString(output.StateReason),
@@ -7602,11 +7606,11 @@ const deserializeAws_json1_1UpdateApiDestinationResponse = (
7602
7606
  ApiDestinationState: __expectString(output.ApiDestinationState),
7603
7607
  CreationTime:
7604
7608
  output.CreationTime !== undefined && output.CreationTime !== null
7605
- ? new Date(Math.round(output.CreationTime * 1000))
7609
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
7606
7610
  : undefined,
7607
7611
  LastModifiedTime:
7608
7612
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
7609
- ? new Date(Math.round(output.LastModifiedTime * 1000))
7613
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
7610
7614
  : undefined,
7611
7615
  } as any;
7612
7616
  };
@@ -7616,7 +7620,7 @@ const deserializeAws_json1_1UpdateArchiveResponse = (output: any, context: __Ser
7616
7620
  ArchiveArn: __expectString(output.ArchiveArn),
7617
7621
  CreationTime:
7618
7622
  output.CreationTime !== undefined && output.CreationTime !== null
7619
- ? new Date(Math.round(output.CreationTime * 1000))
7623
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
7620
7624
  : undefined,
7621
7625
  State: __expectString(output.State),
7622
7626
  StateReason: __expectString(output.StateReason),
@@ -7632,15 +7636,15 @@ const deserializeAws_json1_1UpdateConnectionResponse = (
7632
7636
  ConnectionState: __expectString(output.ConnectionState),
7633
7637
  CreationTime:
7634
7638
  output.CreationTime !== undefined && output.CreationTime !== null
7635
- ? new Date(Math.round(output.CreationTime * 1000))
7639
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
7636
7640
  : undefined,
7637
7641
  LastAuthorizedTime:
7638
7642
  output.LastAuthorizedTime !== undefined && output.LastAuthorizedTime !== null
7639
- ? new Date(Math.round(output.LastAuthorizedTime * 1000))
7643
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAuthorizedTime)))
7640
7644
  : undefined,
7641
7645
  LastModifiedTime:
7642
7646
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
7643
- ? new Date(Math.round(output.LastModifiedTime * 1000))
7647
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
7644
7648
  : undefined,
7645
7649
  } as any;
7646
7650
  };