@aws-sdk/client-cloudtrail 3.245.0 → 3.252.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.
@@ -3564,19 +3564,19 @@ const serializeAws_json1_1ListImportsRequest = (input, context) => {
3564
3564
  };
3565
3565
  const serializeAws_json1_1ListPublicKeysRequest = (input, context) => {
3566
3566
  return {
3567
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3567
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3568
3568
  ...(input.NextToken != null && { NextToken: input.NextToken }),
3569
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3569
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3570
3570
  };
3571
3571
  };
3572
3572
  const serializeAws_json1_1ListQueriesRequest = (input, context) => {
3573
3573
  return {
3574
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3574
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3575
3575
  ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3576
3576
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3577
3577
  ...(input.NextToken != null && { NextToken: input.NextToken }),
3578
3578
  ...(input.QueryStatus != null && { QueryStatus: input.QueryStatus }),
3579
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3579
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3580
3580
  };
3581
3581
  };
3582
3582
  const serializeAws_json1_1ListTagsRequest = (input, context) => {
@@ -3607,14 +3607,14 @@ const serializeAws_json1_1LookupAttributesList = (input, context) => {
3607
3607
  };
3608
3608
  const serializeAws_json1_1LookupEventsRequest = (input, context) => {
3609
3609
  return {
3610
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3610
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3611
3611
  ...(input.EventCategory != null && { EventCategory: input.EventCategory }),
3612
3612
  ...(input.LookupAttributes != null && {
3613
3613
  LookupAttributes: serializeAws_json1_1LookupAttributesList(input.LookupAttributes, context),
3614
3614
  }),
3615
3615
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3616
3616
  ...(input.NextToken != null && { NextToken: input.NextToken }),
3617
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3617
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3618
3618
  };
3619
3619
  };
3620
3620
  const serializeAws_json1_1Operator = (input, context) => {
@@ -3678,10 +3678,12 @@ const serializeAws_json1_1StartImportRequest = (input, context) => {
3678
3678
  ...(input.Destinations != null && {
3679
3679
  Destinations: serializeAws_json1_1ImportDestinations(input.Destinations, context),
3680
3680
  }),
3681
- ...(input.EndEventTime != null && { EndEventTime: Math.round(input.EndEventTime.getTime() / 1000) }),
3681
+ ...(input.EndEventTime != null && { EndEventTime: Math.round(input.EndEventTime.getTime() / 1000).toString() }),
3682
3682
  ...(input.ImportId != null && { ImportId: input.ImportId }),
3683
3683
  ...(input.ImportSource != null && { ImportSource: serializeAws_json1_1ImportSource(input.ImportSource, context) }),
3684
- ...(input.StartEventTime != null && { StartEventTime: Math.round(input.StartEventTime.getTime() / 1000) }),
3684
+ ...(input.StartEventTime != null && {
3685
+ StartEventTime: Math.round(input.StartEventTime.getTime() / 1000).toString(),
3686
+ }),
3685
3687
  };
3686
3688
  };
3687
3689
  const serializeAws_json1_1StartLoggingRequest = (input, context) => {
@@ -3484,19 +3484,19 @@ const serializeAws_json1_1ListImportsRequest = (input, context) => {
3484
3484
  };
3485
3485
  const serializeAws_json1_1ListPublicKeysRequest = (input, context) => {
3486
3486
  return {
3487
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3487
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3488
3488
  ...(input.NextToken != null && { NextToken: input.NextToken }),
3489
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3489
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3490
3490
  };
3491
3491
  };
3492
3492
  const serializeAws_json1_1ListQueriesRequest = (input, context) => {
3493
3493
  return {
3494
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3494
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3495
3495
  ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3496
3496
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3497
3497
  ...(input.NextToken != null && { NextToken: input.NextToken }),
3498
3498
  ...(input.QueryStatus != null && { QueryStatus: input.QueryStatus }),
3499
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3499
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3500
3500
  };
3501
3501
  };
3502
3502
  const serializeAws_json1_1ListTagsRequest = (input, context) => {
@@ -3527,14 +3527,14 @@ const serializeAws_json1_1LookupAttributesList = (input, context) => {
3527
3527
  };
3528
3528
  const serializeAws_json1_1LookupEventsRequest = (input, context) => {
3529
3529
  return {
3530
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3530
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3531
3531
  ...(input.EventCategory != null && { EventCategory: input.EventCategory }),
3532
3532
  ...(input.LookupAttributes != null && {
3533
3533
  LookupAttributes: serializeAws_json1_1LookupAttributesList(input.LookupAttributes, context),
3534
3534
  }),
3535
3535
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3536
3536
  ...(input.NextToken != null && { NextToken: input.NextToken }),
3537
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3537
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3538
3538
  };
3539
3539
  };
3540
3540
  const serializeAws_json1_1Operator = (input, context) => {
@@ -3598,10 +3598,12 @@ const serializeAws_json1_1StartImportRequest = (input, context) => {
3598
3598
  ...(input.Destinations != null && {
3599
3599
  Destinations: serializeAws_json1_1ImportDestinations(input.Destinations, context),
3600
3600
  }),
3601
- ...(input.EndEventTime != null && { EndEventTime: Math.round(input.EndEventTime.getTime() / 1000) }),
3601
+ ...(input.EndEventTime != null && { EndEventTime: Math.round(input.EndEventTime.getTime() / 1000).toString() }),
3602
3602
  ...(input.ImportId != null && { ImportId: input.ImportId }),
3603
3603
  ...(input.ImportSource != null && { ImportSource: serializeAws_json1_1ImportSource(input.ImportSource, context) }),
3604
- ...(input.StartEventTime != null && { StartEventTime: Math.round(input.StartEventTime.getTime() / 1000) }),
3604
+ ...(input.StartEventTime != null && {
3605
+ StartEventTime: Math.round(input.StartEventTime.getTime() / 1000).toString(),
3606
+ }),
3605
3607
  };
3606
3608
  };
3607
3609
  const serializeAws_json1_1StartLoggingRequest = (input, context) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudtrail",
3
3
  "description": "AWS SDK for JavaScript Cloudtrail Client for Node.js, Browser and React Native",
4
- "version": "3.245.0",
4
+ "version": "3.252.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -11,7 +11,7 @@
11
11
  "build:types": "tsc -p tsconfig.types.json",
12
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
13
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
- "generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/cloudtrail.json --keepFiles)"
14
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo cloudtrail"
15
15
  },
16
16
  "main": "./dist-cjs/index.js",
17
17
  "types": "./dist-types/index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "2.0.0",
22
22
  "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.245.0",
23
+ "@aws-sdk/client-sts": "3.252.0",
24
24
  "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.245.0",
25
+ "@aws-sdk/credential-provider-node": "3.252.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.226.0",
27
27
  "@aws-sdk/hash-node": "3.226.0",
28
28
  "@aws-sdk/invalid-dependency": "3.226.0",