@aws-sdk/client-cloudtrail 3.121.0 → 3.130.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.
@@ -3236,14 +3236,12 @@ var deserializeAws_json1_1UnsupportedOperationExceptionResponse = function (pars
3236
3236
  });
3237
3237
  }); };
3238
3238
  var serializeAws_json1_1AddTagsRequest = function (input, context) {
3239
- return __assign(__assign({}, (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId })), (input.TagsList !== undefined &&
3240
- input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }));
3239
+ return __assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }));
3241
3240
  };
3242
3241
  var serializeAws_json1_1AdvancedEventSelector = function (input, context) {
3243
- return __assign(__assign({}, (input.FieldSelectors !== undefined &&
3244
- input.FieldSelectors !== null && {
3242
+ return __assign(__assign({}, (input.FieldSelectors != null && {
3245
3243
  FieldSelectors: serializeAws_json1_1AdvancedFieldSelectors(input.FieldSelectors, context),
3246
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
3244
+ })), (input.Name != null && { Name: input.Name }));
3247
3245
  };
3248
3246
  var serializeAws_json1_1AdvancedEventSelectors = function (input, context) {
3249
3247
  return input
@@ -3256,13 +3254,7 @@ var serializeAws_json1_1AdvancedEventSelectors = function (input, context) {
3256
3254
  });
3257
3255
  };
3258
3256
  var serializeAws_json1_1AdvancedFieldSelector = function (input, context) {
3259
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndsWith !== undefined &&
3260
- input.EndsWith !== null && { EndsWith: serializeAws_json1_1Operator(input.EndsWith, context) })), (input.Equals !== undefined &&
3261
- input.Equals !== null && { Equals: serializeAws_json1_1Operator(input.Equals, context) })), (input.Field !== undefined && input.Field !== null && { Field: input.Field })), (input.NotEndsWith !== undefined &&
3262
- input.NotEndsWith !== null && { NotEndsWith: serializeAws_json1_1Operator(input.NotEndsWith, context) })), (input.NotEquals !== undefined &&
3263
- input.NotEquals !== null && { NotEquals: serializeAws_json1_1Operator(input.NotEquals, context) })), (input.NotStartsWith !== undefined &&
3264
- input.NotStartsWith !== null && { NotStartsWith: serializeAws_json1_1Operator(input.NotStartsWith, context) })), (input.StartsWith !== undefined &&
3265
- input.StartsWith !== null && { StartsWith: serializeAws_json1_1Operator(input.StartsWith, context) }));
3257
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndsWith != null && { EndsWith: serializeAws_json1_1Operator(input.EndsWith, context) })), (input.Equals != null && { Equals: serializeAws_json1_1Operator(input.Equals, context) })), (input.Field != null && { Field: input.Field })), (input.NotEndsWith != null && { NotEndsWith: serializeAws_json1_1Operator(input.NotEndsWith, context) })), (input.NotEquals != null && { NotEquals: serializeAws_json1_1Operator(input.NotEquals, context) })), (input.NotStartsWith != null && { NotStartsWith: serializeAws_json1_1Operator(input.NotStartsWith, context) })), (input.StartsWith != null && { StartsWith: serializeAws_json1_1Operator(input.StartsWith, context) }));
3266
3258
  };
3267
3259
  var serializeAws_json1_1AdvancedFieldSelectors = function (input, context) {
3268
3260
  return input
@@ -3275,35 +3267,20 @@ var serializeAws_json1_1AdvancedFieldSelectors = function (input, context) {
3275
3267
  });
3276
3268
  };
3277
3269
  var serializeAws_json1_1CancelQueryRequest = function (input, context) {
3278
- return __assign(__assign({}, (input.EventDataStore !== undefined &&
3279
- input.EventDataStore !== null && { EventDataStore: input.EventDataStore })), (input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }));
3270
+ return __assign(__assign({}, (input.EventDataStore != null && { EventDataStore: input.EventDataStore })), (input.QueryId != null && { QueryId: input.QueryId }));
3280
3271
  };
3281
3272
  var serializeAws_json1_1CreateEventDataStoreRequest = function (input, context) {
3282
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdvancedEventSelectors !== undefined &&
3283
- input.AdvancedEventSelectors !== null && {
3273
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdvancedEventSelectors != null && {
3284
3274
  AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
3285
- })), (input.MultiRegionEnabled !== undefined &&
3286
- input.MultiRegionEnabled !== null && { MultiRegionEnabled: input.MultiRegionEnabled })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OrganizationEnabled !== undefined &&
3287
- input.OrganizationEnabled !== null && { OrganizationEnabled: input.OrganizationEnabled })), (input.RetentionPeriod !== undefined &&
3288
- input.RetentionPeriod !== null && { RetentionPeriod: input.RetentionPeriod })), (input.TagsList !== undefined &&
3289
- input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) })), (input.TerminationProtectionEnabled !== undefined &&
3290
- input.TerminationProtectionEnabled !== null && {
3275
+ })), (input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled })), (input.Name != null && { Name: input.Name })), (input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled })), (input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod })), (input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) })), (input.TerminationProtectionEnabled != null && {
3291
3276
  TerminationProtectionEnabled: input.TerminationProtectionEnabled,
3292
3277
  }));
3293
3278
  };
3294
3279
  var serializeAws_json1_1CreateTrailRequest = function (input, context) {
3295
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogsLogGroupArn !== undefined &&
3296
- input.CloudWatchLogsLogGroupArn !== null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn })), (input.CloudWatchLogsRoleArn !== undefined &&
3297
- input.CloudWatchLogsRoleArn !== null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn })), (input.EnableLogFileValidation !== undefined &&
3298
- input.EnableLogFileValidation !== null && { EnableLogFileValidation: input.EnableLogFileValidation })), (input.IncludeGlobalServiceEvents !== undefined &&
3299
- input.IncludeGlobalServiceEvents !== null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents })), (input.IsMultiRegionTrail !== undefined &&
3300
- input.IsMultiRegionTrail !== null && { IsMultiRegionTrail: input.IsMultiRegionTrail })), (input.IsOrganizationTrail !== undefined &&
3301
- input.IsOrganizationTrail !== null && { IsOrganizationTrail: input.IsOrganizationTrail })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName })), (input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix })), (input.SnsTopicName !== undefined && input.SnsTopicName !== null && { SnsTopicName: input.SnsTopicName })), (input.TagsList !== undefined &&
3302
- input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }));
3280
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn })), (input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn })), (input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation })), (input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents })), (input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail })), (input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Name != null && { Name: input.Name })), (input.S3BucketName != null && { S3BucketName: input.S3BucketName })), (input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix })), (input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName })), (input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }));
3303
3281
  };
