@aws-sdk/client-ecr 3.121.0 → 3.127.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.
@@ -3391,16 +3391,12 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
3391
3391
  });
3392
3392
  }); };
3393
3393
  var serializeAws_json1_1BatchCheckLayerAvailabilityRequest = function (input, context) {
3394
- return __assign(__assign(__assign({}, (input.layerDigests !== undefined &&
3395
- input.layerDigests !== null && {
3394
+ return __assign(__assign(__assign({}, (input.layerDigests != null && {
3396
3395
  layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context),
3397
- })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3398
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3396
+ })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3399
3397
  };
3400
3398
  var serializeAws_json1_1BatchDeleteImageRequest = function (input, context) {
3401
- return __assign(__assign(__assign({}, (input.imageIds !== undefined &&
3402
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3403
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3399
+ return __assign(__assign(__assign({}, (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3404
3400
  };
3405
3401
  var serializeAws_json1_1BatchedOperationLayerDigestList = function (input, context) {
3406
3402
  return input
@@ -3413,98 +3409,72 @@ var serializeAws_json1_1BatchedOperationLayerDigestList = function (input, conte
3413
3409
  });
3414
3410
  };
3415
3411
  var serializeAws_json1_1BatchGetImageRequest = function (input, context) {
3416
- return __assign(__assign(__assign(__assign({}, (input.acceptedMediaTypes !== undefined &&
3417
- input.acceptedMediaTypes !== null && {
3412
+ return __assign(__assign(__assign(__assign({}, (input.acceptedMediaTypes != null && {
3418
3413
  acceptedMediaTypes: serializeAws_json1_1MediaTypeList(input.acceptedMediaTypes, context),
3419
- })), (input.imageIds !== undefined &&
3420
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3421
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3414
+ })), (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3422
3415
  };
3423
3416
  var serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest = function (input, context) {
3424
- return __assign({}, (input.repositoryNames !== undefined &&
3425
- input.repositoryNames !== null && {
3417
+ return __assign({}, (input.repositoryNames != null && {
3426
3418
  repositoryNames: serializeAws_json1_1ScanningConfigurationRepositoryNameList(input.repositoryNames, context),
3427
3419
  }));
3428
3420
  };
3429
3421
  var serializeAws_json1_1CompleteLayerUploadRequest = function (input, context) {
3430
- return __assign(__assign(__assign(__assign({}, (input.layerDigests !== undefined &&
3431
- input.layerDigests !== null && {
3422
+ return __assign(__assign(__assign(__assign({}, (input.layerDigests != null && {
3432
3423
  layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
3433
- })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3434
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }));
3424
+ })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.uploadId != null && { uploadId: input.uploadId }));
3435
3425
  };
3436
3426
  var serializeAws_json1_1CreatePullThroughCacheRuleRequest = function (input, context) {
3437
- return __assign(__assign(__assign({}, (input.ecrRepositoryPrefix !== undefined &&
3438
- input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.upstreamRegistryUrl !== undefined &&
3439
- input.upstreamRegistryUrl !== null && { upstreamRegistryUrl: input.upstreamRegistryUrl }));
3427
+ return __assign(__assign(__assign({}, (input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId != null && { registryId: input.registryId })), (input.upstreamRegistryUrl != null && { upstreamRegistryUrl: input.upstreamRegistryUrl }));
3440
3428
  };
3441
3429
  var serializeAws_json1_1CreateRepositoryRequest = function (input, context) {
3442
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.encryptionConfiguration !== undefined &&
3443
- input.encryptionConfiguration !== null && {
3430
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.encryptionConfiguration != null && {
3444
3431
  encryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.encryptionConfiguration, context),
3445
- })), (input.imageScanningConfiguration !== undefined &&
3446
- input.imageScanningConfiguration !== null && {
3432
+ })), (input.imageScanningConfiguration != null && {
3447
3433
  imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context),
3448
- })), (input.imageTagMutability !== undefined &&
3449
- input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3450
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3434
+ })), (input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3451
3435
  };
3452
3436
  var serializeAws_json1_1DeleteLifecyclePolicyRequest = function (input, context) {
3453
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3454
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3437
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3455
3438
  };
3456
3439
  var serializeAws_json1_1DeletePullThroughCacheRuleRequest = function (input, context) {
3457
- return __assign(__assign({}, (input.ecrRepositoryPrefix !== undefined &&
3458
- input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }));
3440
+ return __assign(__assign({}, (input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix })), (input.registryId != null && { registryId: input.registryId }));
3459
3441
  };
3460
3442
  var serializeAws_json1_1DeleteRegistryPolicyRequest = function (input, context) {
3461
3443
  return {};
3462
3444
  };
3463
3445
  var serializeAws_json1_1DeleteRepositoryPolicyRequest = function (input, context) {
3464
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3465
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3446
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3466
3447
  };
3467
3448
  var serializeAws_json1_1DeleteRepositoryRequest = function (input, context) {
3468
- return __assign(__assign(__assign({}, (input.force !== undefined && input.force !== null && { force: input.force })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3469
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3449
+ return __assign(__assign(__assign({}, (input.force != null && { force: input.force })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3470
3450
  };
3471
3451
  var serializeAws_json1_1DescribeImageReplicationStatusRequest = function (input, context) {
3472
- return __assign(__assign(__assign({}, (input.imageId !== undefined &&
3473
- input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3474
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3452
+ return __assign(__assign(__assign({}, (input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3475
3453
  };
3476
3454
  var serializeAws_json1_1DescribeImageScanFindingsRequest = function (input, context) {
3477
- return __assign(__assign(__assign(__assign(__assign({}, (input.imageId !== undefined &&
3478
- input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3479
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3455
+ return __assign(__assign(__assign(__assign(__assign({}, (input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3480
3456
  };
3481
3457
  var serializeAws_json1_1DescribeImagesFilter = function (input, context) {
3482
- return __assign({}, (input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }));
3458
+ return __assign({}, (input.tagStatus != null && { tagStatus: input.tagStatus }));
3483
3459
  };
3484
3460
  var serializeAws_json1_1DescribeImagesRequest = function (input, context) {
3485
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3486
- input.filter !== null && { filter: serializeAws_json1_1DescribeImagesFilter(input.filter, context) })), (input.imageIds !== undefined &&
3487
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3488
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3461
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1DescribeImagesFilter(input.filter, context) })), (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3489
3462
  };
3490
3463
  var serializeAws_json1_1DescribePullThroughCacheRulesRequest = function (input, context) {
3491
- return __assign(__assign(__assign(__assign({}, (input.ecrRepositoryPrefixes !== undefined &&
3492
- input.ecrRepositoryPrefixes !== null && {
3464
+ return __assign(__assign(__assign(__assign({}, (input.ecrRepositoryPrefixes != null && {
3493
3465
  ecrRepositoryPrefixes: serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(input.ecrRepositoryPrefixes, context),
3494
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }));
3466
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId }));
3495
3467
  };
3496
3468
  var serializeAws_json1_1DescribeRegistryRequest = function (input, context) {
3497
3469
  return {};
3498
3470
  };
3499
3471
  var serializeAws_json1_1DescribeRepositoriesRequest = function (input, context) {
3500
- return __assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryNames !== undefined &&
3501
- input.repositoryNames !== null && {
3472
+ return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryNames != null && {
3502
3473
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
3503
3474
  }));
3504
3475
  };
3505
3476
  var serializeAws_json1_1EncryptionConfiguration = function (input, context) {
3506
- return __assign(__assign({}, (input.encryptionType !== undefined &&
3507
- input.encryptionType !== null && { encryptionType: input.encryptionType })), (input.kmsKey !== undefined && input.kmsKey !== null && { kmsKey: input.kmsKey }));
3477
+ return __assign(__assign({}, (input.encryptionType != null && { encryptionType: input.encryptionType })), (input.kmsKey != null && { kmsKey: input.kmsKey }));
3508
3478
  };
3509
3479
  var serializeAws_json1_1GetAuthorizationTokenRegistryIdList = function (input, context) {
3510
3480
  return input
@@ -3517,24 +3487,18 @@ var serializeAws_json1_1GetAuthorizationTokenRegistryIdList = function (input, c
3517
3487
  });
3518
3488
  };
3519
3489
  var serializeAws_json1_1GetAuthorizationTokenRequest = function (input, context) {
3520
- return __assign({}, (input.registryIds !== undefined &&
3521
- input.registryIds !== null && {
3490
+ return __assign({}, (input.registryIds != null && {
3522
3491
  registryIds: serializeAws_json1_1GetAuthorizationTokenRegistryIdList(input.registryIds, context),
3523
3492
  }));
3524
3493
  };
3525
3494
  var serializeAws_json1_1GetDownloadUrlForLayerRequest = function (input, context) {
3526
- return __assign(__assign(__assign({}, (input.layerDigest !== undefined && input.layerDigest !== null && { layerDigest: input.layerDigest })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3527
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3495
+ return __assign(__assign(__assign({}, (input.layerDigest != null && { layerDigest: input.layerDigest })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3528
3496
  };
3529
3497
  var serializeAws_json1_1GetLifecyclePolicyPreviewRequest = function (input, context) {
3530
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3531
- input.filter !== null && { filter: serializeAws_json1_1LifecyclePolicyPreviewFilter(input.filter, context) })), (input.imageIds !== undefined &&
3532
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3533
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3498
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1LifecyclePolicyPreviewFilter(input.filter, context) })), (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3534
3499
  };
3535
3500
  var serializeAws_json1_1GetLifecyclePolicyRequest = function (input, context) {
3536
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3537
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3501
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3538
3502
  };
3539
3503
  var serializeAws_json1_1GetRegistryPolicyRequest = function (input, context) {
3540
3504
  return {};
@@ -3543,11 +3507,10 @@ var serializeAws_json1_1GetRegistryScanningConfigurationRequest = function (inpu
3543
3507
  return {};
3544
3508
  };
3545
3509
  var serializeAws_json1_1GetRepositoryPolicyRequest = function (input, context) {
3546
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3547
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3510
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3548
3511
  };
3549
3512
  var serializeAws_json1_1ImageIdentifier = function (input, context) {
3550
- return __assign(__assign({}, (input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest })), (input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }));
3513
+ return __assign(__assign({}, (input.imageDigest != null && { imageDigest: input.imageDigest })), (input.imageTag != null && { imageTag: input.imageTag }));
3551
3514
  };
3552
3515
  var serializeAws_json1_1ImageIdentifierList = function (input, context) {
3553
3516
  return input
@@ -3560,11 +3523,10 @@ var serializeAws_json1_1ImageIdentifierList = function (input, context) {
3560
3523
  });
3561
3524
  };
3562
3525
  var serializeAws_json1_1ImageScanningConfiguration = function (input, context) {
3563
- return __assign({}, (input.scanOnPush !== undefined && input.scanOnPush !== null && { scanOnPush: input.scanOnPush }));
3526
+ return __assign({}, (input.scanOnPush != null && { scanOnPush: input.scanOnPush }));
3564
3527
  };
3565
3528
  var serializeAws_json1_1InitiateLayerUploadRequest = function (input, context) {
3566
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3567
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3529
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3568
3530
  };
3569
3531
  var serializeAws_json1_1LayerDigestList = function (input, context) {
3570
3532
  return input
@@ -3577,18 +3539,16 @@ var serializeAws_json1_1LayerDigestList = function (input, context) {
3577
3539
  });
3578
3540
  };
3579
3541
  var serializeAws_json1_1LifecyclePolicyPreviewFilter = function (input, context) {
3580
- return __assign({}, (input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }));
3542
+ return __assign({}, (input.tagStatus != null && { tagStatus: input.tagStatus }));
3581
3543
  };
3582
3544
  var serializeAws_json1_1ListImagesFilter = function (input, context) {
3583
- return __assign({}, (input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }));
3545
+ return __assign({}, (input.tagStatus != null && { tagStatus: input.tagStatus }));
3584
3546
  };
3585
3547
  var serializeAws_json1_1ListImagesRequest = function (input, context) {
3586
- return __assign(__assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3587
- input.filter !== null && { filter: serializeAws_json1_1ListImagesFilter(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3588
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3548
+ return __assign(__assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1ListImagesFilter(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3589
3549
  };
3590
3550
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
3591
- return __assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
3551
+ return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
3592
3552
  };
3593
3553
  var serializeAws_json1_1MediaTypeList = function (input, context) {
3594
3554
  return input
@@ -3611,45 +3571,34 @@ var serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList = function (inp
3611
3571
  });
3612
3572
  };
3613
3573
  var serializeAws_json1_1PutImageRequest = function (input, context) {
3614
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest })), (input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest })), (input.imageManifestMediaType !== undefined &&
3615
- input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType })), (input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3616
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3574
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.imageDigest != null && { imageDigest: input.imageDigest })), (input.imageManifest != null && { imageManifest: input.imageManifest })), (input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType })), (input.imageTag != null && { imageTag: input.imageTag })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3617
3575
  };
3618
3576
  var serializeAws_json1_1PutImageScanningConfigurationRequest = function (input, context) {
3619
- return __assign(__assign(__assign({}, (input.imageScanningConfiguration !== undefined &&
3620
- input.imageScanningConfiguration !== null && {
3577
+ return __assign(__assign(__assign({}, (input.imageScanningConfiguration != null && {
3621
3578
  imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context),
3622
- })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3623
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3579
+ })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3624
3580
  };
3625
3581
  var serializeAws_json1_1PutImageTagMutabilityRequest = function (input, context) {
3626
- return __assign(__assign(__assign({}, (input.imageTagMutability !== undefined &&
3627
- input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3628
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3582
+ return __assign(__assign(__assign({}, (input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3629
3583
  };
3630
3584
  var serializeAws_json1_1PutLifecyclePolicyRequest = function (input, context) {
3631
- return __assign(__assign(__assign({}, (input.lifecyclePolicyText !== undefined &&
3632
- input.lifecyclePolicyText !== null && { lifecyclePolicyText: input.lifecyclePolicyText })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3633
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3585
+ return __assign(__assign(__assign({}, (input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3634
3586
  };
3635
3587
  var serializeAws_json1_1PutRegistryPolicyRequest = function (input, context) {
3636
- return __assign({}, (input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }));
3588
+ return __assign({}, (input.policyText != null && { policyText: input.policyText }));
3637
3589
  };
3638
3590
  var serializeAws_json1_1PutRegistryScanningConfigurationRequest = function (input, context) {
3639
- return __assign(__assign({}, (input.rules !== undefined &&
3640
- input.rules !== null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) })), (input.scanType !== undefined && input.scanType !== null && { scanType: input.scanType }));
3591
+ return __assign(__assign({}, (input.rules != null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) })), (input.scanType != null && { scanType: input.scanType }));
3641
3592
  };
3642
3593
  var serializeAws_json1_1PutReplicationConfigurationRequest = function (input, context) {
3643
- return __assign({}, (input.replicationConfiguration !== undefined &&
3644
- input.replicationConfiguration !== null && {
3594
+ return __assign({}, (input.replicationConfiguration != null && {
3645
3595
  replicationConfiguration: serializeAws_json1_1ReplicationConfiguration(input.replicationConfiguration, context),
3646
3596
  }));
3647
3597
  };
3648
3598
  var serializeAws_json1_1RegistryScanningRule = function (input, context) {
3649
- return __assign(__assign({}, (input.repositoryFilters !== undefined &&
3650
- input.repositoryFilters !== null && {
3599
+ return __assign(__assign({}, (input.repositoryFilters != null && {
3651
3600
  repositoryFilters: serializeAws_json1_1ScanningRepositoryFilterList(input.repositoryFilters, context),
3652
- })), (input.scanFrequency !== undefined && input.scanFrequency !== null && { scanFrequency: input.scanFrequency }));
3601
+ })), (input.scanFrequency != null && { scanFrequency: input.scanFrequency }));
3653
3602
  };
3654
3603
  var serializeAws_json1_1RegistryScanningRuleList = function (input, context) {
3655
3604
  return input
@@ -3662,11 +3611,10 @@ var serializeAws_json1_1RegistryScanningRuleList = function (input, context) {
3662
3611
  });
3663
3612
  };
3664
3613
  var serializeAws_json1_1ReplicationConfiguration = function (input, context) {
3665
- return __assign({}, (input.rules !== undefined &&
3666
- input.rules !== null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }));
3614
+ return __assign({}, (input.rules != null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }));
3667
3615
  };
3668
3616
  var serializeAws_json1_1ReplicationDestination = function (input, context) {
3669
- return __assign(__assign({}, (input.region !== undefined && input.region !== null && { region: input.region })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }));
3617
+ return __assign(__assign({}, (input.region != null && { region: input.region })), (input.registryId != null && { registryId: input.registryId }));
3670
3618
  };
3671
3619
  var serializeAws_json1_1ReplicationDestinationList = function (input, context) {
3672
3620
  return input
@@ -3679,11 +3627,9 @@ var serializeAws_json1_1ReplicationDestinationList = function (input, context) {
3679
3627
  });
3680
3628
  };
3681
3629
  var serializeAws_json1_1ReplicationRule = function (input, context) {
3682
- return __assign(__assign({}, (input.destinations !== undefined &&
3683
- input.destinations !== null && {
3630
+ return __assign(__assign({}, (input.destinations != null && {
3684
3631
  destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context),
3685
- })), (input.repositoryFilters !== undefined &&
3686
- input.repositoryFilters !== null && {
3632
+ })), (input.repositoryFilters != null && {
3687
3633
  repositoryFilters: serializeAws_json1_1RepositoryFilterList(input.repositoryFilters, context),
3688
3634
  }));
3689
3635
  };
@@ -3698,7 +3644,7 @@ var serializeAws_json1_1ReplicationRuleList = function (input, context) {
3698
3644
  });
3699
3645
  };
3700
3646
  var serializeAws_json1_1RepositoryFilter = function (input, context) {
3701
- return __assign(__assign({}, (input.filter !== undefined && input.filter !== null && { filter: input.filter })), (input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }));
3647
+ return __assign(__assign({}, (input.filter != null && { filter: input.filter })), (input.filterType != null && { filterType: input.filterType }));
3702
3648
  };
3703
3649
  var serializeAws_json1_1RepositoryFilterList = function (input, context) {
3704
3650
  return input
@@ -3731,7 +3677,7 @@ var serializeAws_json1_1ScanningConfigurationRepositoryNameList = function (inpu
3731
3677
  });
3732
3678
  };
3733
3679
  var serializeAws_json1_1ScanningRepositoryFilter = function (input, context) {
3734
- return __assign(__assign({}, (input.filter !== undefined && input.filter !== null && { filter: input.filter })), (input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }));
3680
+ return __assign(__assign({}, (input.filter != null && { filter: input.filter })), (input.filterType != null && { filterType: input.filterType }));
3735
3681
  };
3736
3682
  var serializeAws_json1_1ScanningRepositoryFilterList = function (input, context) {
3737
3683
  return input
@@ -3744,21 +3690,16 @@ var serializeAws_json1_1ScanningRepositoryFilterList = function (input, context)
3744
3690
  });
3745
3691
  };
3746
3692
  var serializeAws_json1_1SetRepositoryPolicyRequest = function (input, context) {
3747
- return __assign(__assign(__assign(__assign({}, (input.force !== undefined && input.force !== null && { force: input.force })), (input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3748
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3693
+ return __assign(__assign(__assign(__assign({}, (input.force != null && { force: input.force })), (input.policyText != null && { policyText: input.policyText })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3749
3694
  };
3750
3695
  var serializeAws_json1_1StartImageScanRequest = function (input, context) {
3751
- return __assign(__assign(__assign({}, (input.imageId !== undefined &&
3752
- input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3753
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3696
+ return __assign(__assign(__assign({}, (input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3754
3697
  };
3755
3698
  var serializeAws_json1_1StartLifecyclePolicyPreviewRequest = function (input, context) {
3756
- return __assign(__assign(__assign({}, (input.lifecyclePolicyText !== undefined &&
3757
- input.lifecyclePolicyText !== null && { lifecyclePolicyText: input.lifecyclePolicyText })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3758
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
3699
+ return __assign(__assign(__assign({}, (input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
3759
3700
  };
3760
3701
  var serializeAws_json1_1Tag = function (input, context) {
3761
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
3702
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
3762
3703
  };
3763
3704
  var serializeAws_json1_1TagKeyList = function (input, context) {
3764
3705
  return input
@@ -3781,16 +3722,13 @@ var serializeAws_json1_1TagList = function (input, context) {
3781
3722
  });
3782
3723
  };
3783
3724
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
3784
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3725
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3785
3726
  };
3786
3727
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
3787
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
3788
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
3728
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
3789
3729
  };
3790
3730
  var serializeAws_json1_1UploadLayerPartRequest = function (input, context) {
3791
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.layerPartBlob !== undefined &&
3792
- input.layerPartBlob !== null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) })), (input.partFirstByte !== undefined && input.partFirstByte !== null && { partFirstByte: input.partFirstByte })), (input.partLastByte !== undefined && input.partLastByte !== null && { partLastByte: input.partLastByte })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
3793
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }));
3731
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) })), (input.partFirstByte != null && { partFirstByte: input.partFirstByte })), (input.partLastByte != null && { partLastByte: input.partLastByte })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.uploadId != null && { uploadId: input.uploadId }));
3794
3732
  };
3795
3733
  var deserializeAws_json1_1Attribute = function (output, context) {
3796
3734
  return {
@@ -3812,9 +3750,7 @@ var deserializeAws_json1_1AttributeList = function (output, context) {
3812
3750
  var deserializeAws_json1_1AuthorizationData = function (output, context) {
3813
3751
  return {
3814
3752
  authorizationToken: __expectString(output.authorizationToken),
3815
- expiresAt: output.expiresAt !== undefined && output.expiresAt !== null
3816
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt)))
3817
- : undefined,
3753
+ expiresAt: output.expiresAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt))) : undefined,
3818
3754
  proxyEndpoint: __expectString(output.proxyEndpoint),
3819
3755
  };
3820
3756
  };
@@ -3834,53 +3770,37 @@ var deserializeAws_json1_1AwsEcrContainerImageDetails = function (output, contex
3834
3770
  architecture: __expectString(output.architecture),
3835
3771
  author: __expectString(output.author),
3836
3772
  imageHash: __expectString(output.imageHash),
3837
- imageTags: output.imageTags !== undefined && output.imageTags !== null
3838
- ? deserializeAws_json1_1ImageTagsList(output.imageTags, context)
3839
- : undefined,
3773
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagsList(output.imageTags, context) : undefined,
3840
3774
  platform: __expectString(output.platform),
3841
- pushedAt: output.pushedAt !== undefined && output.pushedAt !== null
3842
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt)))
3843
- : undefined,
3775
+ pushedAt: output.pushedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt))) : undefined,
3844
3776
  registry: __expectString(output.registry),
3845
3777
  repositoryName: __expectString(output.repositoryName),
3846
3778
  };
3847
3779
  };
3848
3780
  var deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = function (output, context) {
3849
3781
  return {
3850
- failures: output.failures !== undefined && output.failures !== null
3851
- ? deserializeAws_json1_1LayerFailureList(output.failures, context)
3852
- : undefined,
3853
- layers: output.layers !== undefined && output.layers !== null
3854
- ? deserializeAws_json1_1LayerList(output.layers, context)
3855
- : undefined,
3782
+ failures: output.failures != null ? deserializeAws_json1_1LayerFailureList(output.failures, context) : undefined,
3783
+ layers: output.layers != null ? deserializeAws_json1_1LayerList(output.layers, context) : undefined,
3856
3784
  };
3857
3785
  };
3858
3786
  var deserializeAws_json1_1BatchDeleteImageResponse = function (output, context) {
3859
3787
  return {
3860
- failures: output.failures !== undefined && output.failures !== null
3861
- ? deserializeAws_json1_1ImageFailureList(output.failures, context)
3862
- : undefined,
3863
- imageIds: output.imageIds !== undefined && output.imageIds !== null
3864
- ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
3865
- : undefined,
3788
+ failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
3789
+ imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
3866
3790
  };
3867
3791
  };
3868
3792
  var deserializeAws_json1_1BatchGetImageResponse = function (output, context) {
3869
3793
  return {
3870
- failures: output.failures !== undefined && output.failures !== null
3871
- ? deserializeAws_json1_1ImageFailureList(output.failures, context)
3872
- : undefined,
3873
- images: output.images !== undefined && output.images !== null
3874
- ? deserializeAws_json1_1ImageList(output.images, context)
3875
- : undefined,
3794
+ failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
3795
+ images: output.images != null ? deserializeAws_json1_1ImageList(output.images, context) : undefined,
3876
3796
  };
3877
3797
  };
3878
3798
  var deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse = function (output, context) {
3879
3799
  return {
3880
- failures: output.failures !== undefined && output.failures !== null
3800
+ failures: output.failures != null
3881
3801
  ? deserializeAws_json1_1RepositoryScanningConfigurationFailureList(output.failures, context)
3882
3802
  : undefined,
3883
- scanningConfigurations: output.scanningConfigurations !== undefined && output.scanningConfigurations !== null
3803
+ scanningConfigurations: output.scanningConfigurations != null
3884
3804
  ? deserializeAws_json1_1RepositoryScanningConfigurationList(output.scanningConfigurations, context)
3885
3805
  : undefined,
3886
3806
  };
@@ -3895,9 +3815,7 @@ var deserializeAws_json1_1CompleteLayerUploadResponse = function (output, contex
3895
3815
  };
3896
3816
  var deserializeAws_json1_1CreatePullThroughCacheRuleResponse = function (output, context) {
3897
3817
  return {
3898
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3899
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3900
- : undefined,
3818
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3901
3819
  ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
3902
3820
  registryId: __expectString(output.registryId),
3903
3821
  upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
@@ -3905,9 +3823,7 @@ var deserializeAws_json1_1CreatePullThroughCacheRuleResponse = function (output,
3905
3823
  };
3906
3824
  var deserializeAws_json1_1CreateRepositoryResponse = function (output, context) {
3907
3825
  return {
3908
- repository: output.repository !== undefined && output.repository !== null
3909
- ? deserializeAws_json1_1Repository(output.repository, context)
3910
- : undefined,
3826
+ repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
3911
3827
  };
3912
3828
  };
3913
3829
  var deserializeAws_json1_1CvssScore = function (output, context) {
@@ -3937,7 +3853,7 @@ var deserializeAws_json1_1CvssScoreAdjustmentList = function (output, context) {
3937
3853
  };
3938
3854
  var deserializeAws_json1_1CvssScoreDetails = function (output, context) {
3939
3855
  return {
3940
- adjustments: output.adjustments !== undefined && output.adjustments !== null
3856
+ adjustments: output.adjustments != null
3941
3857
  ? deserializeAws_json1_1CvssScoreAdjustmentList(output.adjustments, context)
3942
3858
  : undefined,
3943
3859
  score: __limitedParseDouble(output.score),
@@ -3959,7 +3875,7 @@ var deserializeAws_json1_1CvssScoreList = function (output, context) {
3959
3875
  };
3960
3876
  var deserializeAws_json1_1DeleteLifecyclePolicyResponse = function (output, context) {
3961
3877
  return {
3962
- lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
3878
+ lastEvaluatedAt: output.lastEvaluatedAt != null
3963
3879
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastEvaluatedAt)))
3964
3880
  : undefined,
3965
3881
  lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
@@ -3969,9 +3885,7 @@ var deserializeAws_json1_1DeleteLifecyclePolicyResponse = function (output, cont
3969
3885
  };
3970
3886
  var deserializeAws_json1_1DeletePullThroughCacheRuleResponse = function (output, context) {
3971
3887
  return {
3972
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3973
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3974
- : undefined,
3888
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3975
3889
  ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
3976
3890
  registryId: __expectString(output.registryId),
3977
3891
  upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
@@ -3992,17 +3906,13 @@ var deserializeAws_json1_1DeleteRepositoryPolicyResponse = function (output, con
3992
3906
  };
3993
3907
  var deserializeAws_json1_1DeleteRepositoryResponse = function (output, context) {
3994
3908
  return {
3995
- repository: output.repository !== undefined && output.repository !== null
3996
- ? deserializeAws_json1_1Repository(output.repository, context)
3997
- : undefined,
3909
+ repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
3998
3910
  };
3999
3911
  };
4000
3912
  var deserializeAws_json1_1DescribeImageReplicationStatusResponse = function (output, context) {
4001
3913
  return {
4002
- imageId: output.imageId !== undefined && output.imageId !== null
4003
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4004
- : undefined,
4005
- replicationStatuses: output.replicationStatuses !== undefined && output.replicationStatuses !== null
3914
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
3915
+ replicationStatuses: output.replicationStatuses != null
4006
3916
  ? deserializeAws_json1_1ImageReplicationStatusList(output.replicationStatuses, context)
4007
3917
  : undefined,
4008
3918
  repositoryName: __expectString(output.repositoryName),
@@ -4010,13 +3920,11 @@ var deserializeAws_json1_1DescribeImageReplicationStatusResponse = function (out
4010
3920
  };
4011
3921
  var deserializeAws_json1_1DescribeImageScanFindingsResponse = function (output, context) {
4012
3922
  return {
4013
- imageId: output.imageId !== undefined && output.imageId !== null
4014
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4015
- : undefined,
4016
- imageScanFindings: output.imageScanFindings !== undefined && output.imageScanFindings !== null
3923
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
3924
+ imageScanFindings: output.imageScanFindings != null
4017
3925
  ? deserializeAws_json1_1ImageScanFindings(output.imageScanFindings, context)
4018
3926
  : undefined,
4019
- imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
3927
+ imageScanStatus: output.imageScanStatus != null
4020
3928
  ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
4021
3929
  : undefined,
4022
3930
  nextToken: __expectString(output.nextToken),
@@ -4026,16 +3934,14 @@ var deserializeAws_json1_1DescribeImageScanFindingsResponse = function (output,
4026
3934
  };
4027
3935
  var deserializeAws_json1_1DescribeImagesResponse = function (output, context) {
4028
3936
  return {
4029
- imageDetails: output.imageDetails !== undefined && output.imageDetails !== null
4030
- ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context)
4031
- : undefined,
3937
+ imageDetails: output.imageDetails != null ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) : undefined,
4032
3938
  nextToken: __expectString(output.nextToken),
4033
3939
  };
4034
3940
  };
4035
3941
  var deserializeAws_json1_1DescribePullThroughCacheRulesResponse = function (output, context) {
4036
3942
  return {
4037
3943
  nextToken: __expectString(output.nextToken),
4038
- pullThroughCacheRules: output.pullThroughCacheRules !== undefined && output.pullThroughCacheRules !== null
3944
+ pullThroughCacheRules: output.pullThroughCacheRules != null
4039
3945
  ? deserializeAws_json1_1PullThroughCacheRuleList(output.pullThroughCacheRules, context)
4040
3946
  : undefined,
4041
3947
  };
@@ -4043,7 +3949,7 @@ var deserializeAws_json1_1DescribePullThroughCacheRulesResponse = function (outp
4043
3949
  var deserializeAws_json1_1DescribeRegistryResponse = function (output, context) {
4044
3950
  return {
4045
3951
  registryId: __expectString(output.registryId),
4046
- replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null
3952
+ replicationConfiguration: output.replicationConfiguration != null
4047
3953
  ? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context)
4048
3954
  : undefined,
4049
3955
  };
@@ -4051,9 +3957,7 @@ var deserializeAws_json1_1DescribeRegistryResponse = function (output, context)
4051
3957
  var deserializeAws_json1_1DescribeRepositoriesResponse = function (output, context) {
4052
3958
  return {
4053
3959
  nextToken: __expectString(output.nextToken),
4054
- repositories: output.repositories !== undefined && output.repositories !== null
4055
- ? deserializeAws_json1_1RepositoryList(output.repositories, context)
4056
- : undefined,
3960
+ repositories: output.repositories != null ? deserializeAws_json1_1RepositoryList(output.repositories, context) : undefined,
4057
3961
  };
4058
3962
  };
4059
3963
  var deserializeAws_json1_1EmptyUploadException = function (output, context) {
@@ -4072,32 +3976,24 @@ var deserializeAws_json1_1EnhancedImageScanFinding = function (output, context)
4072
3976
  awsAccountId: __expectString(output.awsAccountId),
4073
3977
  description: __expectString(output.description),
4074
3978
  findingArn: __expectString(output.findingArn),
4075
- firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
3979
+ firstObservedAt: output.firstObservedAt != null
4076
3980
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
4077
3981
  : undefined,
4078
- lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null
3982
+ lastObservedAt: output.lastObservedAt != null
4079
3983
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastObservedAt)))
4080
3984
  : undefined,
4081
- packageVulnerabilityDetails: output.packageVulnerabilityDetails !== undefined && output.packageVulnerabilityDetails !== null
3985
+ packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
4082
3986
  ? deserializeAws_json1_1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
4083
3987
  : undefined,
4084
- remediation: output.remediation !== undefined && output.remediation !== null
4085
- ? deserializeAws_json1_1Remediation(output.remediation, context)
4086
- : undefined,
4087
- resources: output.resources !== undefined && output.resources !== null
4088
- ? deserializeAws_json1_1ResourceList(output.resources, context)
4089
- : undefined,
3988
+ remediation: output.remediation != null ? deserializeAws_json1_1Remediation(output.remediation, context) : undefined,
3989
+ resources: output.resources != null ? deserializeAws_json1_1ResourceList(output.resources, context) : undefined,
4090
3990
  score: __limitedParseDouble(output.score),
4091
- scoreDetails: output.scoreDetails !== undefined && output.scoreDetails !== null
4092
- ? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context)
4093
- : undefined,
3991
+ scoreDetails: output.scoreDetails != null ? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context) : undefined,
4094
3992
  severity: __expectString(output.severity),
4095
3993
  status: __expectString(output.status),
4096
3994
  title: __expectString(output.title),
4097
3995
  type: __expectString(output.type),
4098
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
4099
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
4100
- : undefined,
3996
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
4101
3997
  };
4102
3998
  };
4103
3999
  var deserializeAws_json1_1EnhancedImageScanFindingList = function (output, context) {
@@ -4123,7 +4019,7 @@ var deserializeAws_json1_1FindingSeverityCounts = function (output, context) {
4123
4019
  };
4124
4020
  var deserializeAws_json1_1GetAuthorizationTokenResponse = function (output, context) {
4125
4021
  return {
4126
- authorizationData: output.authorizationData !== undefined && output.authorizationData !== null
4022
+ authorizationData: output.authorizationData != null
4127
4023
  ? deserializeAws_json1_1AuthorizationDataList(output.authorizationData, context)
4128
4024
  : undefined,
4129
4025
  };
@@ -4138,20 +4034,18 @@ var deserializeAws_json1_1GetLifecyclePolicyPreviewResponse = function (output,
4138
4034
  return {
4139
4035
  lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
4140
4036
  nextToken: __expectString(output.nextToken),
4141
- previewResults: output.previewResults !== undefined && output.previewResults !== null
4037
+ previewResults: output.previewResults != null
4142
4038
  ? deserializeAws_json1_1LifecyclePolicyPreviewResultList(output.previewResults, context)
4143
4039
  : undefined,
4144
4040
  registryId: __expectString(output.registryId),
4145
4041
  repositoryName: __expectString(output.repositoryName),
4146
4042
  status: __expectString(output.status),
4147
- summary: output.summary !== undefined && output.summary !== null
4148
- ? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context)
4149
- : undefined,
4043
+ summary: output.summary != null ? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context) : undefined,
4150
4044
  };
4151
4045
  };
4152
4046
  var deserializeAws_json1_1GetLifecyclePolicyResponse = function (output, context) {
4153
4047
  return {
4154
- lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
4048
+ lastEvaluatedAt: output.lastEvaluatedAt != null
4155
4049
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastEvaluatedAt)))
4156
4050
  : undefined,
4157
4051
  lifecyclePolicyText: __expectString(output.lifecyclePolicyText),
@@ -4168,7 +4062,7 @@ var deserializeAws_json1_1GetRegistryPolicyResponse = function (output, context)
4168
4062
  var deserializeAws_json1_1GetRegistryScanningConfigurationResponse = function (output, context) {
4169
4063
  return {
4170
4064
  registryId: __expectString(output.registryId),
4171
- scanningConfiguration: output.scanningConfiguration !== undefined && output.scanningConfiguration !== null
4065
+ scanningConfiguration: output.scanningConfiguration != null
4172
4066
  ? deserializeAws_json1_1RegistryScanningConfiguration(output.scanningConfiguration, context)
4173
4067
  : undefined,
4174
4068
  };
@@ -4182,9 +4076,7 @@ var deserializeAws_json1_1GetRepositoryPolicyResponse = function (output, contex
4182
4076
  };
4183
4077
  var deserializeAws_json1_1Image = function (output, context) {
4184
4078
  return {
4185
- imageId: output.imageId !== undefined && output.imageId !== null
4186
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4187
- : undefined,
4079
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
4188
4080
  imageManifest: __expectString(output.imageManifest),
4189
4081
  imageManifestMediaType: __expectString(output.imageManifestMediaType),
4190
4082
  registryId: __expectString(output.registryId),
@@ -4201,20 +4093,18 @@ var deserializeAws_json1_1ImageDetail = function (output, context) {
4201
4093
  artifactMediaType: __expectString(output.artifactMediaType),
4202
4094
  imageDigest: __expectString(output.imageDigest),
4203
4095
  imageManifestMediaType: __expectString(output.imageManifestMediaType),
4204
- imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
4096
+ imagePushedAt: output.imagePushedAt != null
4205
4097
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
4206
4098
  : undefined,
4207
- imageScanFindingsSummary: output.imageScanFindingsSummary !== undefined && output.imageScanFindingsSummary !== null
4099
+ imageScanFindingsSummary: output.imageScanFindingsSummary != null
4208
4100
  ? deserializeAws_json1_1ImageScanFindingsSummary(output.imageScanFindingsSummary, context)
4209
4101
  : undefined,
4210
- imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
4102
+ imageScanStatus: output.imageScanStatus != null
4211
4103
  ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
4212
4104
  : undefined,
4213
4105
  imageSizeInBytes: __expectLong(output.imageSizeInBytes),
4214
- imageTags: output.imageTags !== undefined && output.imageTags !== null
4215
- ? deserializeAws_json1_1ImageTagList(output.imageTags, context)
4216
- : undefined,
4217
- lastRecordedPullTime: output.lastRecordedPullTime !== undefined && output.lastRecordedPullTime !== null
4106
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
4107
+ lastRecordedPullTime: output.lastRecordedPullTime != null
4218
4108
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRecordedPullTime)))
4219
4109
  : undefined,
4220
4110
  registryId: __expectString(output.registryId),
@@ -4241,9 +4131,7 @@ var deserializeAws_json1_1ImageFailure = function (output, context) {
4241
4131
  return {
4242
4132
  failureCode: __expectString(output.failureCode),
4243
4133
  failureReason: __expectString(output.failureReason),
4244
- imageId: output.imageId !== undefined && output.imageId !== null
4245
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4246
- : undefined,
4134
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
4247
4135
  };
4248
4136
  };
4249
4137
  var deserializeAws_json1_1ImageFailureList = function (output, context) {
@@ -4311,9 +4199,7 @@ var deserializeAws_json1_1ImageReplicationStatusList = function (output, context
4311
4199
  };
4312
4200
  var deserializeAws_json1_1ImageScanFinding = function (output, context) {
4313
4201
  return {
4314
- attributes: output.attributes !== undefined && output.attributes !== null
4315
- ? deserializeAws_json1_1AttributeList(output.attributes, context)
4316
- : undefined,
4202
+ attributes: output.attributes != null ? deserializeAws_json1_1AttributeList(output.attributes, context) : undefined,
4317
4203
  description: __expectString(output.description),
4318
4204
  name: __expectString(output.name),
4319
4205
  severity: __expectString(output.severity),
@@ -4333,32 +4219,30 @@ var deserializeAws_json1_1ImageScanFindingList = function (output, context) {
4333
4219
  };
4334
4220
  var deserializeAws_json1_1ImageScanFindings = function (output, context) {
4335
4221
  return {
4336
- enhancedFindings: output.enhancedFindings !== undefined && output.enhancedFindings !== null
4222
+ enhancedFindings: output.enhancedFindings != null
4337
4223
  ? deserializeAws_json1_1EnhancedImageScanFindingList(output.enhancedFindings, context)
4338
4224
  : undefined,
4339
- findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null
4225
+ findingSeverityCounts: output.findingSeverityCounts != null
4340
4226
  ? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
4341
4227
  : undefined,
4342
- findings: output.findings !== undefined && output.findings !== null
4343
- ? deserializeAws_json1_1ImageScanFindingList(output.findings, context)
4344
- : undefined,
4345
- imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
4228
+ findings: output.findings != null ? deserializeAws_json1_1ImageScanFindingList(output.findings, context) : undefined,
4229
+ imageScanCompletedAt: output.imageScanCompletedAt != null
4346
4230
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imageScanCompletedAt)))
4347
4231
  : undefined,
4348
- vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
4232
+ vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
4349
4233
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vulnerabilitySourceUpdatedAt)))
4350
4234
  : undefined,
4351
4235
  };
4352
4236
  };
4353
4237
  var deserializeAws_json1_1ImageScanFindingsSummary = function (output, context) {
4354
4238
  return {
4355
- findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null
4239
+ findingSeverityCounts: output.findingSeverityCounts != null
4356
4240
  ? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
4357
4241
  : undefined,
4358
- imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
4242
+ imageScanCompletedAt: output.imageScanCompletedAt != null
4359
4243
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imageScanCompletedAt)))
4360
4244
  : undefined,
4361
- vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
4245
+ vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
4362
4246
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vulnerabilitySourceUpdatedAt)))
4363
4247
  : undefined,
4364
4248
  };
@@ -4511,17 +4395,13 @@ var deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException = function (ou
4511
4395
  };
4512
4396
  var deserializeAws_json1_1LifecyclePolicyPreviewResult = function (output, context) {
4513
4397
  return {
4514
- action: output.action !== undefined && output.action !== null
4515
- ? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context)
4516
- : undefined,
4398
+ action: output.action != null ? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context) : undefined,
4517
4399
  appliedRulePriority: __expectInt32(output.appliedRulePriority),
4518
4400
  imageDigest: __expectString(output.imageDigest),
4519
- imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
4401
+ imagePushedAt: output.imagePushedAt != null
4520
4402
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
4521
4403
  : undefined,
4522
- imageTags: output.imageTags !== undefined && output.imageTags !== null
4523
- ? deserializeAws_json1_1ImageTagList(output.imageTags, context)
4524
- : undefined,
4404
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
4525
4405
  };
4526
4406
  };
4527
4407
  var deserializeAws_json1_1LifecyclePolicyPreviewResultList = function (output, context) {
@@ -4552,50 +4432,40 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
4552
4432
  };
4553
4433
  var deserializeAws_json1_1ListImagesResponse = function (output, context) {
4554
4434
  return {
4555
- imageIds: output.imageIds !== undefined && output.imageIds !== null
4556
- ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
4557
- : undefined,
4435
+ imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
4558
4436
  nextToken: __expectString(output.nextToken),
4559
4437
  };
4560
4438
  };
4561
4439
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
4562
4440
  return {
4563
- tags: output.tags !== undefined && output.tags !== null
4564
- ? deserializeAws_json1_1TagList(output.tags, context)
4565
- : undefined,
4441
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4566
4442
  };
4567
4443
  };
4568
4444
  var deserializeAws_json1_1PackageVulnerabilityDetails = function (output, context) {
4569
4445
  return {
4570
- cvss: output.cvss !== undefined && output.cvss !== null
4571
- ? deserializeAws_json1_1CvssScoreList(output.cvss, context)
4572
- : undefined,
4573
- referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
4574
- ? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context)
4575
- : undefined,
4576
- relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
4446
+ cvss: output.cvss != null ? deserializeAws_json1_1CvssScoreList(output.cvss, context) : undefined,
4447
+ referenceUrls: output.referenceUrls != null ? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context) : undefined,
4448
+ relatedVulnerabilities: output.relatedVulnerabilities != null
4577
4449
  ? deserializeAws_json1_1RelatedVulnerabilitiesList(output.relatedVulnerabilities, context)
4578
4450
  : undefined,
4579
4451
  source: __expectString(output.source),
4580
4452
  sourceUrl: __expectString(output.sourceUrl),
4581
- vendorCreatedAt: output.vendorCreatedAt !== undefined && output.vendorCreatedAt !== null
4453
+ vendorCreatedAt: output.vendorCreatedAt != null
4582
4454
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorCreatedAt)))
4583
4455
  : undefined,
4584
4456
  vendorSeverity: __expectString(output.vendorSeverity),
4585
- vendorUpdatedAt: output.vendorUpdatedAt !== undefined && output.vendorUpdatedAt !== null
4457
+ vendorUpdatedAt: output.vendorUpdatedAt != null
4586
4458
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
4587
4459
  : undefined,
4588
4460
  vulnerabilityId: __expectString(output.vulnerabilityId),
4589
- vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null
4461
+ vulnerablePackages: output.vulnerablePackages != null
4590
4462
  ? deserializeAws_json1_1VulnerablePackagesList(output.vulnerablePackages, context)
4591
4463
  : undefined,
4592
4464
  };
4593
4465
  };
4594
4466
  var deserializeAws_json1_1PullThroughCacheRule = function (output, context) {
4595
4467
  return {
4596
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4597
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
4598
- : undefined,
4468
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4599
4469
  ecrRepositoryPrefix: __expectString(output.ecrRepositoryPrefix),
4600
4470
  registryId: __expectString(output.registryId),
4601
4471
  upstreamRegistryUrl: __expectString(output.upstreamRegistryUrl),
@@ -4624,14 +4494,12 @@ var deserializeAws_json1_1PullThroughCacheRuleNotFoundException = function (outp
4624
4494
  };
4625
4495
  var deserializeAws_json1_1PutImageResponse = function (output, context) {
4626
4496
  return {
4627
- image: output.image !== undefined && output.image !== null
4628
- ? deserializeAws_json1_1Image(output.image, context)
4629
- : undefined,
4497
+ image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
4630
4498
  };
4631
4499
  };
4632
4500
  var deserializeAws_json1_1PutImageScanningConfigurationResponse = function (output, context) {
4633
4501
  return {
4634
- imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null
4502
+ imageScanningConfiguration: output.imageScanningConfiguration != null
4635
4503
  ? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
4636
4504
  : undefined,
4637
4505
  registryId: __expectString(output.registryId),
@@ -4660,14 +4528,14 @@ var deserializeAws_json1_1PutRegistryPolicyResponse = function (output, context)
4660
4528
  };
4661
4529
  var deserializeAws_json1_1PutRegistryScanningConfigurationResponse = function (output, context) {
4662
4530
  return {
4663
- registryScanningConfiguration: output.registryScanningConfiguration !== undefined && output.registryScanningConfiguration !== null
4531
+ registryScanningConfiguration: output.registryScanningConfiguration != null
4664
4532
  ? deserializeAws_json1_1RegistryScanningConfiguration(output.registryScanningConfiguration, context)
4665
4533
  : undefined,
4666
4534
  };
4667
4535
  };
4668
4536
  var deserializeAws_json1_1PutReplicationConfigurationResponse = function (output, context) {
4669
4537
  return {
4670
- replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null
4538
+ replicationConfiguration: output.replicationConfiguration != null
4671
4539
  ? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context)
4672
4540
  : undefined,
4673
4541
  };
@@ -4701,15 +4569,13 @@ var deserializeAws_json1_1RegistryPolicyNotFoundException = function (output, co
4701
4569
  };
4702
4570
  var deserializeAws_json1_1RegistryScanningConfiguration = function (output, context) {
4703
4571
  return {
4704
- rules: output.rules !== undefined && output.rules !== null
4705
- ? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context)
4706
- : undefined,
4572
+ rules: output.rules != null ? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context) : undefined,
4707
4573
  scanType: __expectString(output.scanType),
4708
4574
  };
4709
4575
  };
4710
4576
  var deserializeAws_json1_1RegistryScanningRule = function (output, context) {
4711
4577
  return {
4712
- repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
4578
+ repositoryFilters: output.repositoryFilters != null
4713
4579
  ? deserializeAws_json1_1ScanningRepositoryFilterList(output.repositoryFilters, context)
4714
4580
  : undefined,
4715
4581
  scanFrequency: __expectString(output.scanFrequency),
@@ -4739,16 +4605,12 @@ var deserializeAws_json1_1RelatedVulnerabilitiesList = function (output, context
4739
4605
  };
4740
4606
  var deserializeAws_json1_1Remediation = function (output, context) {
4741
4607
  return {
4742
- recommendation: output.recommendation !== undefined && output.recommendation !== null
4743
- ? deserializeAws_json1_1Recommendation(output.recommendation, context)
4744
- : undefined,
4608
+ recommendation: output.recommendation != null ? deserializeAws_json1_1Recommendation(output.recommendation, context) : undefined,
4745
4609
  };
4746
4610
  };
4747
4611
  var deserializeAws_json1_1ReplicationConfiguration = function (output, context) {
4748
4612
  return {
4749
- rules: output.rules !== undefined && output.rules !== null
4750
- ? deserializeAws_json1_1ReplicationRuleList(output.rules, context)
4751
- : undefined,
4613
+ rules: output.rules != null ? deserializeAws_json1_1ReplicationRuleList(output.rules, context) : undefined,
4752
4614
  };
4753
4615
  };
4754
4616
  var deserializeAws_json1_1ReplicationDestination = function (output, context) {
@@ -4770,10 +4632,10 @@ var deserializeAws_json1_1ReplicationDestinationList = function (output, context
4770
4632
  };
4771
4633
  var deserializeAws_json1_1ReplicationRule = function (output, context) {
4772
4634
  return {
4773
- destinations: output.destinations !== undefined && output.destinations !== null
4635
+ destinations: output.destinations != null
4774
4636
  ? deserializeAws_json1_1ReplicationDestinationList(output.destinations, context)
4775
4637
  : undefined,
4776
- repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
4638
+ repositoryFilters: output.repositoryFilters != null
4777
4639
  ? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context)
4778
4640
  : undefined,
4779
4641
  };
@@ -4791,13 +4653,11 @@ var deserializeAws_json1_1ReplicationRuleList = function (output, context) {
4791
4653
  };
4792
4654
  var deserializeAws_json1_1Repository = function (output, context) {
4793
4655
  return {
4794
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4795
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
4796
- : undefined,
4797
- encryptionConfiguration: output.encryptionConfiguration !== undefined && output.encryptionConfiguration !== null
4656
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4657
+ encryptionConfiguration: output.encryptionConfiguration != null
4798
4658
  ? deserializeAws_json1_1EncryptionConfiguration(output.encryptionConfiguration, context)
4799
4659
  : undefined,
4800
- imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null
4660
+ imageScanningConfiguration: output.imageScanningConfiguration != null
4801
4661
  ? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
4802
4662
  : undefined,
4803
4663
  imageTagMutability: __expectString(output.imageTagMutability),
@@ -4857,7 +4717,7 @@ var deserializeAws_json1_1RepositoryPolicyNotFoundException = function (output,
4857
4717
  };
4858
4718
  var deserializeAws_json1_1RepositoryScanningConfiguration = function (output, context) {
4859
4719
  return {
4860
- appliedScanFilters: output.appliedScanFilters !== undefined && output.appliedScanFilters !== null
4720
+ appliedScanFilters: output.appliedScanFilters != null
4861
4721
  ? deserializeAws_json1_1ScanningRepositoryFilterList(output.appliedScanFilters, context)
4862
4722
  : undefined,
4863
4723
  repositoryArn: __expectString(output.repositoryArn),
@@ -4897,17 +4757,15 @@ var deserializeAws_json1_1RepositoryScanningConfigurationList = function (output
4897
4757
  };
4898
4758
  var deserializeAws_json1_1Resource = function (output, context) {
4899
4759
  return {
4900
- details: output.details !== undefined && output.details !== null
4901
- ? deserializeAws_json1_1ResourceDetails(output.details, context)
4902
- : undefined,
4760
+ details: output.details != null ? deserializeAws_json1_1ResourceDetails(output.details, context) : undefined,
4903
4761
  id: __expectString(output.id),
4904
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
4762
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
4905
4763
  type: __expectString(output.type),
4906
4764
  };
4907
4765
  };
4908
4766
  var deserializeAws_json1_1ResourceDetails = function (output, context) {
4909
4767
  return {
4910
- awsEcrContainerImage: output.awsEcrContainerImage !== undefined && output.awsEcrContainerImage !== null
4768
+ awsEcrContainerImage: output.awsEcrContainerImage != null
4911
4769
  ? deserializeAws_json1_1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
4912
4770
  : undefined,
4913
4771
  };
@@ -4947,9 +4805,7 @@ var deserializeAws_json1_1ScanNotFoundException = function (output, context) {
4947
4805
  };
4948
4806
  var deserializeAws_json1_1ScoreDetails = function (output, context) {
4949
4807
  return {
4950
- cvss: output.cvss !== undefined && output.cvss !== null
4951
- ? deserializeAws_json1_1CvssScoreDetails(output.cvss, context)
4952
- : undefined,
4808
+ cvss: output.cvss != null ? deserializeAws_json1_1CvssScoreDetails(output.cvss, context) : undefined,
4953
4809
  };
4954
4810
  };
4955
4811
  var deserializeAws_json1_1ServerException = function (output, context) {
@@ -4966,10 +4822,8 @@ var deserializeAws_json1_1SetRepositoryPolicyResponse = function (output, contex
4966
4822
  };
4967
4823
  var deserializeAws_json1_1StartImageScanResponse = function (output, context) {
4968
4824
  return {
4969
- imageId: output.imageId !== undefined && output.imageId !== null
4970
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4971
- : undefined,
4972
- imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
4825
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
4826
+ imageScanStatus: output.imageScanStatus != null
4973
4827
  ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
4974
4828
  : undefined,
4975
4829
  registryId: __expectString(output.registryId),