@aws-sdk/client-ecr 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.
@@ -2643,22 +2643,18 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
2643
2643
  };
2644
2644
  const serializeAws_json1_1BatchCheckLayerAvailabilityRequest = (input, context) => {
2645
2645
  return {
2646
- ...(input.layerDigests !== undefined &&
2647
- input.layerDigests !== null && {
2646
+ ...(input.layerDigests != null && {
2648
2647
  layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context),
2649
2648
  }),
2650
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2651
- ...(input.repositoryName !== undefined &&
2652
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2649
+ ...(input.registryId != null && { registryId: input.registryId }),
2650
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2653
2651
  };
2654
2652
  };
2655
2653
  const serializeAws_json1_1BatchDeleteImageRequest = (input, context) => {
2656
2654
  return {
2657
- ...(input.imageIds !== undefined &&
2658
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
2659
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2660
- ...(input.repositoryName !== undefined &&
2661
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2655
+ ...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
2656
+ ...(input.registryId != null && { registryId: input.registryId }),
2657
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2662
2658
  };
2663
2659
  };
2664
2660
  const serializeAws_json1_1BatchedOperationLayerDigestList = (input, context) => {
@@ -2673,76 +2669,62 @@ const serializeAws_json1_1BatchedOperationLayerDigestList = (input, context) =>
2673
2669
  };
2674
2670
  const serializeAws_json1_1BatchGetImageRequest = (input, context) => {
2675
2671
  return {
2676
- ...(input.acceptedMediaTypes !== undefined &&
2677
- input.acceptedMediaTypes !== null && {
2672
+ ...(input.acceptedMediaTypes != null && {
2678
2673
  acceptedMediaTypes: serializeAws_json1_1MediaTypeList(input.acceptedMediaTypes, context),
2679
2674
  }),
2680
- ...(input.imageIds !== undefined &&
2681
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
2682
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2683
- ...(input.repositoryName !== undefined &&
2684
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2675
+ ...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
2676
+ ...(input.registryId != null && { registryId: input.registryId }),
2677
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2685
2678
  };
2686
2679
  };
2687
2680
  const serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest = (input, context) => {
2688
2681
  return {
2689
- ...(input.repositoryNames !== undefined &&
2690
- input.repositoryNames !== null && {
2682
+ ...(input.repositoryNames != null && {
2691
2683
  repositoryNames: serializeAws_json1_1ScanningConfigurationRepositoryNameList(input.repositoryNames, context),
2692
2684
  }),
2693
2685
  };
2694
2686
  };
2695
2687
  const serializeAws_json1_1CompleteLayerUploadRequest = (input, context) => {
2696
2688
  return {
2697
- ...(input.layerDigests !== undefined &&
2698
- input.layerDigests !== null && {
2689
+ ...(input.layerDigests != null && {
2699
2690
  layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
2700
2691
  }),
2701
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2702
- ...(input.repositoryName !== undefined &&
2703
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2704
- ...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
2692
+ ...(input.registryId != null && { registryId: input.registryId }),
2693
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2694
+ ...(input.uploadId != null && { uploadId: input.uploadId }),
2705
2695
  };
2706
2696
  };
2707
2697
  const serializeAws_json1_1CreatePullThroughCacheRuleRequest = (input, context) => {
2708
2698
  return {
2709
- ...(input.ecrRepositoryPrefix !== undefined &&
2710
- input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
2711
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2712
- ...(input.upstreamRegistryUrl !== undefined &&
2713
- input.upstreamRegistryUrl !== null && { upstreamRegistryUrl: input.upstreamRegistryUrl }),
2699
+ ...(input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
2700
+ ...(input.registryId != null && { registryId: input.registryId }),
2701
+ ...(input.upstreamRegistryUrl != null && { upstreamRegistryUrl: input.upstreamRegistryUrl }),
2714
2702
  };
2715
2703
  };
2716
2704
  const serializeAws_json1_1CreateRepositoryRequest = (input, context) => {
2717
2705
  return {
2718
- ...(input.encryptionConfiguration !== undefined &&
2719
- input.encryptionConfiguration !== null && {
2706
+ ...(input.encryptionConfiguration != null && {
2720
2707
  encryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.encryptionConfiguration, context),
2721
2708
  }),
2722
- ...(input.imageScanningConfiguration !== undefined &&
2723
- input.imageScanningConfiguration !== null && {
2709
+ ...(input.imageScanningConfiguration != null && {
2724
2710
  imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context),
2725
2711
  }),
2726
- ...(input.imageTagMutability !== undefined &&
2727
- input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability }),
2728
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2729
- ...(input.repositoryName !== undefined &&
2730
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2731
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
2712
+ ...(input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability }),
2713
+ ...(input.registryId != null && { registryId: input.registryId }),
2714
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2715
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
2732
2716
  };
2733
2717
  };
2734
2718
  const serializeAws_json1_1DeleteLifecyclePolicyRequest = (input, context) => {
2735
2719
  return {
2736
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2737
- ...(input.repositoryName !== undefined &&
2738
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2720
+ ...(input.registryId != null && { registryId: input.registryId }),
2721
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2739
2722
  };
2740
2723
  };
2741
2724
  const serializeAws_json1_1DeletePullThroughCacheRuleRequest = (input, context) => {
2742
2725
  return {
2743
- ...(input.ecrRepositoryPrefix !== undefined &&
2744
- input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
2745
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2726
+ ...(input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
2727
+ ...(input.registryId != null && { registryId: input.registryId }),
2746
2728
  };
2747
2729
  };
2748
2730
  const serializeAws_json1_1DeleteRegistryPolicyRequest = (input, context) => {
@@ -2750,66 +2732,56 @@ const serializeAws_json1_1DeleteRegistryPolicyRequest = (input, context) => {
2750
2732
  };
2751
2733
  const serializeAws_json1_1DeleteRepositoryPolicyRequest = (input, context) => {
2752
2734
  return {
2753
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2754
- ...(input.repositoryName !== undefined &&
2755
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2735
+ ...(input.registryId != null && { registryId: input.registryId }),
2736
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2756
2737
  };
2757
2738
  };
2758
2739
  const serializeAws_json1_1DeleteRepositoryRequest = (input, context) => {
2759
2740
  return {
2760
- ...(input.force !== undefined && input.force !== null && { force: input.force }),
2761
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2762
- ...(input.repositoryName !== undefined &&
2763
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2741
+ ...(input.force != null && { force: input.force }),
2742
+ ...(input.registryId != null && { registryId: input.registryId }),
2743
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2764
2744
  };
2765
2745
  };
2766
2746
  const serializeAws_json1_1DescribeImageReplicationStatusRequest = (input, context) => {
2767
2747
  return {
2768
- ...(input.imageId !== undefined &&
2769
- input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
2770
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2771
- ...(input.repositoryName !== undefined &&
2772
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2748
+ ...(input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
2749
+ ...(input.registryId != null && { registryId: input.registryId }),
2750
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2773
2751
  };
2774
2752
  };
2775
2753
  const serializeAws_json1_1DescribeImageScanFindingsRequest = (input, context) => {
2776
2754
  return {
2777
- ...(input.imageId !== undefined &&
2778
- input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
2779
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2780
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2781
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2782
- ...(input.repositoryName !== undefined &&
2783
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2755
+ ...(input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
2756
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2757
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2758
+ ...(input.registryId != null && { registryId: input.registryId }),
2759
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2784
2760
  };
2785
2761
  };
2786
2762
  const serializeAws_json1_1DescribeImagesFilter = (input, context) => {
2787
2763
  return {
2788
- ...(input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }),
2764
+ ...(input.tagStatus != null && { tagStatus: input.tagStatus }),
2789
2765
  };
2790
2766
  };
2791
2767
  const serializeAws_json1_1DescribeImagesRequest = (input, context) => {
2792
2768
  return {
2793
- ...(input.filter !== undefined &&
2794
- input.filter !== null && { filter: serializeAws_json1_1DescribeImagesFilter(input.filter, context) }),
2795
- ...(input.imageIds !== undefined &&
2796
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
2797
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2798
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2799
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2800
- ...(input.repositoryName !== undefined &&
2801
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2769
+ ...(input.filter != null && { filter: serializeAws_json1_1DescribeImagesFilter(input.filter, context) }),
2770
+ ...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
2771
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2772
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2773
+ ...(input.registryId != null && { registryId: input.registryId }),
2774
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2802
2775
  };
2803
2776
  };
2804
2777
  const serializeAws_json1_1DescribePullThroughCacheRulesRequest = (input, context) => {
2805
2778
  return {
2806
- ...(input.ecrRepositoryPrefixes !== undefined &&
2807
- input.ecrRepositoryPrefixes !== null && {
2779
+ ...(input.ecrRepositoryPrefixes != null && {
2808
2780
  ecrRepositoryPrefixes: serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(input.ecrRepositoryPrefixes, context),
2809
2781
  }),
2810
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2811
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2812
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2782
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2783
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2784
+ ...(input.registryId != null && { registryId: input.registryId }),
2813
2785
  };
2814
2786
  };
2815
2787
  const serializeAws_json1_1DescribeRegistryRequest = (input, context) => {
@@ -2817,20 +2789,18 @@ const serializeAws_json1_1DescribeRegistryRequest = (input, context) => {
2817
2789
  };
2818
2790
  const serializeAws_json1_1DescribeRepositoriesRequest = (input, context) => {
2819
2791
  return {
2820
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2821
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2822
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2823
- ...(input.repositoryNames !== undefined &&
2824
- input.repositoryNames !== null && {
2792
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2793
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2794
+ ...(input.registryId != null && { registryId: input.registryId }),
2795
+ ...(input.repositoryNames != null && {
2825
2796
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
2826
2797
  }),
2827
2798
  };
2828
2799
  };
2829
2800
  const serializeAws_json1_1EncryptionConfiguration = (input, context) => {
2830
2801
  return {
2831
- ...(input.encryptionType !== undefined &&
2832
- input.encryptionType !== null && { encryptionType: input.encryptionType }),
2833
- ...(input.kmsKey !== undefined && input.kmsKey !== null && { kmsKey: input.kmsKey }),
2802
+ ...(input.encryptionType != null && { encryptionType: input.encryptionType }),
2803
+ ...(input.kmsKey != null && { kmsKey: input.kmsKey }),
2834
2804
  };
2835
2805
  };
2836
2806
  const serializeAws_json1_1GetAuthorizationTokenRegistryIdList = (input, context) => {
@@ -2845,38 +2815,32 @@ const serializeAws_json1_1GetAuthorizationTokenRegistryIdList = (input, context)
2845
2815
  };
2846
2816
  const serializeAws_json1_1GetAuthorizationTokenRequest = (input, context) => {
2847
2817
  return {
2848
- ...(input.registryIds !== undefined &&
2849
- input.registryIds !== null && {
2818
+ ...(input.registryIds != null && {
2850
2819
  registryIds: serializeAws_json1_1GetAuthorizationTokenRegistryIdList(input.registryIds, context),
2851
2820
  }),
2852
2821
  };
2853
2822
  };
2854
2823
  const serializeAws_json1_1GetDownloadUrlForLayerRequest = (input, context) => {
2855
2824
  return {
2856
- ...(input.layerDigest !== undefined && input.layerDigest !== null && { layerDigest: input.layerDigest }),
2857
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2858
- ...(input.repositoryName !== undefined &&
2859
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2825
+ ...(input.layerDigest != null && { layerDigest: input.layerDigest }),
2826
+ ...(input.registryId != null && { registryId: input.registryId }),
2827
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2860
2828
  };
2861
2829
  };
2862
2830
  const serializeAws_json1_1GetLifecyclePolicyPreviewRequest = (input, context) => {
2863
2831
  return {
2864
- ...(input.filter !== undefined &&
2865
- input.filter !== null && { filter: serializeAws_json1_1LifecyclePolicyPreviewFilter(input.filter, context) }),
2866
- ...(input.imageIds !== undefined &&
2867
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
2868
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2869
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2870
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2871
- ...(input.repositoryName !== undefined &&
2872
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2832
+ ...(input.filter != null && { filter: serializeAws_json1_1LifecyclePolicyPreviewFilter(input.filter, context) }),
2833
+ ...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
2834
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2835
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2836
+ ...(input.registryId != null && { registryId: input.registryId }),
2837
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2873
2838
  };
2874
2839
  };
2875
2840
  const serializeAws_json1_1GetLifecyclePolicyRequest = (input, context) => {
2876
2841
  return {
2877
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2878
- ...(input.repositoryName !== undefined &&
2879
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2842
+ ...(input.registryId != null && { registryId: input.registryId }),
2843
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2880
2844
  };
2881
2845
  };
2882
2846
  const serializeAws_json1_1GetRegistryPolicyRequest = (input, context) => {
@@ -2887,15 +2851,14 @@ const serializeAws_json1_1GetRegistryScanningConfigurationRequest = (input, cont
2887
2851
  };
2888
2852
  const serializeAws_json1_1GetRepositoryPolicyRequest = (input, context) => {
2889
2853
  return {
2890
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2891
- ...(input.repositoryName !== undefined &&
2892
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2854
+ ...(input.registryId != null && { registryId: input.registryId }),
2855
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2893
2856
  };
2894
2857
  };
2895
2858
  const serializeAws_json1_1ImageIdentifier = (input, context) => {
2896
2859
  return {
2897
- ...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }),
2898
- ...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }),
2860
+ ...(input.imageDigest != null && { imageDigest: input.imageDigest }),
2861
+ ...(input.imageTag != null && { imageTag: input.imageTag }),
2899
2862
  };
2900
2863
  };
2901
2864
  const serializeAws_json1_1ImageIdentifierList = (input, context) => {
@@ -2910,14 +2873,13 @@ const serializeAws_json1_1ImageIdentifierList = (input, context) => {
2910
2873
  };
2911
2874
  const serializeAws_json1_1ImageScanningConfiguration = (input, context) => {
2912
2875
  return {
2913
- ...(input.scanOnPush !== undefined && input.scanOnPush !== null && { scanOnPush: input.scanOnPush }),
2876
+ ...(input.scanOnPush != null && { scanOnPush: input.scanOnPush }),
2914
2877
  };
2915
2878
  };
2916
2879
  const serializeAws_json1_1InitiateLayerUploadRequest = (input, context) => {
2917
2880
  return {
2918
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2919
- ...(input.repositoryName !== undefined &&
2920
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2881
+ ...(input.registryId != null && { registryId: input.registryId }),
2882
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2921
2883
  };
2922
2884
  };
2923
2885
  const serializeAws_json1_1LayerDigestList = (input, context) => {
@@ -2932,28 +2894,26 @@ const serializeAws_json1_1LayerDigestList = (input, context) => {
2932
2894
  };
2933
2895
  const serializeAws_json1_1LifecyclePolicyPreviewFilter = (input, context) => {
2934
2896
  return {
2935
- ...(input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }),
2897
+ ...(input.tagStatus != null && { tagStatus: input.tagStatus }),
2936
2898
  };
2937
2899
  };
2938
2900
  const serializeAws_json1_1ListImagesFilter = (input, context) => {
2939
2901
  return {
2940
- ...(input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }),
2902
+ ...(input.tagStatus != null && { tagStatus: input.tagStatus }),
2941
2903
  };
2942
2904
  };
2943
2905
  const serializeAws_json1_1ListImagesRequest = (input, context) => {
2944
2906
  return {
2945
- ...(input.filter !== undefined &&
2946
- input.filter !== null && { filter: serializeAws_json1_1ListImagesFilter(input.filter, context) }),
2947
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2948
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2949
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2950
- ...(input.repositoryName !== undefined &&
2951
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2907
+ ...(input.filter != null && { filter: serializeAws_json1_1ListImagesFilter(input.filter, context) }),
2908
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2909
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2910
+ ...(input.registryId != null && { registryId: input.registryId }),
2911
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2952
2912
  };
2953
2913
  };
2954
2914
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
2955
2915
  return {
2956
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
2916
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2957
2917
  };
2958
2918
  };
2959
2919
  const serializeAws_json1_1MediaTypeList = (input, context) => {
@@ -2978,72 +2938,61 @@ const serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList = (input, con
2978
2938
  };
2979
2939
  const serializeAws_json1_1PutImageRequest = (input, context) => {
2980
2940
  return {
2981
- ...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }),
2982
- ...(input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest }),
2983
- ...(input.imageManifestMediaType !== undefined &&
2984
- input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType }),
2985
- ...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }),
2986
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2987
- ...(input.repositoryName !== undefined &&
2988
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2941
+ ...(input.imageDigest != null && { imageDigest: input.imageDigest }),
2942
+ ...(input.imageManifest != null && { imageManifest: input.imageManifest }),
2943
+ ...(input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType }),
2944
+ ...(input.imageTag != null && { imageTag: input.imageTag }),
2945
+ ...(input.registryId != null && { registryId: input.registryId }),
2946
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2989
2947
  };
2990
2948
  };
2991
2949
  const serializeAws_json1_1PutImageScanningConfigurationRequest = (input, context) => {
2992
2950
  return {
2993
- ...(input.imageScanningConfiguration !== undefined &&
2994
- input.imageScanningConfiguration !== null && {
2951
+ ...(input.imageScanningConfiguration != null && {
2995
2952
  imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context),
2996
2953
  }),
2997
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
2998
- ...(input.repositoryName !== undefined &&
2999
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2954
+ ...(input.registryId != null && { registryId: input.registryId }),
2955
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
3000
2956
  };
3001
2957
  };
3002
2958
  const serializeAws_json1_1PutImageTagMutabilityRequest = (input, context) => {
3003
2959
  return {
3004
- ...(input.imageTagMutability !== undefined &&
3005
- input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability }),
3006
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3007
- ...(input.repositoryName !== undefined &&
3008
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2960
+ ...(input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability }),
2961
+ ...(input.registryId != null && { registryId: input.registryId }),
2962
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
3009
2963
  };
3010
2964
  };
3011
2965
  const serializeAws_json1_1PutLifecyclePolicyRequest = (input, context) => {
3012
2966
  return {
3013
- ...(input.lifecyclePolicyText !== undefined &&
3014
- input.lifecyclePolicyText !== null && { lifecyclePolicyText: input.lifecyclePolicyText }),
3015
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3016
- ...(input.repositoryName !== undefined &&
3017
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
2967
+ ...(input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText }),
2968
+ ...(input.registryId != null && { registryId: input.registryId }),
2969
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
3018
2970
  };
3019
2971
  };
3020
2972
  const serializeAws_json1_1PutRegistryPolicyRequest = (input, context) => {
3021
2973
  return {
3022
- ...(input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }),
2974
+ ...(input.policyText != null && { policyText: input.policyText }),
3023
2975
  };
3024
2976
  };
3025
2977
  const serializeAws_json1_1PutRegistryScanningConfigurationRequest = (input, context) => {
3026
2978
  return {
3027
- ...(input.rules !== undefined &&
3028
- input.rules !== null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) }),
3029
- ...(input.scanType !== undefined && input.scanType !== null && { scanType: input.scanType }),
2979
+ ...(input.rules != null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) }),
2980
+ ...(input.scanType != null && { scanType: input.scanType }),
3030
2981
  };
3031
2982
  };
3032
2983
  const serializeAws_json1_1PutReplicationConfigurationRequest = (input, context) => {
3033
2984
  return {
3034
- ...(input.replicationConfiguration !== undefined &&
3035
- input.replicationConfiguration !== null && {
2985
+ ...(input.replicationConfiguration != null && {
3036
2986
  replicationConfiguration: serializeAws_json1_1ReplicationConfiguration(input.replicationConfiguration, context),
3037
2987
  }),
3038
2988
  };
3039
2989
  };
3040
2990
  const serializeAws_json1_1RegistryScanningRule = (input, context) => {
3041
2991
  return {
3042
- ...(input.repositoryFilters !== undefined &&
3043
- input.repositoryFilters !== null && {
2992
+ ...(input.repositoryFilters != null && {
3044
2993
  repositoryFilters: serializeAws_json1_1ScanningRepositoryFilterList(input.repositoryFilters, context),
3045
2994
  }),
3046
- ...(input.scanFrequency !== undefined && input.scanFrequency !== null && { scanFrequency: input.scanFrequency }),
2995
+ ...(input.scanFrequency != null && { scanFrequency: input.scanFrequency }),
3047
2996
  };
3048
2997
  };
3049
2998
  const serializeAws_json1_1RegistryScanningRuleList = (input, context) => {
@@ -3058,14 +3007,13 @@ const serializeAws_json1_1RegistryScanningRuleList = (input, context) => {
3058
3007
  };
3059
3008
  const serializeAws_json1_1ReplicationConfiguration = (input, context) => {
3060
3009
  return {
3061
- ...(input.rules !== undefined &&
3062
- input.rules !== null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }),
3010
+ ...(input.rules != null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }),
3063
3011
  };
3064
3012
  };
3065
3013
  const serializeAws_json1_1ReplicationDestination = (input, context) => {
3066
3014
  return {
3067
- ...(input.region !== undefined && input.region !== null && { region: input.region }),
3068
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3015
+ ...(input.region != null && { region: input.region }),
3016
+ ...(input.registryId != null && { registryId: input.registryId }),
3069
3017
  };
3070
3018
  };
3071
3019
  const serializeAws_json1_1ReplicationDestinationList = (input, context) => {
@@ -3080,12 +3028,10 @@ const serializeAws_json1_1ReplicationDestinationList = (input, context) => {
3080
3028
  };
3081
3029
  const serializeAws_json1_1ReplicationRule = (input, context) => {
3082
3030
  return {
3083
- ...(input.destinations !== undefined &&
3084
- input.destinations !== null && {
3031
+ ...(input.destinations != null && {
3085
3032
  destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context),
3086
3033
  }),
3087
- ...(input.repositoryFilters !== undefined &&
3088
- input.repositoryFilters !== null && {
3034
+ ...(input.repositoryFilters != null && {
3089
3035
  repositoryFilters: serializeAws_json1_1RepositoryFilterList(input.repositoryFilters, context),
3090
3036
  }),
3091
3037
  };
@@ -3102,8 +3048,8 @@ const serializeAws_json1_1ReplicationRuleList = (input, context) => {
3102
3048
  };
3103
3049
  const serializeAws_json1_1RepositoryFilter = (input, context) => {
3104
3050
  return {
3105
- ...(input.filter !== undefined && input.filter !== null && { filter: input.filter }),
3106
- ...(input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }),
3051
+ ...(input.filter != null && { filter: input.filter }),
3052
+ ...(input.filterType != null && { filterType: input.filterType }),
3107
3053
  };
3108
3054
  };
3109
3055
  const serializeAws_json1_1RepositoryFilterList = (input, context) => {
@@ -3138,8 +3084,8 @@ const serializeAws_json1_1ScanningConfigurationRepositoryNameList = (input, cont
3138
3084
  };
3139
3085
  const serializeAws_json1_1ScanningRepositoryFilter = (input, context) => {
3140
3086
  return {
3141
- ...(input.filter !== undefined && input.filter !== null && { filter: input.filter }),
3142
- ...(input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }),
3087
+ ...(input.filter != null && { filter: input.filter }),
3088
+ ...(input.filterType != null && { filterType: input.filterType }),
3143
3089
  };
3144
3090
  };
3145
3091
  const serializeAws_json1_1ScanningRepositoryFilterList = (input, context) => {
@@ -3154,35 +3100,30 @@ const serializeAws_json1_1ScanningRepositoryFilterList = (input, context) => {
3154
3100
  };
3155
3101
  const serializeAws_json1_1SetRepositoryPolicyRequest = (input, context) => {
3156
3102
  return {
3157
- ...(input.force !== undefined && input.force !== null && { force: input.force }),
3158
- ...(input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }),
3159
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3160
- ...(input.repositoryName !== undefined &&
3161
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
3103
+ ...(input.force != null && { force: input.force }),
3104
+ ...(input.policyText != null && { policyText: input.policyText }),
3105
+ ...(input.registryId != null && { registryId: input.registryId }),
3106
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
3162
3107
  };
3163
3108
  };
3164
3109
  const serializeAws_json1_1StartImageScanRequest = (input, context) => {
3165
3110
  return {
3166
- ...(input.imageId !== undefined &&
3167
- input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
3168
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3169
- ...(input.repositoryName !== undefined &&
3170
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
3111
+ ...(input.imageId != null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }),
3112
+ ...(input.registryId != null && { registryId: input.registryId }),
3113
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
3171
3114
  };
3172
3115
  };
3173
3116
  const serializeAws_json1_1StartLifecyclePolicyPreviewRequest = (input, context) => {
3174
3117
  return {
3175
- ...(input.lifecyclePolicyText !== undefined &&
3176
- input.lifecyclePolicyText !== null && { lifecyclePolicyText: input.lifecyclePolicyText }),
3177
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3178
- ...(input.repositoryName !== undefined &&
3179
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
3118
+ ...(input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText }),
3119
+ ...(input.registryId != null && { registryId: input.registryId }),
3120
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
3180
3121
  };
3181
3122
  };
3182
3123
  const serializeAws_json1_1Tag = (input, context) => {
3183
3124
  return {
3184
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
3185
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
3125
+ ...(input.Key != null && { Key: input.Key }),
3126
+ ...(input.Value != null && { Value: input.Value }),
3186
3127
  };
3187
3128
  };
3188
3129
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -3207,27 +3148,24 @@ const serializeAws_json1_1TagList = (input, context) => {
3207
3148
  };
3208
3149
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
3209
3150
  return {
3210
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3211
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3151
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3152
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3212
3153
  };
3213
3154
  };
3214
3155
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
3215
3156
  return {
3216
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3217
- ...(input.tagKeys !== undefined &&
3218
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
3157
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3158
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
3219
3159
  };
3220
3160
  };
3221
3161
  const serializeAws_json1_1UploadLayerPartRequest = (input, context) => {
3222
3162
  return {
3223
- ...(input.layerPartBlob !== undefined &&
3224
- input.layerPartBlob !== null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
3225
- ...(input.partFirstByte !== undefined && input.partFirstByte !== null && { partFirstByte: input.partFirstByte }),
3226
- ...(input.partLastByte !== undefined && input.partLastByte !== null && { partLastByte: input.partLastByte }),
3227
- ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3228
- ...(input.repositoryName !== undefined &&
3229
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
3230
- ...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
3163
+ ...(input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
3164
+ ...(input.partFirstByte != null && { partFirstByte: input.partFirstByte }),
3165
+ ...(input.partLastByte != null && { partLastByte: input.partLastByte }),
3166
+ ...(input.registryId != null && { registryId: input.registryId }),
3167
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
3168
+ ...(input.uploadId != null && { uploadId: input.uploadId }),
3231
3169
  };
3232
3170
  };
3233
3171
  const deserializeAws_json1_1Attribute = (output, context) => {
@@ -3250,9 +3188,7 @@ const deserializeAws_json1_1AttributeList = (output, context) => {
3250
3188
  const deserializeAws_json1_1AuthorizationData = (output, context) => {
3251
3189
  return {
3252
3190
  authorizationToken: (0, smithy_client_1.expectString)(output.authorizationToken),
3253
- expiresAt: output.expiresAt !== undefined && output.expiresAt !== null
3254
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiresAt)))
3255
- : undefined,
3191
+ expiresAt: output.expiresAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiresAt))) : undefined,
3256
3192
  proxyEndpoint: (0, smithy_client_1.expectString)(output.proxyEndpoint),
3257
3193
  };
3258
3194
  };
@@ -3272,53 +3208,37 @@ const deserializeAws_json1_1AwsEcrContainerImageDetails = (output, context) => {
3272
3208
  architecture: (0, smithy_client_1.expectString)(output.architecture),
3273
3209
  author: (0, smithy_client_1.expectString)(output.author),
3274
3210
  imageHash: (0, smithy_client_1.expectString)(output.imageHash),
3275
- imageTags: output.imageTags !== undefined && output.imageTags !== null
3276
- ? deserializeAws_json1_1ImageTagsList(output.imageTags, context)
3277
- : undefined,
3211
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagsList(output.imageTags, context) : undefined,
3278
3212
  platform: (0, smithy_client_1.expectString)(output.platform),
3279
- pushedAt: output.pushedAt !== undefined && output.pushedAt !== null
3280
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt)))
3281
- : undefined,
3213
+ pushedAt: output.pushedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt))) : undefined,
3282
3214
  registry: (0, smithy_client_1.expectString)(output.registry),
3283
3215
  repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3284
3216
  };
3285
3217
  };
3286
3218
  const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = (output, context) => {
3287
3219
  return {
3288
- failures: output.failures !== undefined && output.failures !== null
3289
- ? deserializeAws_json1_1LayerFailureList(output.failures, context)
3290
- : undefined,
3291
- layers: output.layers !== undefined && output.layers !== null
3292
- ? deserializeAws_json1_1LayerList(output.layers, context)
3293
- : undefined,
3220
+ failures: output.failures != null ? deserializeAws_json1_1LayerFailureList(output.failures, context) : undefined,
3221
+ layers: output.layers != null ? deserializeAws_json1_1LayerList(output.layers, context) : undefined,
3294
3222
  };
3295
3223
  };
3296
3224
  const deserializeAws_json1_1BatchDeleteImageResponse = (output, context) => {
3297
3225
  return {
3298
- failures: output.failures !== undefined && output.failures !== null
3299
- ? deserializeAws_json1_1ImageFailureList(output.failures, context)
3300
- : undefined,
3301
- imageIds: output.imageIds !== undefined && output.imageIds !== null
3302
- ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
3303
- : undefined,
3226
+ failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
3227
+ imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
3304
3228
  };
3305
3229
  };
3306
3230
  const deserializeAws_json1_1BatchGetImageResponse = (output, context) => {
3307
3231
  return {
3308
- failures: output.failures !== undefined && output.failures !== null
3309
- ? deserializeAws_json1_1ImageFailureList(output.failures, context)
3310
- : undefined,
3311
- images: output.images !== undefined && output.images !== null
3312
- ? deserializeAws_json1_1ImageList(output.images, context)
3313
- : undefined,
3232
+ failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
3233
+ images: output.images != null ? deserializeAws_json1_1ImageList(output.images, context) : undefined,
3314
3234
  };
3315
3235
  };
3316
3236
  const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse = (output, context) => {
3317
3237
  return {
3318
- failures: output.failures !== undefined && output.failures !== null
3238
+ failures: output.failures != null
3319
3239
  ? deserializeAws_json1_1RepositoryScanningConfigurationFailureList(output.failures, context)
3320
3240
  : undefined,
3321
- scanningConfigurations: output.scanningConfigurations !== undefined && output.scanningConfigurations !== null
3241
+ scanningConfigurations: output.scanningConfigurations != null
3322
3242
  ? deserializeAws_json1_1RepositoryScanningConfigurationList(output.scanningConfigurations, context)
3323
3243
  : undefined,
3324
3244
  };
@@ -3333,9 +3253,7 @@ const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
3333
3253
  };
3334
3254
  const deserializeAws_json1_1CreatePullThroughCacheRuleResponse = (output, context) => {
3335
3255
  return {
3336
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3337
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3338
- : undefined,
3256
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3339
3257
  ecrRepositoryPrefix: (0, smithy_client_1.expectString)(output.ecrRepositoryPrefix),
3340
3258
  registryId: (0, smithy_client_1.expectString)(output.registryId),
3341
3259
  upstreamRegistryUrl: (0, smithy_client_1.expectString)(output.upstreamRegistryUrl),
@@ -3343,9 +3261,7 @@ const deserializeAws_json1_1CreatePullThroughCacheRuleResponse = (output, contex
3343
3261
  };
3344
3262
  const deserializeAws_json1_1CreateRepositoryResponse = (output, context) => {
3345
3263
  return {
3346
- repository: output.repository !== undefined && output.repository !== null
3347
- ? deserializeAws_json1_1Repository(output.repository, context)
3348
- : undefined,
3264
+ repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
3349
3265
  };
3350
3266
  };
3351
3267
  const deserializeAws_json1_1CvssScore = (output, context) => {
@@ -3375,7 +3291,7 @@ const deserializeAws_json1_1CvssScoreAdjustmentList = (output, context) => {
3375
3291
  };
3376
3292
  const deserializeAws_json1_1CvssScoreDetails = (output, context) => {
3377
3293
  return {
3378
- adjustments: output.adjustments !== undefined && output.adjustments !== null
3294
+ adjustments: output.adjustments != null
3379
3295
  ? deserializeAws_json1_1CvssScoreAdjustmentList(output.adjustments, context)
3380
3296
  : undefined,
3381
3297
  score: (0, smithy_client_1.limitedParseDouble)(output.score),
@@ -3397,7 +3313,7 @@ const deserializeAws_json1_1CvssScoreList = (output, context) => {
3397
3313
  };
3398
3314
  const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) => {
3399
3315
  return {
3400
- lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
3316
+ lastEvaluatedAt: output.lastEvaluatedAt != null
3401
3317
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastEvaluatedAt)))
3402
3318
  : undefined,
3403
3319
  lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
@@ -3407,9 +3323,7 @@ const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) =>
3407
3323
  };
3408
3324
  const deserializeAws_json1_1DeletePullThroughCacheRuleResponse = (output, context) => {
3409
3325
  return {
3410
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3411
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3412
- : undefined,
3326
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3413
3327
  ecrRepositoryPrefix: (0, smithy_client_1.expectString)(output.ecrRepositoryPrefix),
3414
3328
  registryId: (0, smithy_client_1.expectString)(output.registryId),
3415
3329
  upstreamRegistryUrl: (0, smithy_client_1.expectString)(output.upstreamRegistryUrl),
@@ -3430,17 +3344,13 @@ const deserializeAws_json1_1DeleteRepositoryPolicyResponse = (output, context) =
3430
3344
  };
3431
3345
  const deserializeAws_json1_1DeleteRepositoryResponse = (output, context) => {
3432
3346
  return {
3433
- repository: output.repository !== undefined && output.repository !== null
3434
- ? deserializeAws_json1_1Repository(output.repository, context)
3435
- : undefined,
3347
+ repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
3436
3348
  };
3437
3349
  };
3438
3350
  const deserializeAws_json1_1DescribeImageReplicationStatusResponse = (output, context) => {
3439
3351
  return {
3440
- imageId: output.imageId !== undefined && output.imageId !== null
3441
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
3442
- : undefined,
3443
- replicationStatuses: output.replicationStatuses !== undefined && output.replicationStatuses !== null
3352
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
3353
+ replicationStatuses: output.replicationStatuses != null
3444
3354
  ? deserializeAws_json1_1ImageReplicationStatusList(output.replicationStatuses, context)
3445
3355
  : undefined,
3446
3356
  repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
@@ -3448,13 +3358,11 @@ const deserializeAws_json1_1DescribeImageReplicationStatusResponse = (output, co
3448
3358
  };
3449
3359
  const deserializeAws_json1_1DescribeImageScanFindingsResponse = (output, context) => {
3450
3360
  return {
3451
- imageId: output.imageId !== undefined && output.imageId !== null
3452
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
3453
- : undefined,
3454
- imageScanFindings: output.imageScanFindings !== undefined && output.imageScanFindings !== null
3361
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
3362
+ imageScanFindings: output.imageScanFindings != null
3455
3363
  ? deserializeAws_json1_1ImageScanFindings(output.imageScanFindings, context)
3456
3364
  : undefined,
3457
- imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
3365
+ imageScanStatus: output.imageScanStatus != null
3458
3366
  ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
3459
3367
  : undefined,
3460
3368
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -3464,16 +3372,14 @@ const deserializeAws_json1_1DescribeImageScanFindingsResponse = (output, context
3464
3372
  };
3465
3373
  const deserializeAws_json1_1DescribeImagesResponse = (output, context) => {
3466
3374
  return {
3467
- imageDetails: output.imageDetails !== undefined && output.imageDetails !== null
3468
- ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context)
3469
- : undefined,
3375
+ imageDetails: output.imageDetails != null ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) : undefined,
3470
3376
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3471
3377
  };
3472
3378
  };
3473
3379
  const deserializeAws_json1_1DescribePullThroughCacheRulesResponse = (output, context) => {
3474
3380
  return {
3475
3381
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3476
- pullThroughCacheRules: output.pullThroughCacheRules !== undefined && output.pullThroughCacheRules !== null
3382
+ pullThroughCacheRules: output.pullThroughCacheRules != null
3477
3383
  ? deserializeAws_json1_1PullThroughCacheRuleList(output.pullThroughCacheRules, context)
3478
3384
  : undefined,
3479
3385
  };
@@ -3481,7 +3387,7 @@ const deserializeAws_json1_1DescribePullThroughCacheRulesResponse = (output, con
3481
3387
  const deserializeAws_json1_1DescribeRegistryResponse = (output, context) => {
3482
3388
  return {
3483
3389
  registryId: (0, smithy_client_1.expectString)(output.registryId),
3484
- replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null
3390
+ replicationConfiguration: output.replicationConfiguration != null
3485
3391
  ? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context)
3486
3392
  : undefined,
3487
3393
  };
@@ -3489,9 +3395,7 @@ const deserializeAws_json1_1DescribeRegistryResponse = (output, context) => {
3489
3395
  const deserializeAws_json1_1DescribeRepositoriesResponse = (output, context) => {
3490
3396
  return {
3491
3397
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3492
- repositories: output.repositories !== undefined && output.repositories !== null
3493
- ? deserializeAws_json1_1RepositoryList(output.repositories, context)
3494
- : undefined,
3398
+ repositories: output.repositories != null ? deserializeAws_json1_1RepositoryList(output.repositories, context) : undefined,
3495
3399
  };
3496
3400
  };
3497
3401
  const deserializeAws_json1_1EmptyUploadException = (output, context) => {
@@ -3510,32 +3414,24 @@ const deserializeAws_json1_1EnhancedImageScanFinding = (output, context) => {
3510
3414
  awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
3511
3415
  description: (0, smithy_client_1.expectString)(output.description),
3512
3416
  findingArn: (0, smithy_client_1.expectString)(output.findingArn),
3513
- firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
3417
+ firstObservedAt: output.firstObservedAt != null
3514
3418
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstObservedAt)))
3515
3419
  : undefined,
3516
- lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null
3420
+ lastObservedAt: output.lastObservedAt != null
3517
3421
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastObservedAt)))
3518
3422
  : undefined,
3519
- packageVulnerabilityDetails: output.packageVulnerabilityDetails !== undefined && output.packageVulnerabilityDetails !== null
3423
+ packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
3520
3424
  ? deserializeAws_json1_1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
3521
3425
  : undefined,
3522
- remediation: output.remediation !== undefined && output.remediation !== null
3523
- ? deserializeAws_json1_1Remediation(output.remediation, context)
3524
- : undefined,
3525
- resources: output.resources !== undefined && output.resources !== null
3526
- ? deserializeAws_json1_1ResourceList(output.resources, context)
3527
- : undefined,
3426
+ remediation: output.remediation != null ? deserializeAws_json1_1Remediation(output.remediation, context) : undefined,
3427
+ resources: output.resources != null ? deserializeAws_json1_1ResourceList(output.resources, context) : undefined,
3528
3428
  score: (0, smithy_client_1.limitedParseDouble)(output.score),
3529
- scoreDetails: output.scoreDetails !== undefined && output.scoreDetails !== null
3530
- ? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context)
3531
- : undefined,
3429
+ scoreDetails: output.scoreDetails != null ? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context) : undefined,
3532
3430
  severity: (0, smithy_client_1.expectString)(output.severity),
3533
3431
  status: (0, smithy_client_1.expectString)(output.status),
3534
3432
  title: (0, smithy_client_1.expectString)(output.title),
3535
3433
  type: (0, smithy_client_1.expectString)(output.type),
3536
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3537
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
3538
- : undefined,
3434
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
3539
3435
  };
3540
3436
  };
3541
3437
  const deserializeAws_json1_1EnhancedImageScanFindingList = (output, context) => {
@@ -3562,7 +3458,7 @@ const deserializeAws_json1_1FindingSeverityCounts = (output, context) => {
3562
3458
  };
3563
3459
  const deserializeAws_json1_1GetAuthorizationTokenResponse = (output, context) => {
3564
3460
  return {
3565
- authorizationData: output.authorizationData !== undefined && output.authorizationData !== null
3461
+ authorizationData: output.authorizationData != null
3566
3462
  ? deserializeAws_json1_1AuthorizationDataList(output.authorizationData, context)
3567
3463
  : undefined,
3568
3464
  };
@@ -3577,20 +3473,18 @@ const deserializeAws_json1_1GetLifecyclePolicyPreviewResponse = (output, context
3577
3473
  return {
3578
3474
  lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
3579
3475
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3580
- previewResults: output.previewResults !== undefined && output.previewResults !== null
3476
+ previewResults: output.previewResults != null
3581
3477
  ? deserializeAws_json1_1LifecyclePolicyPreviewResultList(output.previewResults, context)
3582
3478
  : undefined,
3583
3479
  registryId: (0, smithy_client_1.expectString)(output.registryId),
3584
3480
  repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3585
3481
  status: (0, smithy_client_1.expectString)(output.status),
3586
- summary: output.summary !== undefined && output.summary !== null
3587
- ? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context)
3588
- : undefined,
3482
+ summary: output.summary != null ? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context) : undefined,
3589
3483
  };
3590
3484
  };
3591
3485
  const deserializeAws_json1_1GetLifecyclePolicyResponse = (output, context) => {
3592
3486
  return {
3593
- lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
3487
+ lastEvaluatedAt: output.lastEvaluatedAt != null
3594
3488
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastEvaluatedAt)))
3595
3489
  : undefined,
3596
3490
  lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
@@ -3607,7 +3501,7 @@ const deserializeAws_json1_1GetRegistryPolicyResponse = (output, context) => {
3607
3501
  const deserializeAws_json1_1GetRegistryScanningConfigurationResponse = (output, context) => {
3608
3502
  return {
3609
3503
  registryId: (0, smithy_client_1.expectString)(output.registryId),
3610
- scanningConfiguration: output.scanningConfiguration !== undefined && output.scanningConfiguration !== null
3504
+ scanningConfiguration: output.scanningConfiguration != null
3611
3505
  ? deserializeAws_json1_1RegistryScanningConfiguration(output.scanningConfiguration, context)
3612
3506
  : undefined,
3613
3507
  };
@@ -3621,9 +3515,7 @@ const deserializeAws_json1_1GetRepositoryPolicyResponse = (output, context) => {
3621
3515
  };
3622
3516
  const deserializeAws_json1_1Image = (output, context) => {
3623
3517
  return {
3624
- imageId: output.imageId !== undefined && output.imageId !== null
3625
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
3626
- : undefined,
3518
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
3627
3519
  imageManifest: (0, smithy_client_1.expectString)(output.imageManifest),
3628
3520
  imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
3629
3521
  registryId: (0, smithy_client_1.expectString)(output.registryId),
@@ -3640,20 +3532,18 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
3640
3532
  artifactMediaType: (0, smithy_client_1.expectString)(output.artifactMediaType),
3641
3533
  imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
3642
3534
  imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
3643
- imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
3535
+ imagePushedAt: output.imagePushedAt != null
3644
3536
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
3645
3537
  : undefined,
3646
- imageScanFindingsSummary: output.imageScanFindingsSummary !== undefined && output.imageScanFindingsSummary !== null
3538
+ imageScanFindingsSummary: output.imageScanFindingsSummary != null
3647
3539
  ? deserializeAws_json1_1ImageScanFindingsSummary(output.imageScanFindingsSummary, context)
3648
3540
  : undefined,
3649
- imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
3541
+ imageScanStatus: output.imageScanStatus != null
3650
3542
  ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
3651
3543
  : undefined,
3652
3544
  imageSizeInBytes: (0, smithy_client_1.expectLong)(output.imageSizeInBytes),
3653
- imageTags: output.imageTags !== undefined && output.imageTags !== null
3654
- ? deserializeAws_json1_1ImageTagList(output.imageTags, context)
3655
- : undefined,
3656
- lastRecordedPullTime: output.lastRecordedPullTime !== undefined && output.lastRecordedPullTime !== null
3545
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
3546
+ lastRecordedPullTime: output.lastRecordedPullTime != null
3657
3547
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRecordedPullTime)))
3658
3548
  : undefined,
3659
3549
  registryId: (0, smithy_client_1.expectString)(output.registryId),
@@ -3680,9 +3570,7 @@ const deserializeAws_json1_1ImageFailure = (output, context) => {
3680
3570
  return {
3681
3571
  failureCode: (0, smithy_client_1.expectString)(output.failureCode),
3682
3572
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
3683
- imageId: output.imageId !== undefined && output.imageId !== null
3684
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
3685
- : undefined,
3573
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
3686
3574
  };
3687
3575
  };
3688
3576
  const deserializeAws_json1_1ImageFailureList = (output, context) => {
@@ -3750,9 +3638,7 @@ const deserializeAws_json1_1ImageReplicationStatusList = (output, context) => {
3750
3638
  };
3751
3639
  const deserializeAws_json1_1ImageScanFinding = (output, context) => {
3752
3640
  return {
3753
- attributes: output.attributes !== undefined && output.attributes !== null
3754
- ? deserializeAws_json1_1AttributeList(output.attributes, context)
3755
- : undefined,
3641
+ attributes: output.attributes != null ? deserializeAws_json1_1AttributeList(output.attributes, context) : undefined,
3756
3642
  description: (0, smithy_client_1.expectString)(output.description),
3757
3643
  name: (0, smithy_client_1.expectString)(output.name),
3758
3644
  severity: (0, smithy_client_1.expectString)(output.severity),
@@ -3772,32 +3658,30 @@ const deserializeAws_json1_1ImageScanFindingList = (output, context) => {
3772
3658
  };
3773
3659
  const deserializeAws_json1_1ImageScanFindings = (output, context) => {
3774
3660
  return {
3775
- enhancedFindings: output.enhancedFindings !== undefined && output.enhancedFindings !== null
3661
+ enhancedFindings: output.enhancedFindings != null
3776
3662
  ? deserializeAws_json1_1EnhancedImageScanFindingList(output.enhancedFindings, context)
3777
3663
  : undefined,
3778
- findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null
3664
+ findingSeverityCounts: output.findingSeverityCounts != null
3779
3665
  ? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
3780
3666
  : undefined,
3781
- findings: output.findings !== undefined && output.findings !== null
3782
- ? deserializeAws_json1_1ImageScanFindingList(output.findings, context)
3783
- : undefined,
3784
- imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
3667
+ findings: output.findings != null ? deserializeAws_json1_1ImageScanFindingList(output.findings, context) : undefined,
3668
+ imageScanCompletedAt: output.imageScanCompletedAt != null
3785
3669
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imageScanCompletedAt)))
3786
3670
  : undefined,
3787
- vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
3671
+ vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
3788
3672
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vulnerabilitySourceUpdatedAt)))
3789
3673
  : undefined,
3790
3674
  };
3791
3675
  };
3792
3676
  const deserializeAws_json1_1ImageScanFindingsSummary = (output, context) => {
3793
3677
  return {
3794
- findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null
3678
+ findingSeverityCounts: output.findingSeverityCounts != null
3795
3679
  ? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
3796
3680
  : undefined,
3797
- imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null
3681
+ imageScanCompletedAt: output.imageScanCompletedAt != null
3798
3682
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imageScanCompletedAt)))
3799
3683
  : undefined,
3800
- vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null
3684
+ vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
3801
3685
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vulnerabilitySourceUpdatedAt)))
3802
3686
  : undefined,
3803
3687
  };
@@ -3950,17 +3834,13 @@ const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException = (output, c
3950
3834
  };
3951
3835
  const deserializeAws_json1_1LifecyclePolicyPreviewResult = (output, context) => {
3952
3836
  return {
3953
- action: output.action !== undefined && output.action !== null
3954
- ? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context)
3955
- : undefined,
3837
+ action: output.action != null ? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context) : undefined,
3956
3838
  appliedRulePriority: (0, smithy_client_1.expectInt32)(output.appliedRulePriority),
3957
3839
  imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
3958
- imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
3840
+ imagePushedAt: output.imagePushedAt != null
3959
3841
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
3960
3842
  : undefined,
3961
- imageTags: output.imageTags !== undefined && output.imageTags !== null
3962
- ? deserializeAws_json1_1ImageTagList(output.imageTags, context)
3963
- : undefined,
3843
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
3964
3844
  };
3965
3845
  };
3966
3846
  const deserializeAws_json1_1LifecyclePolicyPreviewResultList = (output, context) => {
@@ -3991,50 +3871,40 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
3991
3871
  };
3992
3872
  const deserializeAws_json1_1ListImagesResponse = (output, context) => {
3993
3873
  return {
3994
- imageIds: output.imageIds !== undefined && output.imageIds !== null
3995
- ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
3996
- : undefined,
3874
+ imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
3997
3875
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3998
3876
  };
3999
3877
  };
4000
3878
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
4001
3879
  return {
4002
- tags: output.tags !== undefined && output.tags !== null
4003
- ? deserializeAws_json1_1TagList(output.tags, context)
4004
- : undefined,
3880
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4005
3881
  };
4006
3882
  };
4007
3883
  const deserializeAws_json1_1PackageVulnerabilityDetails = (output, context) => {
4008
3884
  return {
4009
- cvss: output.cvss !== undefined && output.cvss !== null
4010
- ? deserializeAws_json1_1CvssScoreList(output.cvss, context)
4011
- : undefined,
4012
- referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
4013
- ? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context)
4014
- : undefined,
4015
- relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
3885
+ cvss: output.cvss != null ? deserializeAws_json1_1CvssScoreList(output.cvss, context) : undefined,
3886
+ referenceUrls: output.referenceUrls != null ? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context) : undefined,
3887
+ relatedVulnerabilities: output.relatedVulnerabilities != null
4016
3888
  ? deserializeAws_json1_1RelatedVulnerabilitiesList(output.relatedVulnerabilities, context)
4017
3889
  : undefined,
4018
3890
  source: (0, smithy_client_1.expectString)(output.source),
4019
3891
  sourceUrl: (0, smithy_client_1.expectString)(output.sourceUrl),
4020
- vendorCreatedAt: output.vendorCreatedAt !== undefined && output.vendorCreatedAt !== null
3892
+ vendorCreatedAt: output.vendorCreatedAt != null
4021
3893
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorCreatedAt)))
4022
3894
  : undefined,
4023
3895
  vendorSeverity: (0, smithy_client_1.expectString)(output.vendorSeverity),
4024
- vendorUpdatedAt: output.vendorUpdatedAt !== undefined && output.vendorUpdatedAt !== null
3896
+ vendorUpdatedAt: output.vendorUpdatedAt != null
4025
3897
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorUpdatedAt)))
4026
3898
  : undefined,
4027
3899
  vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
4028
- vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null
3900
+ vulnerablePackages: output.vulnerablePackages != null
4029
3901
  ? deserializeAws_json1_1VulnerablePackagesList(output.vulnerablePackages, context)
4030
3902
  : undefined,
4031
3903
  };
4032
3904
  };
4033
3905
  const deserializeAws_json1_1PullThroughCacheRule = (output, context) => {
4034
3906
  return {
4035
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4036
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
4037
- : undefined,
3907
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
4038
3908
  ecrRepositoryPrefix: (0, smithy_client_1.expectString)(output.ecrRepositoryPrefix),
4039
3909
  registryId: (0, smithy_client_1.expectString)(output.registryId),
4040
3910
  upstreamRegistryUrl: (0, smithy_client_1.expectString)(output.upstreamRegistryUrl),
@@ -4063,14 +3933,12 @@ const deserializeAws_json1_1PullThroughCacheRuleNotFoundException = (output, con
4063
3933
  };
4064
3934
  const deserializeAws_json1_1PutImageResponse = (output, context) => {
4065
3935
  return {
4066
- image: output.image !== undefined && output.image !== null
4067
- ? deserializeAws_json1_1Image(output.image, context)
4068
- : undefined,
3936
+ image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
4069
3937
  };
4070
3938
  };
4071
3939
  const deserializeAws_json1_1PutImageScanningConfigurationResponse = (output, context) => {
4072
3940
  return {
4073
- imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null
3941
+ imageScanningConfiguration: output.imageScanningConfiguration != null
4074
3942
  ? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
4075
3943
  : undefined,
4076
3944
  registryId: (0, smithy_client_1.expectString)(output.registryId),
@@ -4099,14 +3967,14 @@ const deserializeAws_json1_1PutRegistryPolicyResponse = (output, context) => {
4099
3967
  };
4100
3968
  const deserializeAws_json1_1PutRegistryScanningConfigurationResponse = (output, context) => {
4101
3969
  return {
4102
- registryScanningConfiguration: output.registryScanningConfiguration !== undefined && output.registryScanningConfiguration !== null
3970
+ registryScanningConfiguration: output.registryScanningConfiguration != null
4103
3971
  ? deserializeAws_json1_1RegistryScanningConfiguration(output.registryScanningConfiguration, context)
4104
3972
  : undefined,
4105
3973
  };
4106
3974
  };
4107
3975
  const deserializeAws_json1_1PutReplicationConfigurationResponse = (output, context) => {
4108
3976
  return {
4109
- replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null
3977
+ replicationConfiguration: output.replicationConfiguration != null
4110
3978
  ? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context)
4111
3979
  : undefined,
4112
3980
  };
@@ -4140,15 +4008,13 @@ const deserializeAws_json1_1RegistryPolicyNotFoundException = (output, context)
4140
4008
  };
4141
4009
  const deserializeAws_json1_1RegistryScanningConfiguration = (output, context) => {
4142
4010
  return {
4143
- rules: output.rules !== undefined && output.rules !== null
4144
- ? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context)
4145
- : undefined,
4011
+ rules: output.rules != null ? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context) : undefined,
4146
4012
  scanType: (0, smithy_client_1.expectString)(output.scanType),
4147
4013
  };
4148
4014
  };
4149
4015
  const deserializeAws_json1_1RegistryScanningRule = (output, context) => {
4150
4016
  return {
4151
- repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
4017
+ repositoryFilters: output.repositoryFilters != null
4152
4018
  ? deserializeAws_json1_1ScanningRepositoryFilterList(output.repositoryFilters, context)
4153
4019
  : undefined,
4154
4020
  scanFrequency: (0, smithy_client_1.expectString)(output.scanFrequency),
@@ -4178,16 +4044,12 @@ const deserializeAws_json1_1RelatedVulnerabilitiesList = (output, context) => {
4178
4044
  };
4179
4045
  const deserializeAws_json1_1Remediation = (output, context) => {
4180
4046
  return {
4181
- recommendation: output.recommendation !== undefined && output.recommendation !== null
4182
- ? deserializeAws_json1_1Recommendation(output.recommendation, context)
4183
- : undefined,
4047
+ recommendation: output.recommendation != null ? deserializeAws_json1_1Recommendation(output.recommendation, context) : undefined,
4184
4048
  };
4185
4049
  };
4186
4050
  const deserializeAws_json1_1ReplicationConfiguration = (output, context) => {
4187
4051
  return {
4188
- rules: output.rules !== undefined && output.rules !== null
4189
- ? deserializeAws_json1_1ReplicationRuleList(output.rules, context)
4190
- : undefined,
4052
+ rules: output.rules != null ? deserializeAws_json1_1ReplicationRuleList(output.rules, context) : undefined,
4191
4053
  };
4192
4054
  };
4193
4055
  const deserializeAws_json1_1ReplicationDestination = (output, context) => {
@@ -4209,10 +4071,10 @@ const deserializeAws_json1_1ReplicationDestinationList = (output, context) => {
4209
4071
  };
4210
4072
  const deserializeAws_json1_1ReplicationRule = (output, context) => {
4211
4073
  return {
4212
- destinations: output.destinations !== undefined && output.destinations !== null
4074
+ destinations: output.destinations != null
4213
4075
  ? deserializeAws_json1_1ReplicationDestinationList(output.destinations, context)
4214
4076
  : undefined,
4215
- repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
4077
+ repositoryFilters: output.repositoryFilters != null
4216
4078
  ? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context)
4217
4079
  : undefined,
4218
4080
  };
@@ -4230,13 +4092,11 @@ const deserializeAws_json1_1ReplicationRuleList = (output, context) => {
4230
4092
  };
4231
4093
  const deserializeAws_json1_1Repository = (output, context) => {
4232
4094
  return {
4233
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4234
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
4235
- : undefined,
4236
- encryptionConfiguration: output.encryptionConfiguration !== undefined && output.encryptionConfiguration !== null
4095
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
4096
+ encryptionConfiguration: output.encryptionConfiguration != null
4237
4097
  ? deserializeAws_json1_1EncryptionConfiguration(output.encryptionConfiguration, context)
4238
4098
  : undefined,
4239
- imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null
4099
+ imageScanningConfiguration: output.imageScanningConfiguration != null
4240
4100
  ? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context)
4241
4101
  : undefined,
4242
4102
  imageTagMutability: (0, smithy_client_1.expectString)(output.imageTagMutability),
@@ -4296,7 +4156,7 @@ const deserializeAws_json1_1RepositoryPolicyNotFoundException = (output, context
4296
4156
  };
4297
4157
  const deserializeAws_json1_1RepositoryScanningConfiguration = (output, context) => {
4298
4158
  return {
4299
- appliedScanFilters: output.appliedScanFilters !== undefined && output.appliedScanFilters !== null
4159
+ appliedScanFilters: output.appliedScanFilters != null
4300
4160
  ? deserializeAws_json1_1ScanningRepositoryFilterList(output.appliedScanFilters, context)
4301
4161
  : undefined,
4302
4162
  repositoryArn: (0, smithy_client_1.expectString)(output.repositoryArn),
@@ -4336,17 +4196,15 @@ const deserializeAws_json1_1RepositoryScanningConfigurationList = (output, conte
4336
4196
  };
4337
4197
  const deserializeAws_json1_1Resource = (output, context) => {
4338
4198
  return {
4339
- details: output.details !== undefined && output.details !== null
4340
- ? deserializeAws_json1_1ResourceDetails(output.details, context)
4341
- : undefined,
4199
+ details: output.details != null ? deserializeAws_json1_1ResourceDetails(output.details, context) : undefined,
4342
4200
  id: (0, smithy_client_1.expectString)(output.id),
4343
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
4201
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
4344
4202
  type: (0, smithy_client_1.expectString)(output.type),
4345
4203
  };
4346
4204
  };
4347
4205
  const deserializeAws_json1_1ResourceDetails = (output, context) => {
4348
4206
  return {
4349
- awsEcrContainerImage: output.awsEcrContainerImage !== undefined && output.awsEcrContainerImage !== null
4207
+ awsEcrContainerImage: output.awsEcrContainerImage != null
4350
4208
  ? deserializeAws_json1_1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
4351
4209
  : undefined,
4352
4210
  };
@@ -4386,9 +4244,7 @@ const deserializeAws_json1_1ScanNotFoundException = (output, context) => {
4386
4244
  };
4387
4245
  const deserializeAws_json1_1ScoreDetails = (output, context) => {
4388
4246
  return {
4389
- cvss: output.cvss !== undefined && output.cvss !== null
4390
- ? deserializeAws_json1_1CvssScoreDetails(output.cvss, context)
4391
- : undefined,
4247
+ cvss: output.cvss != null ? deserializeAws_json1_1CvssScoreDetails(output.cvss, context) : undefined,
4392
4248
  };
4393
4249
  };
4394
4250
  const deserializeAws_json1_1ServerException = (output, context) => {
@@ -4405,10 +4261,8 @@ const deserializeAws_json1_1SetRepositoryPolicyResponse = (output, context) => {
4405
4261
  };
4406
4262
  const deserializeAws_json1_1StartImageScanResponse = (output, context) => {
4407
4263
  return {
4408
- imageId: output.imageId !== undefined && output.imageId !== null
4409
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
4410
- : undefined,
4411
- imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null
4264
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
4265
+ imageScanStatus: output.imageScanStatus != null
4412
4266
  ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context)
4413
4267
  : undefined,
4414
4268
  registryId: (0, smithy_client_1.expectString)(output.registryId),
@@ -4557,6 +4411,9 @@ const loadRestJsonErrorCode = (output, data) => {
4557
4411
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4558
4412
  const sanitizeErrorCode = (rawValue) => {
4559
4413
  let cleanValue = rawValue;
4414
+ if (typeof cleanValue === "number") {
4415
+ cleanValue = cleanValue.toString();
4416
+ }
4560
4417
  if (cleanValue.indexOf(":") >= 0) {
4561
4418
  cleanValue = cleanValue.split(":")[0];
4562
4419
  }