3304
3282
  var serializeAws_json1_1DataResource = function (input, context) {
3305
- return __assign(__assign({}, (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Values !== undefined &&
3306
- input.Values !== null && { Values: serializeAws_json1_1DataResourceValues(input.Values, context) }));
3283
+ return __assign(__assign({}, (input.Type != null && { Type: input.Type })), (input.Values != null && { Values: serializeAws_json1_1DataResourceValues(input.Values, context) }));
3307
3284
  };
3308
3285
  var serializeAws_json1_1DataResources = function (input, context) {
3309
3286
  return input
@@ -3326,32 +3303,25 @@ var serializeAws_json1_1DataResourceValues = function (input, context) {
3326
3303
  });
3327
3304
  };
3328
3305
  var serializeAws_json1_1DeleteEventDataStoreRequest = function (input, context) {
3329
- return __assign({}, (input.EventDataStore !== undefined &&
3330
- input.EventDataStore !== null && { EventDataStore: input.EventDataStore }));
3306
+ return __assign({}, (input.EventDataStore != null && { EventDataStore: input.EventDataStore }));
3331
3307
  };
3332
3308
  var serializeAws_json1_1DeleteTrailRequest = function (input, context) {
3333
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
3309
+ return __assign({}, (input.Name != null && { Name: input.Name }));
3334
3310
  };
3335
3311
  var serializeAws_json1_1DescribeQueryRequest = function (input, context) {
3336
- return __assign(__assign({}, (input.EventDataStore !== undefined &&
3337
- input.EventDataStore !== null && { EventDataStore: input.EventDataStore })), (input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }));
3312
+ return __assign(__assign({}, (input.EventDataStore != null && { EventDataStore: input.EventDataStore })), (input.QueryId != null && { QueryId: input.QueryId }));
3338
3313
  };
