@aws-sdk/client-global-accelerator 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.
@@ -2782,137 +2782,114 @@ const deserializeAws_json1_1ListenerNotFoundExceptionResponse = async (parsedOut
2782
2782
  };
2783
2783
  const serializeAws_json1_1AddCustomRoutingEndpointsRequest = (input, context) => {
2784
2784
  return {
2785
- ...(input.EndpointConfigurations !== undefined &&
2786
- input.EndpointConfigurations !== null && {
2785
+ ...(input.EndpointConfigurations != null && {
2787
2786
  EndpointConfigurations: serializeAws_json1_1CustomRoutingEndpointConfigurations(input.EndpointConfigurations, context),
2788
2787
  }),
2789
- ...(input.EndpointGroupArn !== undefined &&
2790
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
2788
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2791
2789
  };
2792
2790
  };
2793
2791
  const serializeAws_json1_1AdvertiseByoipCidrRequest = (input, context) => {
2794
2792
  return {
2795
- ...(input.Cidr !== undefined && input.Cidr !== null && { Cidr: input.Cidr }),
2793
+ ...(input.Cidr != null && { Cidr: input.Cidr }),
2796
2794
  };
2797
2795
  };
2798
2796
  const serializeAws_json1_1AllowCustomRoutingTrafficRequest = (input, context) => {
2799
2797
  return {
2800
- ...(input.AllowAllTrafficToEndpoint !== undefined &&
2801
- input.AllowAllTrafficToEndpoint !== null && { AllowAllTrafficToEndpoint: input.AllowAllTrafficToEndpoint }),
2802
- ...(input.DestinationAddresses !== undefined &&
2803
- input.DestinationAddresses !== null && {
2798
+ ...(input.AllowAllTrafficToEndpoint != null && { AllowAllTrafficToEndpoint: input.AllowAllTrafficToEndpoint }),
2799
+ ...(input.DestinationAddresses != null && {
2804
2800
  DestinationAddresses: serializeAws_json1_1DestinationAddresses(input.DestinationAddresses, context),
2805
2801
  }),
2806
- ...(input.DestinationPorts !== undefined &&
2807
- input.DestinationPorts !== null && {
2802
+ ...(input.DestinationPorts != null && {
2808
2803
  DestinationPorts: serializeAws_json1_1DestinationPorts(input.DestinationPorts, context),
2809
2804
  }),
2810
- ...(input.EndpointGroupArn !== undefined &&
2811
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
2812
- ...(input.EndpointId !== undefined && input.EndpointId !== null && { EndpointId: input.EndpointId }),
2805
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2806
+ ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2813
2807
  };
2814
2808
  };
2815
2809
  const serializeAws_json1_1CidrAuthorizationContext = (input, context) => {
2816
2810
  return {
2817
- ...(input.Message !== undefined && input.Message !== null && { Message: input.Message }),
2818
- ...(input.Signature !== undefined && input.Signature !== null && { Signature: input.Signature }),
2811
+ ...(input.Message != null && { Message: input.Message }),
2812
+ ...(input.Signature != null && { Signature: input.Signature }),
2819
2813
  };
2820
2814
  };
2821
2815
  const serializeAws_json1_1CreateAcceleratorRequest = (input, context) => {
2822
2816
  var _a;
2823
2817
  return {
2824
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
2818
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
2825
2819
  IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2826
- ...(input.IpAddressType !== undefined && input.IpAddressType !== null && { IpAddressType: input.IpAddressType }),
2827
- ...(input.IpAddresses !== undefined &&
2828
- input.IpAddresses !== null && { IpAddresses: serializeAws_json1_1IpAddresses(input.IpAddresses, context) }),
2829
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2830
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2820
+ ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
2821
+ ...(input.IpAddresses != null && { IpAddresses: serializeAws_json1_1IpAddresses(input.IpAddresses, context) }),
2822
+ ...(input.Name != null && { Name: input.Name }),
2823
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2831
2824
  };
2832
2825
  };
2833
2826
  const serializeAws_json1_1CreateCustomRoutingAcceleratorRequest = (input, context) => {
2834
2827
  var _a;
2835
2828
  return {
2836
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
2829
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
2837
2830
  IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2838
- ...(input.IpAddressType !== undefined && input.IpAddressType !== null && { IpAddressType: input.IpAddressType }),
2839
- ...(input.IpAddresses !== undefined &&
2840
- input.IpAddresses !== null && { IpAddresses: serializeAws_json1_1IpAddresses(input.IpAddresses, context) }),
2841
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2842
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2831
+ ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
2832
+ ...(input.IpAddresses != null && { IpAddresses: serializeAws_json1_1IpAddresses(input.IpAddresses, context) }),
2833
+ ...(input.Name != null && { Name: input.Name }),
2834
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2843
2835
  };
2844
2836
  };
2845
2837
  const serializeAws_json1_1CreateCustomRoutingEndpointGroupRequest = (input, context) => {
2846
2838
  var _a;
2847
2839
  return {
2848
- ...(input.DestinationConfigurations !== undefined &&
2849
- input.DestinationConfigurations !== null && {
2840
+ ...(input.DestinationConfigurations != null && {
2850
2841
  DestinationConfigurations: serializeAws_json1_1CustomRoutingDestinationConfigurations(input.DestinationConfigurations, context),
2851
2842
  }),
2852
- ...(input.EndpointGroupRegion !== undefined &&
2853
- input.EndpointGroupRegion !== null && { EndpointGroupRegion: input.EndpointGroupRegion }),
2843
+ ...(input.EndpointGroupRegion != null && { EndpointGroupRegion: input.EndpointGroupRegion }),
2854
2844
  IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2855
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
2845
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2856
2846
  };
2857
2847
  };
2858
2848
  const serializeAws_json1_1CreateCustomRoutingListenerRequest = (input, context) => {
2859
2849
  var _a;
2860
2850
  return {
2861
- ...(input.AcceleratorArn !== undefined &&
2862
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
2851
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2863
2852
  IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2864
- ...(input.PortRanges !== undefined &&
2865
- input.PortRanges !== null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
2853
+ ...(input.PortRanges != null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
2866
2854
  };
2867
2855
  };
2868
2856
  const serializeAws_json1_1CreateEndpointGroupRequest = (input, context) => {
2869
2857
  var _a;
2870
2858
  return {
2871
- ...(input.EndpointConfigurations !== undefined &&
2872
- input.EndpointConfigurations !== null && {
2859
+ ...(input.EndpointConfigurations != null && {
2873
2860
  EndpointConfigurations: serializeAws_json1_1EndpointConfigurations(input.EndpointConfigurations, context),
2874
2861
  }),
2875
- ...(input.EndpointGroupRegion !== undefined &&
2876
- input.EndpointGroupRegion !== null && { EndpointGroupRegion: input.EndpointGroupRegion }),
2877
- ...(input.HealthCheckIntervalSeconds !== undefined &&
2878
- input.HealthCheckIntervalSeconds !== null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
2879
- ...(input.HealthCheckPath !== undefined &&
2880
- input.HealthCheckPath !== null && { HealthCheckPath: input.HealthCheckPath }),
2881
- ...(input.HealthCheckPort !== undefined &&
2882
- input.HealthCheckPort !== null && { HealthCheckPort: input.HealthCheckPort }),
2883
- ...(input.HealthCheckProtocol !== undefined &&
2884
- input.HealthCheckProtocol !== null && { HealthCheckProtocol: input.HealthCheckProtocol }),
2862
+ ...(input.EndpointGroupRegion != null && { EndpointGroupRegion: input.EndpointGroupRegion }),
2863
+ ...(input.HealthCheckIntervalSeconds != null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
2864
+ ...(input.HealthCheckPath != null && { HealthCheckPath: input.HealthCheckPath }),
2865
+ ...(input.HealthCheckPort != null && { HealthCheckPort: input.HealthCheckPort }),
2866
+ ...(input.HealthCheckProtocol != null && { HealthCheckProtocol: input.HealthCheckProtocol }),
2885
2867
  IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2886
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
2887
- ...(input.PortOverrides !== undefined &&
2888
- input.PortOverrides !== null && {
2868
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2869
+ ...(input.PortOverrides != null && {
2889
2870
  PortOverrides: serializeAws_json1_1PortOverrides(input.PortOverrides, context),
2890
2871
  }),
2891
- ...(input.ThresholdCount !== undefined &&
2892
- input.ThresholdCount !== null && { ThresholdCount: input.ThresholdCount }),
2893
- ...(input.TrafficDialPercentage !== undefined &&
2894
- input.TrafficDialPercentage !== null && { TrafficDialPercentage: (0, smithy_client_1.serializeFloat)(input.TrafficDialPercentage) }),
2872
+ ...(input.ThresholdCount != null && { ThresholdCount: input.ThresholdCount }),
2873
+ ...(input.TrafficDialPercentage != null && {
2874
+ TrafficDialPercentage: (0, smithy_client_1.serializeFloat)(input.TrafficDialPercentage),
2875
+ }),
2895
2876
  };
2896
2877
  };
2897
2878
  const serializeAws_json1_1CreateListenerRequest = (input, context) => {
2898
2879
  var _a;
2899
2880
  return {
2900
- ...(input.AcceleratorArn !== undefined &&
2901
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
2902
- ...(input.ClientAffinity !== undefined &&
2903
- input.ClientAffinity !== null && { ClientAffinity: input.ClientAffinity }),
2881
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2882
+ ...(input.ClientAffinity != null && { ClientAffinity: input.ClientAffinity }),
2904
2883
  IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2905
- ...(input.PortRanges !== undefined &&
2906
- input.PortRanges !== null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
2907
- ...(input.Protocol !== undefined && input.Protocol !== null && { Protocol: input.Protocol }),
2884
+ ...(input.PortRanges != null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
2885
+ ...(input.Protocol != null && { Protocol: input.Protocol }),
2908
2886
  };
2909
2887
  };
2910
2888
  const serializeAws_json1_1CustomRoutingDestinationConfiguration = (input, context) => {
2911
2889
  return {
2912
- ...(input.FromPort !== undefined && input.FromPort !== null && { FromPort: input.FromPort }),
2913
- ...(input.Protocols !== undefined &&
2914
- input.Protocols !== null && { Protocols: serializeAws_json1_1CustomRoutingProtocols(input.Protocols, context) }),
2915
- ...(input.ToPort !== undefined && input.ToPort !== null && { ToPort: input.ToPort }),
2890
+ ...(input.FromPort != null && { FromPort: input.FromPort }),
2891
+ ...(input.Protocols != null && { Protocols: serializeAws_json1_1CustomRoutingProtocols(input.Protocols, context) }),
2892
+ ...(input.ToPort != null && { ToPort: input.ToPort }),
2916
2893
  };
2917
2894
  };
2918
2895
  const serializeAws_json1_1CustomRoutingDestinationConfigurations = (input, context) => {
@@ -2927,7 +2904,7 @@ const serializeAws_json1_1CustomRoutingDestinationConfigurations = (input, conte
2927
2904
  };
2928
2905
  const serializeAws_json1_1CustomRoutingEndpointConfiguration = (input, context) => {
2929
2906
  return {
2930
- ...(input.EndpointId !== undefined && input.EndpointId !== null && { EndpointId: input.EndpointId }),
2907
+ ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
2931
2908
  };
2932
2909
  };
2933
2910
  const serializeAws_json1_1CustomRoutingEndpointConfigurations = (input, context) => {
@@ -2952,104 +2929,90 @@ const serializeAws_json1_1CustomRoutingProtocols = (input, context) => {
2952
2929
  };
2953
2930
  const serializeAws_json1_1DeleteAcceleratorRequest = (input, context) => {
2954
2931
  return {
2955
- ...(input.AcceleratorArn !== undefined &&
2956
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
2932
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2957
2933
  };
2958
2934
  };
2959
2935
  const serializeAws_json1_1DeleteCustomRoutingAcceleratorRequest = (input, context) => {
2960
2936
  return {
2961
- ...(input.AcceleratorArn !== undefined &&
2962
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
2937
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
2963
2938
  };
2964
2939
  };
2965
2940
  const serializeAws_json1_1DeleteCustomRoutingEndpointGroupRequest = (input, context) => {
2966
2941
  return {
2967
- ...(input.EndpointGroupArn !== undefined &&
2968
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
2942
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2969
2943
  };
2970
2944
  };
2971
2945
  const serializeAws_json1_1DeleteCustomRoutingListenerRequest = (input, context) => {
2972
2946
  return {
2973
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
2947
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2974
2948
  };
2975
2949
  };
2976
2950
  const serializeAws_json1_1DeleteEndpointGroupRequest = (input, context) => {
2977
2951
  return {
2978
- ...(input.EndpointGroupArn !== undefined &&
2979
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
2952
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2980
2953
  };
2981
2954
  };
2982
2955
  const serializeAws_json1_1DeleteListenerRequest = (input, context) => {
2983
2956
  return {
2984
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
2957
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
2985
2958
  };
2986
2959
  };
2987
2960
  const serializeAws_json1_1DenyCustomRoutingTrafficRequest = (input, context) => {
2988
2961
  return {
2989
- ...(input.DenyAllTrafficToEndpoint !== undefined &&
2990
- input.DenyAllTrafficToEndpoint !== null && { DenyAllTrafficToEndpoint: input.DenyAllTrafficToEndpoint }),
2991
- ...(input.DestinationAddresses !== undefined &&
2992
- input.DestinationAddresses !== null && {
2962
+ ...(input.DenyAllTrafficToEndpoint != null && { DenyAllTrafficToEndpoint: input.DenyAllTrafficToEndpoint }),
2963
+ ...(input.DestinationAddresses != null && {
2993
2964
  DestinationAddresses: serializeAws_json1_1DestinationAddresses(input.DestinationAddresses, context),
2994
2965
  }),
2995
- ...(input.DestinationPorts !== undefined &&
2996
- input.DestinationPorts !== null && {
2966
+ ...(input.DestinationPorts != null && {
2997
2967
  DestinationPorts: serializeAws_json1_1DestinationPorts(input.DestinationPorts, context),
2998
2968
  }),
2999
- ...(input.EndpointGroupArn !== undefined &&
3000
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
3001
- ...(input.EndpointId !== undefined && input.EndpointId !== null && { EndpointId: input.EndpointId }),
2969
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
2970
+ ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
3002
2971
  };
3003
2972
  };
3004
2973
  const serializeAws_json1_1DeprovisionByoipCidrRequest = (input, context) => {
3005
2974
  return {
3006
- ...(input.Cidr !== undefined && input.Cidr !== null && { Cidr: input.Cidr }),
2975
+ ...(input.Cidr != null && { Cidr: input.Cidr }),
3007
2976
  };
3008
2977
  };
3009
2978
  const serializeAws_json1_1DescribeAcceleratorAttributesRequest = (input, context) => {
3010
2979
  return {
3011
- ...(input.AcceleratorArn !== undefined &&
3012
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
2980
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3013
2981
  };
3014
2982
  };
3015
2983
  const serializeAws_json1_1DescribeAcceleratorRequest = (input, context) => {
3016
2984
  return {
3017
- ...(input.AcceleratorArn !== undefined &&
3018
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
2985
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3019
2986
  };
3020
2987
  };
3021
2988
  const serializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesRequest = (input, context) => {
3022
2989
  return {
3023
- ...(input.AcceleratorArn !== undefined &&
3024
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
2990
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3025
2991
  };
3026
2992
  };
3027
2993
  const serializeAws_json1_1DescribeCustomRoutingAcceleratorRequest = (input, context) => {
3028
2994
  return {
3029
- ...(input.AcceleratorArn !== undefined &&
3030
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
2995
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3031
2996
  };
3032
2997
  };
3033
2998
  const serializeAws_json1_1DescribeCustomRoutingEndpointGroupRequest = (input, context) => {
3034
2999
  return {
3035
- ...(input.EndpointGroupArn !== undefined &&
3036
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
3000
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
3037
3001
  };
3038
3002
  };
3039
3003
  const serializeAws_json1_1DescribeCustomRoutingListenerRequest = (input, context) => {
3040
3004
  return {
3041
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
3005
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3042
3006
  };
3043
3007
  };
3044
3008
  const serializeAws_json1_1DescribeEndpointGroupRequest = (input, context) => {
3045
3009
  return {
3046
- ...(input.EndpointGroupArn !== undefined &&
3047
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
3010
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
3048
3011
  };
3049
3012
  };
3050
3013
  const serializeAws_json1_1DescribeListenerRequest = (input, context) => {
3051
3014
  return {
3052
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
3015
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3053
3016
  };
3054
3017
  };
3055
3018
  const serializeAws_json1_1DestinationAddresses = (input, context) => {
@@ -3074,10 +3037,11 @@ const serializeAws_json1_1DestinationPorts = (input, context) => {
3074
3037
  };
3075
3038
  const serializeAws_json1_1EndpointConfiguration = (input, context) => {
3076
3039
  return {
3077
- ...(input.ClientIPPreservationEnabled !== undefined &&
3078
- input.ClientIPPreservationEnabled !== null && { ClientIPPreservationEnabled: input.ClientIPPreservationEnabled }),
3079
- ...(input.EndpointId !== undefined && input.EndpointId !== null && { EndpointId: input.EndpointId }),
3080
- ...(input.Weight !== undefined && input.Weight !== null && { Weight: input.Weight }),
3040
+ ...(input.ClientIPPreservationEnabled != null && {
3041
+ ClientIPPreservationEnabled: input.ClientIPPreservationEnabled,
3042
+ }),
3043
+ ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
3044
+ ...(input.Weight != null && { Weight: input.Weight }),
3081
3045
  };
3082
3046
  };
3083
3047
  const serializeAws_json1_1EndpointConfigurations = (input, context) => {
@@ -3112,80 +3076,75 @@ const serializeAws_json1_1IpAddresses = (input, context) => {
3112
3076
  };
3113
3077
  const serializeAws_json1_1ListAcceleratorsRequest = (input, context) => {
3114
3078
  return {
3115
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3116
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3079
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3080
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3117
3081
  };
3118
3082
  };
3119
3083
  const serializeAws_json1_1ListByoipCidrsRequest = (input, context) => {
3120
3084
  return {
3121
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3122
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3085
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3086
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3123
3087
  };
3124
3088
  };
3125
3089
  const serializeAws_json1_1ListCustomRoutingAcceleratorsRequest = (input, context) => {
3126
3090
  return {
3127
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3128
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3091
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3092
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3129
3093
  };
3130
3094
  };
3131
3095
  const serializeAws_json1_1ListCustomRoutingEndpointGroupsRequest = (input, context) => {
3132
3096
  return {
3133
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
3134
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3135
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3097
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3098
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3099
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3136
3100
  };
3137
3101
  };
3138
3102
  const serializeAws_json1_1ListCustomRoutingListenersRequest = (input, context) => {
3139
3103
  return {
3140
- ...(input.AcceleratorArn !== undefined &&
3141
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
3142
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3143
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3104
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3105
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3106
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3144
3107
  };
3145
3108
  };
3146
3109
  const serializeAws_json1_1ListCustomRoutingPortMappingsByDestinationRequest = (input, context) => {
3147
3110
  return {
3148
- ...(input.DestinationAddress !== undefined &&
3149
- input.DestinationAddress !== null && { DestinationAddress: input.DestinationAddress }),
3150
- ...(input.EndpointId !== undefined && input.EndpointId !== null && { EndpointId: input.EndpointId }),
3151
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3152
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3111
+ ...(input.DestinationAddress != null && { DestinationAddress: input.DestinationAddress }),
3112
+ ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
3113
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3114
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3153
3115
  };
3154
3116
  };
3155
3117
  const serializeAws_json1_1ListCustomRoutingPortMappingsRequest = (input, context) => {
3156
3118
  return {
3157
- ...(input.AcceleratorArn !== undefined &&
3158
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
3159
- ...(input.EndpointGroupArn !== undefined &&
3160
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
3161
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3162
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3119
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3120
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
3121
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3122
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3163
3123
  };
3164
3124
  };
3165
3125
  const serializeAws_json1_1ListEndpointGroupsRequest = (input, context) => {
3166
3126
  return {
3167
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
3168
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3169
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3127
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3128
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3129
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3170
3130
  };
3171
3131
  };
3172
3132
  const serializeAws_json1_1ListListenersRequest = (input, context) => {
3173
3133
  return {
3174
- ...(input.AcceleratorArn !== undefined &&
3175
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
3176
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3177
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3134
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3135
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3136
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3178
3137
  };
3179
3138
  };
3180
3139
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
3181
3140
  return {
3182
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3141
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3183
3142
  };
3184
3143
  };
3185
3144
  const serializeAws_json1_1PortOverride = (input, context) => {
3186
3145
  return {
3187
- ...(input.EndpointPort !== undefined && input.EndpointPort !== null && { EndpointPort: input.EndpointPort }),
3188
- ...(input.ListenerPort !== undefined && input.ListenerPort !== null && { ListenerPort: input.ListenerPort }),
3146
+ ...(input.EndpointPort != null && { EndpointPort: input.EndpointPort }),
3147
+ ...(input.ListenerPort != null && { ListenerPort: input.ListenerPort }),
3189
3148
  };
3190
3149
  };
3191
3150
  const serializeAws_json1_1PortOverrides = (input, context) => {
@@ -3200,8 +3159,8 @@ const serializeAws_json1_1PortOverrides = (input, context) => {
3200
3159
  };
3201
3160
  const serializeAws_json1_1PortRange = (input, context) => {
3202
3161
  return {
3203
- ...(input.FromPort !== undefined && input.FromPort !== null && { FromPort: input.FromPort }),
3204
- ...(input.ToPort !== undefined && input.ToPort !== null && { ToPort: input.ToPort }),
3162
+ ...(input.FromPort != null && { FromPort: input.FromPort }),
3163
+ ...(input.ToPort != null && { ToPort: input.ToPort }),
3205
3164
  };
3206
3165
  };
3207
3166
  const serializeAws_json1_1PortRanges = (input, context) => {
@@ -3216,25 +3175,22 @@ const serializeAws_json1_1PortRanges = (input, context) => {
3216
3175
  };
3217
3176
  const serializeAws_json1_1ProvisionByoipCidrRequest = (input, context) => {
3218
3177
  return {
3219
- ...(input.Cidr !== undefined && input.Cidr !== null && { Cidr: input.Cidr }),
3220
- ...(input.CidrAuthorizationContext !== undefined &&
3221
- input.CidrAuthorizationContext !== null && {
3178
+ ...(input.Cidr != null && { Cidr: input.Cidr }),
3179
+ ...(input.CidrAuthorizationContext != null && {
3222
3180
  CidrAuthorizationContext: serializeAws_json1_1CidrAuthorizationContext(input.CidrAuthorizationContext, context),
3223
3181
  }),
3224
3182
  };
3225
3183
  };
3226
3184
  const serializeAws_json1_1RemoveCustomRoutingEndpointsRequest = (input, context) => {
3227
3185
  return {
3228
- ...(input.EndpointGroupArn !== undefined &&
3229
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
3230
- ...(input.EndpointIds !== undefined &&
3231
- input.EndpointIds !== null && { EndpointIds: serializeAws_json1_1EndpointIds(input.EndpointIds, context) }),
3186
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
3187
+ ...(input.EndpointIds != null && { EndpointIds: serializeAws_json1_1EndpointIds(input.EndpointIds, context) }),
3232
3188
  };
3233
3189
  };
3234
3190
  const serializeAws_json1_1Tag = (input, context) => {
3235
3191
  return {
3236
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
3237
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
3192
+ ...(input.Key != null && { Key: input.Key }),
3193
+ ...(input.Value != null && { Value: input.Value }),
3238
3194
  };
3239
3195
  };
3240
3196
  const serializeAws_json1_1TagKeys = (input, context) => {
@@ -3249,8 +3205,8 @@ const serializeAws_json1_1TagKeys = (input, context) => {
3249
3205
  };
3250
3206
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
3251
3207
  return {
3252
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3253
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3208
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3209
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3254
3210
  };
3255
3211
  };
3256
3212
  const serializeAws_json1_1Tags = (input, context) => {
@@ -3265,114 +3221,91 @@ const serializeAws_json1_1Tags = (input, context) => {
3265
3221
  };
3266
3222
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
3267
3223
  return {
3268
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3269
- ...(input.TagKeys !== undefined &&
3270
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
3224
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3225
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
3271
3226
  };
3272
3227
  };
3273
3228
  const serializeAws_json1_1UpdateAcceleratorAttributesRequest = (input, context) => {
3274
3229
  return {
3275
- ...(input.AcceleratorArn !== undefined &&
3276
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
3277
- ...(input.FlowLogsEnabled !== undefined &&
3278
- input.FlowLogsEnabled !== null && { FlowLogsEnabled: input.FlowLogsEnabled }),
3279
- ...(input.FlowLogsS3Bucket !== undefined &&
3280
- input.FlowLogsS3Bucket !== null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
3281
- ...(input.FlowLogsS3Prefix !== undefined &&
3282
- input.FlowLogsS3Prefix !== null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
3230
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3231
+ ...(input.FlowLogsEnabled != null && { FlowLogsEnabled: input.FlowLogsEnabled }),
3232
+ ...(input.FlowLogsS3Bucket != null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
3233
+ ...(input.FlowLogsS3Prefix != null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
3283
3234
  };
3284
3235
  };
3285
3236
  const serializeAws_json1_1UpdateAcceleratorRequest = (input, context) => {
3286
3237
  return {
3287
- ...(input.AcceleratorArn !== undefined &&
3288
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
3289
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
3290
- ...(input.IpAddressType !== undefined && input.IpAddressType !== null && { IpAddressType: input.IpAddressType }),
3291
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3238
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3239
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
3240
+ ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
3241
+ ...(input.Name != null && { Name: input.Name }),
3292
3242
  };
3293
3243
  };
3294
3244
  const serializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesRequest = (input, context) => {
3295
3245
  return {
3296
- ...(input.AcceleratorArn !== undefined &&
3297
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
3298
- ...(input.FlowLogsEnabled !== undefined &&
3299
- input.FlowLogsEnabled !== null && { FlowLogsEnabled: input.FlowLogsEnabled }),
3300
- ...(input.FlowLogsS3Bucket !== undefined &&
3301
- input.FlowLogsS3Bucket !== null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
3302
- ...(input.FlowLogsS3Prefix !== undefined &&
3303
- input.FlowLogsS3Prefix !== null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
3246
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3247
+ ...(input.FlowLogsEnabled != null && { FlowLogsEnabled: input.FlowLogsEnabled }),
3248
+ ...(input.FlowLogsS3Bucket != null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
3249
+ ...(input.FlowLogsS3Prefix != null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
3304
3250
  };
3305
3251
  };
3306
3252
  const serializeAws_json1_1UpdateCustomRoutingAcceleratorRequest = (input, context) => {
3307
3253
  return {
3308
- ...(input.AcceleratorArn !== undefined &&
3309
- input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
3310
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
3311
- ...(input.IpAddressType !== undefined && input.IpAddressType !== null && { IpAddressType: input.IpAddressType }),
3312
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3254
+ ...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
3255
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
3256
+ ...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
3257
+ ...(input.Name != null && { Name: input.Name }),
3313
3258
  };
3314
3259
  };
3315
3260
  const serializeAws_json1_1UpdateCustomRoutingListenerRequest = (input, context) => {
3316
3261
  return {
3317
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
3318
- ...(input.PortRanges !== undefined &&
3319
- input.PortRanges !== null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
3262
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3263
+ ...(input.PortRanges != null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
3320
3264
  };
3321
3265
  };
3322
3266
  const serializeAws_json1_1UpdateEndpointGroupRequest = (input, context) => {
3323
3267
  return {
3324
- ...(input.EndpointConfigurations !== undefined &&
3325
- input.EndpointConfigurations !== null && {
3268
+ ...(input.EndpointConfigurations != null && {
3326
3269
  EndpointConfigurations: serializeAws_json1_1EndpointConfigurations(input.EndpointConfigurations, context),
3327
3270
  }),
3328
- ...(input.EndpointGroupArn !== undefined &&
3329
- input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
3330
- ...(input.HealthCheckIntervalSeconds !== undefined &&
3331
- input.HealthCheckIntervalSeconds !== null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
3332
- ...(input.HealthCheckPath !== undefined &&
3333
- input.HealthCheckPath !== null && { HealthCheckPath: input.HealthCheckPath }),
3334
- ...(input.HealthCheckPort !== undefined &&
3335
- input.HealthCheckPort !== null && { HealthCheckPort: input.HealthCheckPort }),
3336
- ...(input.HealthCheckProtocol !== undefined &&
3337
- input.HealthCheckProtocol !== null && { HealthCheckProtocol: input.HealthCheckProtocol }),
3338
- ...(input.PortOverrides !== undefined &&
3339
- input.PortOverrides !== null && {
3271
+ ...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
3272
+ ...(input.HealthCheckIntervalSeconds != null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
3273
+ ...(input.HealthCheckPath != null && { HealthCheckPath: input.HealthCheckPath }),
3274
+ ...(input.HealthCheckPort != null && { HealthCheckPort: input.HealthCheckPort }),
3275
+ ...(input.HealthCheckProtocol != null && { HealthCheckProtocol: input.HealthCheckProtocol }),
3276
+ ...(input.PortOverrides != null && {
3340
3277
  PortOverrides: serializeAws_json1_1PortOverrides(input.PortOverrides, context),
3341
3278
  }),
3342
- ...(input.ThresholdCount !== undefined &&
3343
- input.ThresholdCount !== null && { ThresholdCount: input.ThresholdCount }),
3344
- ...(input.TrafficDialPercentage !== undefined &&
3345
- input.TrafficDialPercentage !== null && { TrafficDialPercentage: (0, smithy_client_1.serializeFloat)(input.TrafficDialPercentage) }),
3279
+ ...(input.ThresholdCount != null && { ThresholdCount: input.ThresholdCount }),
3280
+ ...(input.TrafficDialPercentage != null && {
3281
+ TrafficDialPercentage: (0, smithy_client_1.serializeFloat)(input.TrafficDialPercentage),
3282
+ }),
3346
3283
  };
3347
3284
  };
3348
3285
  const serializeAws_json1_1UpdateListenerRequest = (input, context) => {
3349
3286
  return {
3350
- ...(input.ClientAffinity !== undefined &&
3351
- input.ClientAffinity !== null && { ClientAffinity: input.ClientAffinity }),
3352
- ...(input.ListenerArn !== undefined && input.ListenerArn !== null && { ListenerArn: input.ListenerArn }),
3353
- ...(input.PortRanges !== undefined &&
3354
- input.PortRanges !== null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
3355
- ...(input.Protocol !== undefined && input.Protocol !== null && { Protocol: input.Protocol }),
3287
+ ...(input.ClientAffinity != null && { ClientAffinity: input.ClientAffinity }),
3288
+ ...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
3289
+ ...(input.PortRanges != null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
3290
+ ...(input.Protocol != null && { Protocol: input.Protocol }),
3356
3291
  };
3357
3292
  };
3358
3293
  const serializeAws_json1_1WithdrawByoipCidrRequest = (input, context) => {
3359
3294
  return {
3360
- ...(input.Cidr !== undefined && input.Cidr !== null && { Cidr: input.Cidr }),
3295
+ ...(input.Cidr != null && { Cidr: input.Cidr }),
3361
3296
  };
3362
3297
  };
3363
3298
  const deserializeAws_json1_1Accelerator = (output, context) => {
3364
3299
  return {
3365
3300
  AcceleratorArn: (0, smithy_client_1.expectString)(output.AcceleratorArn),
3366
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
3301
+ CreatedTime: output.CreatedTime != null
3367
3302
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
3368
3303
  : undefined,
3369
3304
  DnsName: (0, smithy_client_1.expectString)(output.DnsName),
3370
3305
  Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
3371
3306
  IpAddressType: (0, smithy_client_1.expectString)(output.IpAddressType),
3372
- IpSets: output.IpSets !== undefined && output.IpSets !== null
3373
- ? deserializeAws_json1_1IpSets(output.IpSets, context)
3374
- : undefined,
3375
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3307
+ IpSets: output.IpSets != null ? deserializeAws_json1_1IpSets(output.IpSets, context) : undefined,
3308
+ LastModifiedTime: output.LastModifiedTime != null
3376
3309
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3377
3310
  : undefined,
3378
3311
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -3414,7 +3347,7 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
3414
3347
  };
3415
3348
  const deserializeAws_json1_1AddCustomRoutingEndpointsResponse = (output, context) => {
3416
3349
  return {
3417
- EndpointDescriptions: output.EndpointDescriptions !== undefined && output.EndpointDescriptions !== null
3350
+ EndpointDescriptions: output.EndpointDescriptions != null
3418
3351
  ? deserializeAws_json1_1CustomRoutingEndpointDescriptions(output.EndpointDescriptions, context)
3419
3352
  : undefined,
3420
3353
  EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
@@ -3422,9 +3355,7 @@ const deserializeAws_json1_1AddCustomRoutingEndpointsResponse = (output, context
3422
3355
  };
3423
3356
  const deserializeAws_json1_1AdvertiseByoipCidrResponse = (output, context) => {
3424
3357
  return {
3425
- ByoipCidr: output.ByoipCidr !== undefined && output.ByoipCidr !== null
3426
- ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context)
3427
- : undefined,
3358
+ ByoipCidr: output.ByoipCidr != null ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context) : undefined,
3428
3359
  };
3429
3360
  };
3430
3361
  const deserializeAws_json1_1AssociatedEndpointGroupFoundException = (output, context) => {
@@ -3440,18 +3371,14 @@ const deserializeAws_json1_1AssociatedListenerFoundException = (output, context)
3440
3371
  const deserializeAws_json1_1ByoipCidr = (output, context) => {
3441
3372
  return {
3442
3373
  Cidr: (0, smithy_client_1.expectString)(output.Cidr),
3443
- Events: output.Events !== undefined && output.Events !== null
3444
- ? deserializeAws_json1_1ByoipCidrEvents(output.Events, context)
3445
- : undefined,
3374
+ Events: output.Events != null ? deserializeAws_json1_1ByoipCidrEvents(output.Events, context) : undefined,
3446
3375
  State: (0, smithy_client_1.expectString)(output.State),
3447
3376
  };
3448
3377
  };
3449
3378
  const deserializeAws_json1_1ByoipCidrEvent = (output, context) => {
3450
3379
  return {
3451
3380
  Message: (0, smithy_client_1.expectString)(output.Message),
3452
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
3453
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
3454
- : undefined,
3381
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
3455
3382
  };
3456
3383
  };
3457
3384
  const deserializeAws_json1_1ByoipCidrEvents = (output, context) => {
@@ -3488,59 +3415,49 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
3488
3415
  };
3489
3416
  const deserializeAws_json1_1CreateAcceleratorResponse = (output, context) => {
3490
3417
  return {
3491
- Accelerator: output.Accelerator !== undefined && output.Accelerator !== null
3492
- ? deserializeAws_json1_1Accelerator(output.Accelerator, context)
3493
- : undefined,
3418
+ Accelerator: output.Accelerator != null ? deserializeAws_json1_1Accelerator(output.Accelerator, context) : undefined,
3494
3419
  };
3495
3420
  };
3496
3421
  const deserializeAws_json1_1CreateCustomRoutingAcceleratorResponse = (output, context) => {
3497
3422
  return {
3498
- Accelerator: output.Accelerator !== undefined && output.Accelerator !== null
3423
+ Accelerator: output.Accelerator != null
3499
3424
  ? deserializeAws_json1_1CustomRoutingAccelerator(output.Accelerator, context)
3500
3425
  : undefined,
3501
3426
  };
3502
3427
  };
3503
3428
  const deserializeAws_json1_1CreateCustomRoutingEndpointGroupResponse = (output, context) => {
3504
3429
  return {
3505
- EndpointGroup: output.EndpointGroup !== undefined && output.EndpointGroup !== null
3430
+ EndpointGroup: output.EndpointGroup != null
3506
3431
  ? deserializeAws_json1_1CustomRoutingEndpointGroup(output.EndpointGroup, context)
3507
3432
  : undefined,
3508
3433
  };
3509
3434
  };
3510
3435
  const deserializeAws_json1_1CreateCustomRoutingListenerResponse = (output, context) => {
3511
3436
  return {
3512
- Listener: output.Listener !== undefined && output.Listener !== null
3513
- ? deserializeAws_json1_1CustomRoutingListener(output.Listener, context)
3514
- : undefined,
3437
+ Listener: output.Listener != null ? deserializeAws_json1_1CustomRoutingListener(output.Listener, context) : undefined,
3515
3438
  };
3516
3439
  };
3517
3440
  const deserializeAws_json1_1CreateEndpointGroupResponse = (output, context) => {
3518
3441
  return {
3519
- EndpointGroup: output.EndpointGroup !== undefined && output.EndpointGroup !== null
3520
- ? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context)
3521
- : undefined,
3442
+ EndpointGroup: output.EndpointGroup != null ? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context) : undefined,
3522
3443
  };
3523
3444
  };
3524
3445
  const deserializeAws_json1_1CreateListenerResponse = (output, context) => {
3525
3446
  return {
3526
- Listener: output.Listener !== undefined && output.Listener !== null
3527
- ? deserializeAws_json1_1Listener(output.Listener, context)
3528
- : undefined,
3447
+ Listener: output.Listener != null ? deserializeAws_json1_1Listener(output.Listener, context) : undefined,
3529
3448
  };
3530
3449
  };
3531
3450
  const deserializeAws_json1_1CustomRoutingAccelerator = (output, context) => {
3532
3451
  return {
3533
3452
  AcceleratorArn: (0, smithy_client_1.expectString)(output.AcceleratorArn),
3534
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
3453
+ CreatedTime: output.CreatedTime != null
3535
3454
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
3536
3455
  : undefined,
3537
3456
  DnsName: (0, smithy_client_1.expectString)(output.DnsName),
3538
3457
  Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
3539
3458
  IpAddressType: (0, smithy_client_1.expectString)(output.IpAddressType),
3540
- IpSets: output.IpSets !== undefined && output.IpSets !== null
3541
- ? deserializeAws_json1_1IpSets(output.IpSets, context)
3542
- : undefined,
3543
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3459
+ IpSets: output.IpSets != null ? deserializeAws_json1_1IpSets(output.IpSets, context) : undefined,
3460
+ LastModifiedTime: output.LastModifiedTime != null
3544
3461
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3545
3462
  : undefined,
3546
3463
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -3568,9 +3485,7 @@ const deserializeAws_json1_1CustomRoutingAccelerators = (output, context) => {
3568
3485
  const deserializeAws_json1_1CustomRoutingDestinationDescription = (output, context) => {
3569
3486
  return {
3570
3487
  FromPort: (0, smithy_client_1.expectInt32)(output.FromPort),
3571
- Protocols: output.Protocols !== undefined && output.Protocols !== null
3572
- ? deserializeAws_json1_1Protocols(output.Protocols, context)
3573
- : undefined,
3488
+ Protocols: output.Protocols != null ? deserializeAws_json1_1Protocols(output.Protocols, context) : undefined,
3574
3489
  ToPort: (0, smithy_client_1.expectInt32)(output.ToPort),
3575
3490
  };
3576
3491
  };
@@ -3603,10 +3518,10 @@ const deserializeAws_json1_1CustomRoutingEndpointDescriptions = (output, context
3603
3518
  };
3604
3519
  const deserializeAws_json1_1CustomRoutingEndpointGroup = (output, context) => {
3605
3520
  return {
3606
- DestinationDescriptions: output.DestinationDescriptions !== undefined && output.DestinationDescriptions !== null
3521
+ DestinationDescriptions: output.DestinationDescriptions != null
3607
3522
  ? deserializeAws_json1_1CustomRoutingDestinationDescriptions(output.DestinationDescriptions, context)
3608
3523
  : undefined,
3609
- EndpointDescriptions: output.EndpointDescriptions !== undefined && output.EndpointDescriptions !== null
3524
+ EndpointDescriptions: output.EndpointDescriptions != null
3610
3525
  ? deserializeAws_json1_1CustomRoutingEndpointDescriptions(output.EndpointDescriptions, context)
3611
3526
  : undefined,
3612
3527
  EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
@@ -3627,9 +3542,7 @@ const deserializeAws_json1_1CustomRoutingEndpointGroups = (output, context) => {
3627
3542
  const deserializeAws_json1_1CustomRoutingListener = (output, context) => {
3628
3543
  return {
3629
3544
  ListenerArn: (0, smithy_client_1.expectString)(output.ListenerArn),
3630
- PortRanges: output.PortRanges !== undefined && output.PortRanges !== null
3631
- ? deserializeAws_json1_1PortRanges(output.PortRanges, context)
3632
- : undefined,
3545
+ PortRanges: output.PortRanges != null ? deserializeAws_json1_1PortRanges(output.PortRanges, context) : undefined,
3633
3546
  };
3634
3547
  };
3635
3548
  const deserializeAws_json1_1CustomRoutingListeners = (output, context) => {
@@ -3656,74 +3569,64 @@ const deserializeAws_json1_1CustomRoutingProtocols = (output, context) => {
3656
3569
  };
3657
3570
  const deserializeAws_json1_1DeprovisionByoipCidrResponse = (output, context) => {
3658
3571
  return {
3659
- ByoipCidr: output.ByoipCidr !== undefined && output.ByoipCidr !== null
3660
- ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context)
3661
- : undefined,
3572
+ ByoipCidr: output.ByoipCidr != null ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context) : undefined,
3662
3573
  };
3663
3574
  };
3664
3575
  const deserializeAws_json1_1DescribeAcceleratorAttributesResponse = (output, context) => {
3665
3576
  return {
3666
- AcceleratorAttributes: output.AcceleratorAttributes !== undefined && output.AcceleratorAttributes !== null
3577
+ AcceleratorAttributes: output.AcceleratorAttributes != null
3667
3578
  ? deserializeAws_json1_1AcceleratorAttributes(output.AcceleratorAttributes, context)
3668
3579
  : undefined,
3669
3580
  };
3670
3581
  };
3671
3582
  const deserializeAws_json1_1DescribeAcceleratorResponse = (output, context) => {
3672
3583
  return {
3673
- Accelerator: output.Accelerator !== undefined && output.Accelerator !== null
3674
- ? deserializeAws_json1_1Accelerator(output.Accelerator, context)
3675
- : undefined,
3584
+ Accelerator: output.Accelerator != null ? deserializeAws_json1_1Accelerator(output.Accelerator, context) : undefined,
3676
3585
  };
3677
3586
  };
3678
3587
  const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesResponse = (output, context) => {
3679
3588
  return {
3680
- AcceleratorAttributes: output.AcceleratorAttributes !== undefined && output.AcceleratorAttributes !== null
3589
+ AcceleratorAttributes: output.AcceleratorAttributes != null
3681
3590
  ? deserializeAws_json1_1CustomRoutingAcceleratorAttributes(output.AcceleratorAttributes, context)
3682
3591
  : undefined,
3683
3592
  };
3684
3593
  };
3685
3594
  const deserializeAws_json1_1DescribeCustomRoutingAcceleratorResponse = (output, context) => {
3686
3595
  return {
3687
- Accelerator: output.Accelerator !== undefined && output.Accelerator !== null
3596
+ Accelerator: output.Accelerator != null
3688
3597
  ? deserializeAws_json1_1CustomRoutingAccelerator(output.Accelerator, context)
3689
3598
  : undefined,
3690
3599
  };
3691
3600
  };
3692
3601
  const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupResponse = (output, context) => {
3693
3602
  return {
3694
- EndpointGroup: output.EndpointGroup !== undefined && output.EndpointGroup !== null
3603
+ EndpointGroup: output.EndpointGroup != null
3695
3604
  ? deserializeAws_json1_1CustomRoutingEndpointGroup(output.EndpointGroup, context)
3696
3605
  : undefined,
3697
3606
  };
3698
3607
  };
3699
3608
  const deserializeAws_json1_1DescribeCustomRoutingListenerResponse = (output, context) => {
3700
3609
  return {
3701
- Listener: output.Listener !== undefined && output.Listener !== null
3702
- ? deserializeAws_json1_1CustomRoutingListener(output.Listener, context)
3703
- : undefined,
3610
+ Listener: output.Listener != null ? deserializeAws_json1_1CustomRoutingListener(output.Listener, context) : undefined,
3704
3611
  };
3705
3612
  };
3706
3613
  const deserializeAws_json1_1DescribeEndpointGroupResponse = (output, context) => {
3707
3614
  return {
3708
- EndpointGroup: output.EndpointGroup !== undefined && output.EndpointGroup !== null
3709
- ? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context)
3710
- : undefined,
3615
+ EndpointGroup: output.EndpointGroup != null ? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context) : undefined,
3711
3616
  };
3712
3617
  };
3713
3618
  const deserializeAws_json1_1DescribeListenerResponse = (output, context) => {
3714
3619
  return {
3715
- Listener: output.Listener !== undefined && output.Listener !== null
3716
- ? deserializeAws_json1_1Listener(output.Listener, context)
3717
- : undefined,
3620
+ Listener: output.Listener != null ? deserializeAws_json1_1Listener(output.Listener, context) : undefined,
3718
3621
  };
3719
3622
  };
3720
3623
  const deserializeAws_json1_1DestinationPortMapping = (output, context) => {
3721
3624
  return {
3722
3625
  AcceleratorArn: (0, smithy_client_1.expectString)(output.AcceleratorArn),
3723
- AcceleratorSocketAddresses: output.AcceleratorSocketAddresses !== undefined && output.AcceleratorSocketAddresses !== null
3626
+ AcceleratorSocketAddresses: output.AcceleratorSocketAddresses != null
3724
3627
  ? deserializeAws_json1_1SocketAddresses(output.AcceleratorSocketAddresses, context)
3725
3628
  : undefined,
3726
- DestinationSocketAddress: output.DestinationSocketAddress !== undefined && output.DestinationSocketAddress !== null
3629
+ DestinationSocketAddress: output.DestinationSocketAddress != null
3727
3630
  ? deserializeAws_json1_1SocketAddress(output.DestinationSocketAddress, context)
3728
3631
  : undefined,
3729
3632
  DestinationTrafficState: (0, smithy_client_1.expectString)(output.DestinationTrafficState),
@@ -3771,7 +3674,7 @@ const deserializeAws_json1_1EndpointDescriptions = (output, context) => {
3771
3674
  };
3772
3675
  const deserializeAws_json1_1EndpointGroup = (output, context) => {
3773
3676
  return {
3774
- EndpointDescriptions: output.EndpointDescriptions !== undefined && output.EndpointDescriptions !== null
3677
+ EndpointDescriptions: output.EndpointDescriptions != null
3775
3678
  ? deserializeAws_json1_1EndpointDescriptions(output.EndpointDescriptions, context)
3776
3679
  : undefined,
3777
3680
  EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
@@ -3780,9 +3683,7 @@ const deserializeAws_json1_1EndpointGroup = (output, context) => {
3780
3683
  HealthCheckPath: (0, smithy_client_1.expectString)(output.HealthCheckPath),
3781
3684
  HealthCheckPort: (0, smithy_client_1.expectInt32)(output.HealthCheckPort),
3782
3685
  HealthCheckProtocol: (0, smithy_client_1.expectString)(output.HealthCheckProtocol),
3783
- PortOverrides: output.PortOverrides !== undefined && output.PortOverrides !== null
3784
- ? deserializeAws_json1_1PortOverrides(output.PortOverrides, context)
3785
- : undefined,
3686
+ PortOverrides: output.PortOverrides != null ? deserializeAws_json1_1PortOverrides(output.PortOverrides, context) : undefined,
3786
3687
  ThresholdCount: (0, smithy_client_1.expectInt32)(output.ThresholdCount),
3787
3688
  TrafficDialPercentage: (0, smithy_client_1.limitedParseFloat32)(output.TrafficDialPercentage),
3788
3689
  };
@@ -3851,9 +3752,7 @@ const deserializeAws_json1_1IpAddresses = (output, context) => {
3851
3752
  };
3852
3753
  const deserializeAws_json1_1IpSet = (output, context) => {
3853
3754
  return {
3854
- IpAddresses: output.IpAddresses !== undefined && output.IpAddresses !== null
3855
- ? deserializeAws_json1_1IpAddresses(output.IpAddresses, context)
3856
- : undefined,
3755
+ IpAddresses: output.IpAddresses != null ? deserializeAws_json1_1IpAddresses(output.IpAddresses, context) : undefined,
3857
3756
  IpFamily: (0, smithy_client_1.expectString)(output.IpFamily),
3858
3757
  };
3859
3758
  };
@@ -3875,23 +3774,19 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
3875
3774
  };
3876
3775
  const deserializeAws_json1_1ListAcceleratorsResponse = (output, context) => {
3877
3776
  return {
3878
- Accelerators: output.Accelerators !== undefined && output.Accelerators !== null
3879
- ? deserializeAws_json1_1Accelerators(output.Accelerators, context)
3880
- : undefined,
3777
+ Accelerators: output.Accelerators != null ? deserializeAws_json1_1Accelerators(output.Accelerators, context) : undefined,
3881
3778
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3882
3779
  };
3883
3780
  };
3884
3781
  const deserializeAws_json1_1ListByoipCidrsResponse = (output, context) => {
3885
3782
  return {
3886
- ByoipCidrs: output.ByoipCidrs !== undefined && output.ByoipCidrs !== null
3887
- ? deserializeAws_json1_1ByoipCidrs(output.ByoipCidrs, context)
3888
- : undefined,
3783
+ ByoipCidrs: output.ByoipCidrs != null ? deserializeAws_json1_1ByoipCidrs(output.ByoipCidrs, context) : undefined,
3889
3784
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3890
3785
  };
3891
3786
  };
3892
3787
  const deserializeAws_json1_1ListCustomRoutingAcceleratorsResponse = (output, context) => {
3893
3788
  return {
3894
- Accelerators: output.Accelerators !== undefined && output.Accelerators !== null
3789
+ Accelerators: output.Accelerators != null
3895
3790
  ? deserializeAws_json1_1CustomRoutingAccelerators(output.Accelerators, context)
3896
3791
  : undefined,
3897
3792
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -3899,7 +3794,7 @@ const deserializeAws_json1_1ListCustomRoutingAcceleratorsResponse = (output, con
3899
3794
  };
3900
3795
  const deserializeAws_json1_1ListCustomRoutingEndpointGroupsResponse = (output, context) => {
3901
3796
  return {
3902
- EndpointGroups: output.EndpointGroups !== undefined && output.EndpointGroups !== null
3797
+ EndpointGroups: output.EndpointGroups != null
3903
3798
  ? deserializeAws_json1_1CustomRoutingEndpointGroups(output.EndpointGroups, context)
3904
3799
  : undefined,
3905
3800
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -3907,15 +3802,13 @@ const deserializeAws_json1_1ListCustomRoutingEndpointGroupsResponse = (output, c
3907
3802
  };
3908
3803
  const deserializeAws_json1_1ListCustomRoutingListenersResponse = (output, context) => {
3909
3804
  return {
3910
- Listeners: output.Listeners !== undefined && output.Listeners !== null
3911
- ? deserializeAws_json1_1CustomRoutingListeners(output.Listeners, context)
3912
- : undefined,
3805
+ Listeners: output.Listeners != null ? deserializeAws_json1_1CustomRoutingListeners(output.Listeners, context) : undefined,
3913
3806
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3914
3807
  };
3915
3808
  };
3916
3809
  const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationResponse = (output, context) => {
3917
3810
  return {
3918
- DestinationPortMappings: output.DestinationPortMappings !== undefined && output.DestinationPortMappings !== null
3811
+ DestinationPortMappings: output.DestinationPortMappings != null
3919
3812
  ? deserializeAws_json1_1DestinationPortMappings(output.DestinationPortMappings, context)
3920
3813
  : undefined,
3921
3814
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -3924,16 +3817,12 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationResponse =
3924
3817
  const deserializeAws_json1_1ListCustomRoutingPortMappingsResponse = (output, context) => {
3925
3818
  return {
3926
3819
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3927
- PortMappings: output.PortMappings !== undefined && output.PortMappings !== null
3928
- ? deserializeAws_json1_1PortMappings(output.PortMappings, context)
3929
- : undefined,
3820
+ PortMappings: output.PortMappings != null ? deserializeAws_json1_1PortMappings(output.PortMappings, context) : undefined,
3930
3821
  };
3931
3822
  };
3932
3823
  const deserializeAws_json1_1ListEndpointGroupsResponse = (output, context) => {
3933
3824
  return {
3934
- EndpointGroups: output.EndpointGroups !== undefined && output.EndpointGroups !== null
3935
- ? deserializeAws_json1_1EndpointGroups(output.EndpointGroups, context)
3936
- : undefined,
3825
+ EndpointGroups: output.EndpointGroups != null ? deserializeAws_json1_1EndpointGroups(output.EndpointGroups, context) : undefined,
3937
3826
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3938
3827
  };
3939
3828
  };
@@ -3941,9 +3830,7 @@ const deserializeAws_json1_1Listener = (output, context) => {
3941
3830
  return {
3942
3831
  ClientAffinity: (0, smithy_client_1.expectString)(output.ClientAffinity),
3943
3832
  ListenerArn: (0, smithy_client_1.expectString)(output.ListenerArn),
3944
- PortRanges: output.PortRanges !== undefined && output.PortRanges !== null
3945
- ? deserializeAws_json1_1PortRanges(output.PortRanges, context)
3946
- : undefined,
3833
+ PortRanges: output.PortRanges != null ? deserializeAws_json1_1PortRanges(output.PortRanges, context) : undefined,
3947
3834
  Protocol: (0, smithy_client_1.expectString)(output.Protocol),
3948
3835
  };
3949
3836
  };
@@ -3965,29 +3852,25 @@ const deserializeAws_json1_1Listeners = (output, context) => {
3965
3852
  };
3966
3853
  const deserializeAws_json1_1ListListenersResponse = (output, context) => {
3967
3854
  return {
3968
- Listeners: output.Listeners !== undefined && output.Listeners !== null
3969
- ? deserializeAws_json1_1Listeners(output.Listeners, context)
3970
- : undefined,
3855
+ Listeners: output.Listeners != null ? deserializeAws_json1_1Listeners(output.Listeners, context) : undefined,
3971
3856
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3972
3857
  };
3973
3858
  };
3974
3859
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
3975
3860
  return {
3976
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3861
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3977
3862
  };
3978
3863
  };
3979
3864
  const deserializeAws_json1_1PortMapping = (output, context) => {
3980
3865
  return {
3981
3866
  AcceleratorPort: (0, smithy_client_1.expectInt32)(output.AcceleratorPort),
3982
- DestinationSocketAddress: output.DestinationSocketAddress !== undefined && output.DestinationSocketAddress !== null
3867
+ DestinationSocketAddress: output.DestinationSocketAddress != null
3983
3868
  ? deserializeAws_json1_1SocketAddress(output.DestinationSocketAddress, context)
3984
3869
  : undefined,
3985
3870
  DestinationTrafficState: (0, smithy_client_1.expectString)(output.DestinationTrafficState),
3986
3871
  EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
3987
3872
  EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
3988
- Protocols: output.Protocols !== undefined && output.Protocols !== null
3989
- ? deserializeAws_json1_1CustomRoutingProtocols(output.Protocols, context)
3990
- : undefined,
3873
+ Protocols: output.Protocols != null ? deserializeAws_json1_1CustomRoutingProtocols(output.Protocols, context) : undefined,
3991
3874
  };
3992
3875
  };
3993
3876
  const deserializeAws_json1_1PortMappings = (output, context) => {
@@ -4048,9 +3931,7 @@ const deserializeAws_json1_1Protocols = (output, context) => {
4048
3931
  };
4049
3932
  const deserializeAws_json1_1ProvisionByoipCidrResponse = (output, context) => {
4050
3933
  return {
4051
- ByoipCidr: output.ByoipCidr !== undefined && output.ByoipCidr !== null
4052
- ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context)
4053
- : undefined,
3934
+ ByoipCidr: output.ByoipCidr != null ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context) : undefined,
4054
3935
  };
4055
3936
  };
4056
3937
  const deserializeAws_json1_1SocketAddress = (output, context) => {
@@ -4095,58 +3976,48 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
4095
3976
  };
4096
3977
  const deserializeAws_json1_1UpdateAcceleratorAttributesResponse = (output, context) => {
4097
3978
  return {
4098
- AcceleratorAttributes: output.AcceleratorAttributes !== undefined && output.AcceleratorAttributes !== null
3979
+ AcceleratorAttributes: output.AcceleratorAttributes != null
4099
3980
  ? deserializeAws_json1_1AcceleratorAttributes(output.AcceleratorAttributes, context)
4100
3981
  : undefined,
4101
3982
  };
4102
3983
  };
4103
3984
  const deserializeAws_json1_1UpdateAcceleratorResponse = (output, context) => {
4104
3985
  return {
4105
- Accelerator: output.Accelerator !== undefined && output.Accelerator !== null
4106
- ? deserializeAws_json1_1Accelerator(output.Accelerator, context)
4107
- : undefined,
3986
+ Accelerator: output.Accelerator != null ? deserializeAws_json1_1Accelerator(output.Accelerator, context) : undefined,
4108
3987
  };
4109
3988
  };
4110
3989
  const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesResponse = (output, context) => {
4111
3990
  return {
4112
- AcceleratorAttributes: output.AcceleratorAttributes !== undefined && output.AcceleratorAttributes !== null
3991
+ AcceleratorAttributes: output.AcceleratorAttributes != null
4113
3992
  ? deserializeAws_json1_1CustomRoutingAcceleratorAttributes(output.AcceleratorAttributes, context)
4114
3993
  : undefined,
4115
3994
  };
4116
3995
  };
4117
3996
  const deserializeAws_json1_1UpdateCustomRoutingAcceleratorResponse = (output, context) => {
4118
3997
  return {
4119
- Accelerator: output.Accelerator !== undefined && output.Accelerator !== null
3998
+ Accelerator: output.Accelerator != null
4120
3999
  ? deserializeAws_json1_1CustomRoutingAccelerator(output.Accelerator, context)
4121
4000
  : undefined,
4122
4001
  };
4123
4002
  };
4124
4003
  const deserializeAws_json1_1UpdateCustomRoutingListenerResponse = (output, context) => {
4125
4004
  return {
4126
- Listener: output.Listener !== undefined && output.Listener !== null
4127
- ? deserializeAws_json1_1CustomRoutingListener(output.Listener, context)
4128
- : undefined,
4005
+ Listener: output.Listener != null ? deserializeAws_json1_1CustomRoutingListener(output.Listener, context) : undefined,
4129
4006
  };
4130
4007
  };
4131
4008
  const deserializeAws_json1_1UpdateEndpointGroupResponse = (output, context) => {
4132
4009
  return {
4133
- EndpointGroup: output.EndpointGroup !== undefined && output.EndpointGroup !== null
4134
- ? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context)
4135
- : undefined,
4010
+ EndpointGroup: output.EndpointGroup != null ? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context) : undefined,
4136
4011
  };
4137
4012
  };
4138
4013
  const deserializeAws_json1_1UpdateListenerResponse = (output, context) => {
4139
4014
  return {
4140
- Listener: output.Listener !== undefined && output.Listener !== null
4141
- ? deserializeAws_json1_1Listener(output.Listener, context)
4142
- : undefined,
4015
+ Listener: output.Listener != null ? deserializeAws_json1_1Listener(output.Listener, context) : undefined,
4143
4016
  };
4144
4017
  };
4145
4018
  const deserializeAws_json1_1WithdrawByoipCidrResponse = (output, context) => {
4146
4019
  return {
4147
- ByoipCidr: output.ByoipCidr !== undefined && output.ByoipCidr !== null
4148
- ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context)
4149
- : undefined,
4020
+ ByoipCidr: output.ByoipCidr != null ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context) : undefined,
4150
4021
  };
4151
4022
  };
4152
4023
  const deserializeMetadata = (output) => {