3339
3314
  var serializeAws_json1_1DescribeTrailsRequest = function (input, context) {
3340
- return __assign(__assign({}, (input.includeShadowTrails !== undefined &&
3341
- input.includeShadowTrails !== null && { includeShadowTrails: input.includeShadowTrails })), (input.trailNameList !== undefined &&
3342
- input.trailNameList !== null && {
3315
+ return __assign(__assign({}, (input.includeShadowTrails != null && { includeShadowTrails: input.includeShadowTrails })), (input.trailNameList != null && {
3343
3316
  trailNameList: serializeAws_json1_1TrailNameList(input.trailNameList, context),
3344
3317
  }));
3345
3318
  };
3346
3319
  var serializeAws_json1_1EventSelector = function (input, context) {
3347
- return __assign(__assign(__assign(__assign({}, (input.DataResources !== undefined &&
3348
- input.DataResources !== null && {
3320
+ return __assign(__assign(__assign(__assign({}, (input.DataResources != null && {
3349
3321
  DataResources: serializeAws_json1_1DataResources(input.DataResources, context),
3350
- })), (input.ExcludeManagementEventSources !== undefined &&
3351
- input.ExcludeManagementEventSources !== null && {
3322
+ })), (input.ExcludeManagementEventSources != null && {
3352
3323
  ExcludeManagementEventSources: serializeAws_json1_1ExcludeManagementEventSources(input.ExcludeManagementEventSources, context),
3353
- })), (input.IncludeManagementEvents !== undefined &&
3354
- input.IncludeManagementEvents !== null && { IncludeManagementEvents: input.IncludeManagementEvents })), (input.ReadWriteType !== undefined && input.ReadWriteType !== null && { ReadWriteType: input.ReadWriteType }));
3324
+ })), (input.IncludeManagementEvents != null && { IncludeManagementEvents: input.IncludeManagementEvents })), (input.ReadWriteType != null && { ReadWriteType: input.ReadWriteType }));
3355
3325
  };
3356
3326
  var serializeAws_json1_1EventSelectors = function (input, context) {
3357
3327
  return input
@@ -3374,28 +3344,25 @@ var serializeAws_json1_1ExcludeManagementEventSources = function (input, context
3374
3344
  });
3375
3345
  };
3376
3346
  var serializeAws_json1_1GetEventDataStoreRequest = function (input, context) {
3377
- return __assign({}, (input.EventDataStore !== undefined &&
3378
- input.EventDataStore !== null && { EventDataStore: input.EventDataStore }));
3347
+ return __assign({}, (input.EventDataStore != null && { EventDataStore: input.EventDataStore }));
3379
3348
  };
3380
3349
  var serializeAws_json1_1GetEventSelectorsRequest = function (input, context) {
3381
- return __assign({}, (input.TrailName !== undefined && input.TrailName !== null && { TrailName: input.TrailName }));
3350
+ return __assign({}, (input.TrailName != null && { TrailName: input.TrailName }));
3382
3351
  };
3383
3352
  var serializeAws_json1_1GetInsightSelectorsRequest = function (input, context) {
3384
- return __assign({}, (input.TrailName !== undefined && input.TrailName !== null && { TrailName: input.TrailName }));
3353
+ return __assign({}, (input.TrailName != null && { TrailName: input.TrailName }));
3385
3354
  };
3386
3355
  var serializeAws_json1_1GetQueryResultsRequest = function (input, context) {
3387
- return __assign(__assign(__assign(__assign({}, (input.EventDataStore !== undefined &&
3388
- input.EventDataStore !== null && { EventDataStore: input.EventDataStore })), (input.MaxQueryResults !== undefined &&
3389
- input.MaxQueryResults !== null && { MaxQueryResults: input.MaxQueryResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }));
3356
+ return __assign(__assign(__assign(__assign({}, (input.EventDataStore != null && { EventDataStore: input.EventDataStore })), (input.MaxQueryResults != null && { MaxQueryResults: input.MaxQueryResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.QueryId != null && { QueryId: input.QueryId }));
3390
3357
  };
3391
3358
  var serializeAws_json1_1GetTrailRequest = function (input, context) {
3392
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
3359
+ return __assign({}, (input.Name != null && { Name: input.Name }));
3393
3360
  };
3394
3361
  var serializeAws_json1_1GetTrailStatusRequest = function (input, context) {
3395
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
3362
+ return __assign({}, (input.Name != null && { Name: input.Name }));
3396
3363
  };
3397
3364
  var serializeAws_json1_1InsightSelector = function (input, context) {
3398
- return __assign({}, (input.InsightType !== undefined && input.InsightType !== null && { InsightType: input.InsightType }));
3365
+ return __assign({}, (input.InsightType != null && { InsightType: input.InsightType }));
3399
3366
  };
3400
3367
  var serializeAws_json1_1InsightSelectors = function (input, context) {
3401
3368
  return input
@@ -3408,31 +3375,24 @@ var serializeAws_json1_1InsightSelectors = function (input, context) {
3408
3375
  });
3409
3376
  };
3410
3377
  var serializeAws_json1_1ListEventDataStoresRequest = function (input, context) {
3411
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
3378
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
3412
3379
  };
3413
3380
  var serializeAws_json1_1ListPublicKeysRequest = function (input, context) {
3414
- return __assign(__assign(__assign({}, (input.EndTime !== undefined &&
3415
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTime !== undefined &&
3416
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
3381
+ return __assign(__assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
3417
3382
  };
3418
3383
  var serializeAws_json1_1ListQueriesRequest = function (input, context) {
3419
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime !== undefined &&
3420
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.EventDataStore !== undefined &&
3421
- input.EventDataStore !== null && { EventDataStore: input.EventDataStore })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.QueryStatus !== undefined && input.QueryStatus !== null && { QueryStatus: input.QueryStatus })), (input.StartTime !== undefined &&
3422
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
3384
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.EventDataStore != null && { EventDataStore: input.EventDataStore })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.QueryStatus != null && { QueryStatus: input.QueryStatus })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
3423
3385
  };
3424
3386
  var serializeAws_json1_1ListTagsRequest = function (input, context) {
3425
- return __assign(__assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceIdList !== undefined &&
3426
- input.ResourceIdList !== null && {
3387
+ return __assign(__assign({}, (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceIdList != null && {
3427
3388
  ResourceIdList: serializeAws_json1_1ResourceIdList(input.ResourceIdList, context),
3428
3389
  }));
3429
3390
  };
3430
3391
  var serializeAws_json1_1ListTrailsRequest = function (input, context) {
3431
- return __assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
3392
+ return __assign({}, (input.NextToken != null && { NextToken: input.NextToken }));
3432
3393
  };
3433
3394
  var serializeAws_json1_1LookupAttribute = function (input, context) {
3434
- return __assign(__assign({}, (input.AttributeKey !== undefined && input.AttributeKey !== null && { AttributeKey: input.AttributeKey })), (input.AttributeValue !== undefined &&
3435
- input.AttributeValue !== null && { AttributeValue: input.AttributeValue }));
3395
+ return __assign(__assign({}, (input.AttributeKey != null && { AttributeKey: input.AttributeKey })), (input.AttributeValue != null && { AttributeValue: input.AttributeValue }));
3436
3396
  };
3437
3397
  var serializeAws_json1_1LookupAttributesList = function (input, context) {
3438
3398
  return input
@@ -3445,12 +3405,9 @@ var serializeAws_json1_1LookupAttributesList = function (input, context) {
3445
3405
  });
3446
3406
  };
3447
3407
  var serializeAws_json1_1LookupEventsRequest = function (input, context) {
3448
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime !== undefined &&
3449
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.EventCategory !== undefined && input.EventCategory !== null && { EventCategory: input.EventCategory })), (input.LookupAttributes !== undefined &&
3450
- input.LookupAttributes !== null && {
3408
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.EventCategory != null && { EventCategory: input.EventCategory })), (input.LookupAttributes != null && {
3451
3409
  LookupAttributes: serializeAws_json1_1LookupAttributesList(input.LookupAttributes, context),
3452
- })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTime !== undefined &&
3453
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
3410
+ })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
3454
3411
  };
3455
3412
  var serializeAws_json1_1Operator = function (input, context) {
3456
3413
  return input
@@ -3463,23 +3420,19 @@ var serializeAws_json1_1Operator = function (input, context) {
3463
3420
  });
3464
3421
  };
3465
3422
  var serializeAws_json1_1PutEventSelectorsRequest = function (input, context) {
3466
- return __assign(__assign(__assign({}, (input.AdvancedEventSelectors !== undefined &&
3467
- input.AdvancedEventSelectors !== null && {
3423
+ return __assign(__assign(__assign({}, (input.AdvancedEventSelectors != null && {
3468
3424
  AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
3469
- })), (input.EventSelectors !== undefined &&
3470
- input.EventSelectors !== null && {
3425
+ })), (input.EventSelectors != null && {
3471
3426
  EventSelectors: serializeAws_json1_1EventSelectors(input.EventSelectors, context),
3472
- })), (input.TrailName !== undefined && input.TrailName !== null && { TrailName: input.TrailName }));
3427
+ })), (input.TrailName != null && { TrailName: input.TrailName }));
3473
3428
  };
3474
3429
  var serializeAws_json1_1PutInsightSelectorsRequest = function (input, context) {
3475
- return __assign(__assign({}, (input.InsightSelectors !== undefined &&
3476
- input.InsightSelectors !== null && {
3430
+ return __assign(__assign({}, (input.InsightSelectors != null && {
3477
3431
  InsightSelectors: serializeAws_json1_1InsightSelectors(input.InsightSelectors, context),
3478
- })), (input.TrailName !== undefined && input.TrailName !== null && { TrailName: input.TrailName }));
3432
+ })), (input.TrailName != null && { TrailName: input.TrailName }));
3479
3433
  };
3480
3434
  var serializeAws_json1_1RemoveTagsRequest = function (input, context) {
3481
- return __assign(__assign({}, (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId })), (input.TagsList !== undefined &&
3482
- input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }));
3435
+ return __assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.TagsList != null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }));
3483
3436
  };
3484
3437
  var serializeAws_json1_1ResourceIdList = function (input, context) {
3485
3438
  return input
@@ -3492,21 +3445,19 @@ var serializeAws_json1_1ResourceIdList = function (input, context) {
3492
3445
  });
3493
3446
  };
3494
3447
  var serializeAws_json1_1RestoreEventDataStoreRequest = function (input, context) {
3495
- return __assign({}, (input.EventDataStore !== undefined &&
3496
- input.EventDataStore !== null && { EventDataStore: input.EventDataStore }));
3448
+ return __assign({}, (input.EventDataStore != null && { EventDataStore: input.EventDataStore }));
3497
3449
  };
3498
3450
  var serializeAws_json1_1StartLoggingRequest = function (input, context) {
3499
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
3451
+ return __assign({}, (input.Name != null && { Name: input.Name }));
3500
3452
  };
3501
3453
  var serializeAws_json1_1StartQueryRequest = function (input, context) {
3502
- return __assign({}, (input.QueryStatement !== undefined &&
3503
- input.QueryStatement !== null && { QueryStatement: input.QueryStatement }));
3454
+ return __assign({}, (input.QueryStatement != null && { QueryStatement: input.QueryStatement }));
3504
3455
  };
3505
3456
  var serializeAws_json1_1StopLoggingRequest = function (input, context) {
3506
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
3457
+ return __assign({}, (input.Name != null && { Name: input.Name }));
3507
3458
  };
3508
3459
  var serializeAws_json1_1Tag = function (input, context) {
3509
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
3460
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
3510
3461
  };
3511
3462
  var serializeAws_json1_1TagsList = function (input, context) {
3512
3463
  return input
@@ -3529,33 +3480,21 @@ var serializeAws_json1_1TrailNameList = function (input, context) {
3529
3480
  });
3530
3481
  };
3531
3482
  var serializeAws_json1_1UpdateEventDataStoreRequest = function (input, context) {
3532
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdvancedEventSelectors !== undefined &&
3533
- input.AdvancedEventSelectors !== null && {
3483
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdvancedEventSelectors != null && {
3534
3484
  AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
3535
- })), (input.EventDataStore !== undefined &&
3536
- input.EventDataStore !== null && { EventDataStore: input.EventDataStore })), (input.MultiRegionEnabled !== undefined &&
3537
- input.MultiRegionEnabled !== null && { MultiRegionEnabled: input.MultiRegionEnabled })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OrganizationEnabled !== undefined &&
3538
- input.OrganizationEnabled !== null && { OrganizationEnabled: input.OrganizationEnabled })), (input.RetentionPeriod !== undefined &&
3539
- input.RetentionPeriod !== null && { RetentionPeriod: input.RetentionPeriod })), (input.TerminationProtectionEnabled !== undefined &&
3540
- input.TerminationProtectionEnabled !== null && {
3485
+ })), (input.EventDataStore != null && { EventDataStore: input.EventDataStore })), (input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled })), (input.Name != null && { Name: input.Name })), (input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled })), (input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod })), (input.TerminationProtectionEnabled != null && {
3541
3486
  TerminationProtectionEnabled: input.TerminationProtectionEnabled,
3542
3487
  }));
3543
3488
  };
3544
3489
  var serializeAws_json1_1UpdateTrailRequest = function (input, context) {
3545
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogsLogGroupArn !== undefined &&
3546
- input.CloudWatchLogsLogGroupArn !== null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn })), (input.CloudWatchLogsRoleArn !== undefined &&
3547
- input.CloudWatchLogsRoleArn !== null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn })), (input.EnableLogFileValidation !== undefined &&
3548
- input.EnableLogFileValidation !== null && { EnableLogFileValidation: input.EnableLogFileValidation })), (input.IncludeGlobalServiceEvents !== undefined &&
3549
- input.IncludeGlobalServiceEvents !== null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents })), (input.IsMultiRegionTrail !== undefined &&
3550
- input.IsMultiRegionTrail !== null && { IsMultiRegionTrail: input.IsMultiRegionTrail })), (input.IsOrganizationTrail !== undefined &&
3551
- input.IsOrganizationTrail !== null && { IsOrganizationTrail: input.IsOrganizationTrail })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName })), (input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix })), (input.SnsTopicName !== undefined && input.SnsTopicName !== null && { SnsTopicName: input.SnsTopicName }));
3490
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn })), (input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn })), (input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation })), (input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents })), (input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail })), (input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Name != null && { Name: input.Name })), (input.S3BucketName != null && { S3BucketName: input.S3BucketName })), (input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix })), (input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }));
3552
3491
  };
3553
3492
  var deserializeAws_json1_1AddTagsResponse = function (output, context) {
3554
3493
  return {};
3555
3494
  };
3556
3495
  var deserializeAws_json1_1AdvancedEventSelector = function (output, context) {
3557
3496
  return {
3558
- FieldSelectors: output.FieldSelectors !== undefined && output.FieldSelectors !== null
3497
+ FieldSelectors: output.FieldSelectors != null
3559
3498
  ? deserializeAws_json1_1AdvancedFieldSelectors(output.FieldSelectors, context)
3560
3499
  : undefined,
3561
3500
  Name: __expectString(output.Name),
@@ -3574,25 +3513,13 @@ var deserializeAws_json1_1AdvancedEventSelectors = function (output, context) {
3574
3513
  };
3575
3514
  var deserializeAws_json1_1AdvancedFieldSelector = function (output, context) {
3576
3515
  return {
3577
- EndsWith: output.EndsWith !== undefined && output.EndsWith !== null
3578
- ? deserializeAws_json1_1Operator(output.EndsWith, context)
3579
- : undefined,
3580
- Equals: output.Equals !== undefined && output.Equals !== null
3581
- ? deserializeAws_json1_1Operator(output.Equals, context)
3582
- : undefined,
3516
+ EndsWith: output.EndsWith != null ? deserializeAws_json1_1Operator(output.EndsWith, context) : undefined,
3517
+ Equals: output.Equals != null ? deserializeAws_json1_1Operator(output.Equals, context) : undefined,
3583
3518
  Field: __expectString(output.Field),
3584
- NotEndsWith: output.NotEndsWith !== undefined && output.NotEndsWith !== null
3585
- ? deserializeAws_json1_1Operator(output.NotEndsWith, context)
3586
- : undefined,
3587
- NotEquals: output.NotEquals !== undefined && output.NotEquals !== null
3588
- ? deserializeAws_json1_1Operator(output.NotEquals, context)
3589
- : undefined,
3590
- NotStartsWith: output.NotStartsWith !== undefined && output.NotStartsWith !== null
3591
- ? deserializeAws_json1_1Operator(output.NotStartsWith, context)
3592
- : undefined,
3593
- StartsWith: output.StartsWith !== undefined && output.StartsWith !== null
3594
- ? deserializeAws_json1_1Operator(output.StartsWith, context)
3595
- : undefined,
3519
+ NotEndsWith: output.NotEndsWith != null ? deserializeAws_json1_1Operator(output.NotEndsWith, context) : undefined,
3520
+ NotEquals: output.NotEquals != null ? deserializeAws_json1_1Operator(output.NotEquals, context) : undefined,
3521
+ NotStartsWith: output.NotStartsWith != null ? deserializeAws_json1_1Operator(output.NotStartsWith, context) : undefined,
3522
+ StartsWith: output.StartsWith != null ? deserializeAws_json1_1Operator(output.StartsWith, context) : undefined,
3596
3523
  };
3597
3524
  };
3598
3525
  var deserializeAws_json1_1AdvancedFieldSelectors = function (output, context) {
@@ -3639,10 +3566,10 @@ var deserializeAws_json1_1ConflictException = function (output, context) {
3639
3566
  };
3640
3567
  var deserializeAws_json1_1CreateEventDataStoreResponse = function (output, context) {
3641
3568
  return {
3642
- AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
3569
+ AdvancedEventSelectors: output.AdvancedEventSelectors != null
3643
3570
  ? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
3644
3571
  : undefined,
3645
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
3572
+ CreatedTimestamp: output.CreatedTimestamp != null
3646
3573
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
3647
3574
  : undefined,
3648
3575
  EventDataStoreArn: __expectString(output.EventDataStoreArn),
@@ -3651,11 +3578,9 @@ var deserializeAws_json1_1CreateEventDataStoreResponse = function (output, conte
3651
3578
  OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
3652
3579
  RetentionPeriod: __expectInt32(output.RetentionPeriod),
3653
3580
  Status: __expectString(output.Status),
3654
- TagsList: output.TagsList !== undefined && output.TagsList !== null
3655
- ? deserializeAws_json1_1TagsList(output.TagsList, context)
3656
- : undefined,
3581
+ TagsList: output.TagsList != null ? deserializeAws_json1_1TagsList(output.TagsList, context) : undefined,
3657
3582
  TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
3658
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
3583
+ UpdatedTimestamp: output.UpdatedTimestamp != null
3659
3584
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
3660
3585
  : undefined,
3661
3586
  };
@@ -3680,9 +3605,7 @@ var deserializeAws_json1_1CreateTrailResponse = function (output, context) {
3680
3605
  var deserializeAws_json1_1DataResource = function (output, context) {
3681
3606
  return {
3682
3607
  Type: __expectString(output.Type),
3683
- Values: output.Values !== undefined && output.Values !== null
3684
- ? deserializeAws_json1_1DataResourceValues(output.Values, context)
3685
- : undefined,
3608
+ Values: output.Values != null ? deserializeAws_json1_1DataResourceValues(output.Values, context) : undefined,
3686
3609
  };
3687
3610
  };
3688
3611
  var deserializeAws_json1_1DataResources = function (output, context) {
@@ -3717,7 +3640,7 @@ var deserializeAws_json1_1DescribeQueryResponse = function (output, context) {
3717
3640
  return {
3718
3641
  ErrorMessage: __expectString(output.ErrorMessage),
3719
3642
  QueryId: __expectString(output.QueryId),
3720
- QueryStatistics: output.QueryStatistics !== undefined && output.QueryStatistics !== null
3643
+ QueryStatistics: output.QueryStatistics != null
3721
3644
  ? deserializeAws_json1_1QueryStatisticsForDescribeQuery(output.QueryStatistics, context)
3722
3645
  : undefined,
3723
3646
  QueryStatus: __expectString(output.QueryStatus),
@@ -3726,9 +3649,7 @@ var deserializeAws_json1_1DescribeQueryResponse = function (output, context) {
3726
3649
  };
3727
3650
  var deserializeAws_json1_1DescribeTrailsResponse = function (output, context) {
3728
3651
  return {
3729
- trailList: output.trailList !== undefined && output.trailList !== null
3730
- ? deserializeAws_json1_1TrailList(output.trailList, context)
3731
- : undefined,
3652
+ trailList: output.trailList != null ? deserializeAws_json1_1TrailList(output.trailList, context) : undefined,
3732
3653
  };
3733
3654
  };
3734
3655
  var deserializeAws_json1_1Event = function (output, context) {
@@ -3738,22 +3659,18 @@ var deserializeAws_json1_1Event = function (output, context) {
3738
3659
  EventId: __expectString(output.EventId),
3739
3660
  EventName: __expectString(output.EventName),
3740
3661
  EventSource: __expectString(output.EventSource),
3741
- EventTime: output.EventTime !== undefined && output.EventTime !== null
3742
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventTime)))
3743
- : undefined,
3662
+ EventTime: output.EventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventTime))) : undefined,
3744
3663
  ReadOnly: __expectString(output.ReadOnly),
3745
- Resources: output.Resources !== undefined && output.Resources !== null
3746
- ? deserializeAws_json1_1ResourceList(output.Resources, context)
3747
- : undefined,
3664
+ Resources: output.Resources != null ? deserializeAws_json1_1ResourceList(output.Resources, context) : undefined,
3748
3665
  Username: __expectString(output.Username),
3749
3666
  };
3750
3667
  };
3751
3668
  var deserializeAws_json1_1EventDataStore = function (output, context) {
3752
3669
  return {
3753
- AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
3670
+ AdvancedEventSelectors: output.AdvancedEventSelectors != null
3754
3671
  ? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
3755
3672
  : undefined,
3756
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
3673
+ CreatedTimestamp: output.CreatedTimestamp != null
3757
3674
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
3758
3675
  : undefined,
3759
3676
  EventDataStoreArn: __expectString(output.EventDataStoreArn),
@@ -3763,7 +3680,7 @@ var deserializeAws_json1_1EventDataStore = function (output, context) {
3763
3680
  RetentionPeriod: __expectInt32(output.RetentionPeriod),
3764
3681
  Status: __expectString(output.Status),
3765
3682
  TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
3766
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
3683
+ UpdatedTimestamp: output.UpdatedTimestamp != null
3767
3684
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
3768
3685
  : undefined,
3769
3686
  };
@@ -3806,10 +3723,8 @@ var deserializeAws_json1_1EventDataStoreTerminationProtectedException = function
3806
3723
  };
3807
3724
  var deserializeAws_json1_1EventSelector = function (output, context) {
3808
3725
  return {
3809
- DataResources: output.DataResources !== undefined && output.DataResources !== null
3810
- ? deserializeAws_json1_1DataResources(output.DataResources, context)
3811
- : undefined,
3812
- ExcludeManagementEventSources: output.ExcludeManagementEventSources !== undefined && output.ExcludeManagementEventSources !== null
3726
+ DataResources: output.DataResources != null ? deserializeAws_json1_1DataResources(output.DataResources, context) : undefined,
3727
+ ExcludeManagementEventSources: output.ExcludeManagementEventSources != null
3813
3728
  ? deserializeAws_json1_1ExcludeManagementEventSources(output.ExcludeManagementEventSources, context)
3814
3729
  : undefined,
3815
3730
  IncludeManagementEvents: __expectBoolean(output.IncludeManagementEvents),
@@ -3851,10 +3766,10 @@ var deserializeAws_json1_1ExcludeManagementEventSources = function (output, cont
3851
3766
  };
3852
3767
  var deserializeAws_json1_1GetEventDataStoreResponse = function (output, context) {
3853
3768
  return {
3854
- AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
3769
+ AdvancedEventSelectors: output.AdvancedEventSelectors != null
3855
3770
  ? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
3856
3771
  : undefined,
3857
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
3772
+ CreatedTimestamp: output.CreatedTimestamp != null
3858
3773
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
3859
3774
  : undefined,
3860
3775
  EventDataStoreArn: __expectString(output.EventDataStoreArn),
@@ -3864,25 +3779,23 @@ var deserializeAws_json1_1GetEventDataStoreResponse = function (output, context)
3864
3779
  RetentionPeriod: __expectInt32(output.RetentionPeriod),
3865
3780
  Status: __expectString(output.Status),
3866
3781
  TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
3867
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
3782
+ UpdatedTimestamp: output.UpdatedTimestamp != null
3868
3783
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
3869
3784
  : undefined,
3870
3785
  };
3871
3786
  };
3872
3787
  var deserializeAws_json1_1GetEventSelectorsResponse = function (output, context) {
3873
3788
  return {
3874
- AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
3789
+ AdvancedEventSelectors: output.AdvancedEventSelectors != null
3875
3790
  ? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
3876
3791
  : undefined,
3877
- EventSelectors: output.EventSelectors !== undefined && output.EventSelectors !== null
3878
- ? deserializeAws_json1_1EventSelectors(output.EventSelectors, context)
3879
- : undefined,
3792
+ EventSelectors: output.EventSelectors != null ? deserializeAws_json1_1EventSelectors(output.EventSelectors, context) : undefined,
3880
3793
  TrailARN: __expectString(output.TrailARN),
3881
3794
  };
3882
3795
  };
3883
3796
  var deserializeAws_json1_1GetInsightSelectorsResponse = function (output, context) {
3884
3797
  return {
3885
- InsightSelectors: output.InsightSelectors !== undefined && output.InsightSelectors !== null
3798
+ InsightSelectors: output.InsightSelectors != null
3886
3799
  ? deserializeAws_json1_1InsightSelectors(output.InsightSelectors, context)
3887
3800
  : undefined,
3888
3801
  TrailARN: __expectString(output.TrailARN),
@@ -3892,10 +3805,10 @@ var deserializeAws_json1_1GetQueryResultsResponse = function (output, context) {
3892
3805
  return {
3893
3806
  ErrorMessage: __expectString(output.ErrorMessage),
3894
3807
  NextToken: __expectString(output.NextToken),
3895
- QueryResultRows: output.QueryResultRows !== undefined && output.QueryResultRows !== null
3808
+ QueryResultRows: output.QueryResultRows != null
3896
3809
  ? deserializeAws_json1_1QueryResultRows(output.QueryResultRows, context)
3897
3810
  : undefined,
3898
- QueryStatistics: output.QueryStatistics !== undefined && output.QueryStatistics !== null
3811
+ QueryStatistics: output.QueryStatistics != null
3899
3812
  ? deserializeAws_json1_1QueryStatistics(output.QueryStatistics, context)
3900
3813
  : undefined,
3901
3814
  QueryStatus: __expectString(output.QueryStatus),
@@ -3903,38 +3816,36 @@ var deserializeAws_json1_1GetQueryResultsResponse = function (output, context) {
3903
3816
  };
3904
3817
  var deserializeAws_json1_1GetTrailResponse = function (output, context) {
3905
3818
  return {
3906
- Trail: output.Trail !== undefined && output.Trail !== null
3907
- ? deserializeAws_json1_1Trail(output.Trail, context)
3908
- : undefined,
3819
+ Trail: output.Trail != null ? deserializeAws_json1_1Trail(output.Trail, context) : undefined,
3909
3820
  };
3910
3821
  };
3911
3822
  var deserializeAws_json1_1GetTrailStatusResponse = function (output, context) {
3912
3823
  return {
3913
3824
  IsLogging: __expectBoolean(output.IsLogging),
3914
3825
  LatestCloudWatchLogsDeliveryError: __expectString(output.LatestCloudWatchLogsDeliveryError),
3915
- LatestCloudWatchLogsDeliveryTime: output.LatestCloudWatchLogsDeliveryTime !== undefined && output.LatestCloudWatchLogsDeliveryTime !== null
3826
+ LatestCloudWatchLogsDeliveryTime: output.LatestCloudWatchLogsDeliveryTime != null
3916
3827
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestCloudWatchLogsDeliveryTime)))
3917
3828
  : undefined,
3918
3829
  LatestDeliveryAttemptSucceeded: __expectString(output.LatestDeliveryAttemptSucceeded),
3919
3830
  LatestDeliveryAttemptTime: __expectString(output.LatestDeliveryAttemptTime),
3920
3831
  LatestDeliveryError: __expectString(output.LatestDeliveryError),
3921
- LatestDeliveryTime: output.LatestDeliveryTime !== undefined && output.LatestDeliveryTime !== null
3832
+ LatestDeliveryTime: output.LatestDeliveryTime != null
3922
3833
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestDeliveryTime)))
3923
3834
  : undefined,
3924
3835
  LatestDigestDeliveryError: __expectString(output.LatestDigestDeliveryError),
3925
- LatestDigestDeliveryTime: output.LatestDigestDeliveryTime !== undefined && output.LatestDigestDeliveryTime !== null
3836
+ LatestDigestDeliveryTime: output.LatestDigestDeliveryTime != null
3926
3837
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestDigestDeliveryTime)))
3927
3838
  : undefined,
3928
3839
  LatestNotificationAttemptSucceeded: __expectString(output.LatestNotificationAttemptSucceeded),
3929
3840
  LatestNotificationAttemptTime: __expectString(output.LatestNotificationAttemptTime),
3930
3841
  LatestNotificationError: __expectString(output.LatestNotificationError),
3931
- LatestNotificationTime: output.LatestNotificationTime !== undefined && output.LatestNotificationTime !== null
3842
+ LatestNotificationTime: output.LatestNotificationTime != null
3932
3843
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestNotificationTime)))
3933
3844
  : undefined,
3934
- StartLoggingTime: output.StartLoggingTime !== undefined && output.StartLoggingTime !== null
3845
+ StartLoggingTime: output.StartLoggingTime != null
3935
3846
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartLoggingTime)))
3936
3847
  : undefined,
3937
- StopLoggingTime: output.StopLoggingTime !== undefined && output.StopLoggingTime !== null
3848
+ StopLoggingTime: output.StopLoggingTime != null
3938
3849
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StopLoggingTime)))
3939
3850
  : undefined,
3940
3851
  TimeLoggingStarted: __expectString(output.TimeLoggingStarted),
@@ -4124,7 +4035,7 @@ var deserializeAws_json1_1KmsKeyNotFoundException = function (output, context) {
4124
4035
  };
4125
4036
  var deserializeAws_json1_1ListEventDataStoresResponse = function (output, context) {
4126
4037
  return {
4127
- EventDataStores: output.EventDataStores !== undefined && output.EventDataStores !== null
4038
+ EventDataStores: output.EventDataStores != null
4128
4039
  ? deserializeAws_json1_1EventDataStores(output.EventDataStores, context)
4129
4040
  : undefined,
4130
4041
  NextToken: __expectString(output.NextToken),
@@ -4133,23 +4044,19 @@ var deserializeAws_json1_1ListEventDataStoresResponse = function (output, contex
4133
4044
  var deserializeAws_json1_1ListPublicKeysResponse = function (output, context) {
4134
4045
  return {
4135
4046
  NextToken: __expectString(output.NextToken),
4136
- PublicKeyList: output.PublicKeyList !== undefined && output.PublicKeyList !== null
4137
- ? deserializeAws_json1_1PublicKeyList(output.PublicKeyList, context)
4138
- : undefined,
4047
+ PublicKeyList: output.PublicKeyList != null ? deserializeAws_json1_1PublicKeyList(output.PublicKeyList, context) : undefined,
4139
4048
  };
4140
4049
  };
4141
4050
  var deserializeAws_json1_1ListQueriesResponse = function (output, context) {
4142
4051
  return {
4143
4052
  NextToken: __expectString(output.NextToken),
4144
- Queries: output.Queries !== undefined && output.Queries !== null
4145
- ? deserializeAws_json1_1Queries(output.Queries, context)
4146
- : undefined,
4053
+ Queries: output.Queries != null ? deserializeAws_json1_1Queries(output.Queries, context) : undefined,
4147
4054
  };
4148
4055
  };
4149
4056
  var deserializeAws_json1_1ListTagsResponse = function (output, context) {
4150
4057
  return {
4151
4058
  NextToken: __expectString(output.NextToken),
4152
- ResourceTagList: output.ResourceTagList !== undefined && output.ResourceTagList !== null
4059
+ ResourceTagList: output.ResourceTagList != null
4153
4060
  ? deserializeAws_json1_1ResourceTagList(output.ResourceTagList, context)
4154
4061
  : undefined,
4155
4062
  };
@@ -4157,16 +4064,12 @@ var deserializeAws_json1_1ListTagsResponse = function (output, context) {
4157
4064
  var deserializeAws_json1_1ListTrailsResponse = function (output, context) {
4158
4065
  return {
4159
4066
  NextToken: __expectString(output.NextToken),
4160
- Trails: output.Trails !== undefined && output.Trails !== null
4161
- ? deserializeAws_json1_1Trails(output.Trails, context)
4162
- : undefined,
4067
+ Trails: output.Trails != null ? deserializeAws_json1_1Trails(output.Trails, context) : undefined,
4163
4068
  };
4164
4069
  };
4165
4070
  var deserializeAws_json1_1LookupEventsResponse = function (output, context) {
4166
4071
  return {
4167
- Events: output.Events !== undefined && output.Events !== null
4168
- ? deserializeAws_json1_1EventsList(output.Events, context)
4169
- : undefined,
4072
+ Events: output.Events != null ? deserializeAws_json1_1EventsList(output.Events, context) : undefined,
4170
4073
  NextToken: __expectString(output.NextToken),
4171
4074
  };
4172
4075
  };
@@ -4214,13 +4117,13 @@ var deserializeAws_json1_1OrganizationsNotInUseException = function (output, con
4214
4117
  var deserializeAws_json1_1PublicKey = function (output, context) {
4215
4118
  return {
4216
4119
  Fingerprint: __expectString(output.Fingerprint),
4217
- ValidityEndTime: output.ValidityEndTime !== undefined && output.ValidityEndTime !== null
4120
+ ValidityEndTime: output.ValidityEndTime != null
4218
4121
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ValidityEndTime)))
4219
4122
  : undefined,
4220
- ValidityStartTime: output.ValidityStartTime !== undefined && output.ValidityStartTime !== null
4123
+ ValidityStartTime: output.ValidityStartTime != null
4221
4124
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ValidityStartTime)))
4222
4125
  : undefined,
4223
- Value: output.Value !== undefined && output.Value !== null ? context.base64Decoder(output.Value) : undefined,
4126
+ Value: output.Value != null ? context.base64Decoder(output.Value) : undefined,
4224
4127
  };
4225
4128
  };
4226
4129
  var deserializeAws_json1_1PublicKeyList = function (output, context) {
@@ -4236,18 +4139,16 @@ var deserializeAws_json1_1PublicKeyList = function (output, context) {
4236
4139
  };
4237
4140
  var deserializeAws_json1_1PutEventSelectorsResponse = function (output, context) {
4238
4141
  return {
4239
- AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
4142
+ AdvancedEventSelectors: output.AdvancedEventSelectors != null
4240
4143
  ? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4241
4144
  : undefined,
4242
- EventSelectors: output.EventSelectors !== undefined && output.EventSelectors !== null
4243
- ? deserializeAws_json1_1EventSelectors(output.EventSelectors, context)
4244
- : undefined,
4145
+ EventSelectors: output.EventSelectors != null ? deserializeAws_json1_1EventSelectors(output.EventSelectors, context) : undefined,
4245
4146
  TrailARN: __expectString(output.TrailARN),
4246
4147
  };
4247
4148
  };
4248
4149
  var deserializeAws_json1_1PutInsightSelectorsResponse = function (output, context) {
4249
4150
  return {
4250
- InsightSelectors: output.InsightSelectors !== undefined && output.InsightSelectors !== null
4151
+ InsightSelectors: output.InsightSelectors != null
4251
4152
  ? deserializeAws_json1_1InsightSelectors(output.InsightSelectors, context)
4252
4153
  : undefined,
4253
4154
  TrailARN: __expectString(output.TrailARN),
@@ -4266,7 +4167,7 @@ var deserializeAws_json1_1Queries = function (output, context) {
4266
4167
  };
4267
4168
  var deserializeAws_json1_1Query = function (output, context) {
4268
4169
  return {
4269
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4170
+ CreationTime: output.CreationTime != null
4270
4171
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4271
4172
  : undefined,
4272
4173
  QueryId: __expectString(output.QueryId),
@@ -4320,7 +4221,7 @@ var deserializeAws_json1_1QueryStatistics = function (output, context) {
4320
4221
  var deserializeAws_json1_1QueryStatisticsForDescribeQuery = function (output, context) {
4321
4222
  return {
4322
4223
  BytesScanned: __expectLong(output.BytesScanned),
4323
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4224
+ CreationTime: output.CreationTime != null
4324
4225
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4325
4226
  : undefined,
4326
4227
  EventsMatched: __expectLong(output.EventsMatched),
@@ -4356,9 +4257,7 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
4356
4257
  var deserializeAws_json1_1ResourceTag = function (output, context) {
4357
4258
  return {
4358
4259
  ResourceId: __expectString(output.ResourceId),
4359
- TagsList: output.TagsList !== undefined && output.TagsList !== null
4360
- ? deserializeAws_json1_1TagsList(output.TagsList, context)
4361
- : undefined,
4260
+ TagsList: output.TagsList != null ? deserializeAws_json1_1TagsList(output.TagsList, context) : undefined,
4362
4261
  };
4363
4262
  };
4364
4263
  var deserializeAws_json1_1ResourceTagList = function (output, context) {
@@ -4379,10 +4278,10 @@ var deserializeAws_json1_1ResourceTypeNotSupportedException = function (output,
4379
4278
  };
4380
4279
  var deserializeAws_json1_1RestoreEventDataStoreResponse = function (output, context) {
4381
4280
  return {
4382
- AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
4281
+ AdvancedEventSelectors: output.AdvancedEventSelectors != null
4383
4282
  ? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4384
4283
  : undefined,
4385
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
4284
+ CreatedTimestamp: output.CreatedTimestamp != null
4386
4285
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4387
4286
  : undefined,
4388
4287
  EventDataStoreArn: __expectString(output.EventDataStoreArn),
@@ -4392,7 +4291,7 @@ var deserializeAws_json1_1RestoreEventDataStoreResponse = function (output, cont
4392
4291
  RetentionPeriod: __expectInt32(output.RetentionPeriod),
4393
4292
  Status: __expectString(output.Status),
4394
4293
  TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
4395
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
4294
+ UpdatedTimestamp: output.UpdatedTimestamp != null
4396
4295
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
4397
4296
  : undefined,
4398
4297
  };
@@ -4506,10 +4405,10 @@ var deserializeAws_json1_1UnsupportedOperationException = function (output, cont
4506
4405
  };
4507
4406
  var deserializeAws_json1_1UpdateEventDataStoreResponse = function (output, context) {
4508
4407
  return {
4509
- AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
4408
+ AdvancedEventSelectors: output.AdvancedEventSelectors != null
4510
4409
  ? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4511
4410
  : undefined,
4512
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
4411
+ CreatedTimestamp: output.CreatedTimestamp != null
4513
4412
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4514
4413
  : undefined,
4515
4414
  EventDataStoreArn: __expectString(output.EventDataStoreArn),
@@ -4519,7 +4418,7 @@ var deserializeAws_json1_1UpdateEventDataStoreResponse = function (output, conte
4519
4418
  RetentionPeriod: __expectInt32(output.RetentionPeriod),
4520
4419
  Status: __expectString(output.Status),
4521
4420
  TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
4522
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
4421
+ UpdatedTimestamp: output.UpdatedTimestamp != null
4523
4422
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
4524
4423
  : undefined,
4525
4424
  };
@@ -4597,6 +4496,9 @@ var loadRestJsonErrorCode = function (output, data) {
4597
4496
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4598
4497
  var sanitizeErrorCode = function (rawValue) {
4599
4498
  var cleanValue = rawValue;
4499
+ if (typeof cleanValue === "number") {
4500
+ cleanValue = cleanValue.toString();
4501
+ }
4600
4502
  if (cleanValue.indexOf(":") >= 0) {
4601
4503
  cleanValue = cleanValue.split(":")[0];
4602
4504
  }