@aws-sdk/client-servicediscovery 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.
@@ -1998,61 +1998,52 @@ var serializeAws_json1_1Attributes = function (input, context) {
1998
1998
  };
1999
1999
  var serializeAws_json1_1CreateHttpNamespaceRequest = function (input, context) {
2000
2000
  var _a;
2001
- return __assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2001
+ return __assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2002
2002
  };
2003
2003
  var serializeAws_json1_1CreatePrivateDnsNamespaceRequest = function (input, context) {
2004
2004
  var _a;
2005
- return __assign(__assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Properties !== undefined &&
2006
- input.Properties !== null && {
2005
+ return __assign(__assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Properties != null && {
2007
2006
  Properties: serializeAws_json1_1PrivateDnsNamespaceProperties(input.Properties, context),
2008
- })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Vpc !== undefined && input.Vpc !== null && { Vpc: input.Vpc }));
2007
+ })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Vpc != null && { Vpc: input.Vpc }));
2009
2008
  };
2010
2009
  var serializeAws_json1_1CreatePublicDnsNamespaceRequest = function (input, context) {
2011
2010
  var _a;
2012
- return __assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Properties !== undefined &&
2013
- input.Properties !== null && {
2011
+ return __assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Properties != null && {
2014
2012
  Properties: serializeAws_json1_1PublicDnsNamespaceProperties(input.Properties, context),
2015
- })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2013
+ })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2016
2014
  };
2017
2015
  var serializeAws_json1_1CreateServiceRequest = function (input, context) {
2018
2016
  var _a;
2019
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DnsConfig !== undefined &&
2020
- input.DnsConfig !== null && { DnsConfig: serializeAws_json1_1DnsConfig(input.DnsConfig, context) })), (input.HealthCheckConfig !== undefined &&
2021
- input.HealthCheckConfig !== null && {
2017
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.DnsConfig != null && { DnsConfig: serializeAws_json1_1DnsConfig(input.DnsConfig, context) })), (input.HealthCheckConfig != null && {
2022
2018
  HealthCheckConfig: serializeAws_json1_1HealthCheckConfig(input.HealthCheckConfig, context),
2023
- })), (input.HealthCheckCustomConfig !== undefined &&
2024
- input.HealthCheckCustomConfig !== null && {
2019
+ })), (input.HealthCheckCustomConfig != null && {
2025
2020
  HealthCheckCustomConfig: serializeAws_json1_1HealthCheckCustomConfig(input.HealthCheckCustomConfig, context),
2026
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NamespaceId !== undefined && input.NamespaceId !== null && { NamespaceId: input.NamespaceId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2021
+ })), (input.Name != null && { Name: input.Name })), (input.NamespaceId != null && { NamespaceId: input.NamespaceId })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Type != null && { Type: input.Type }));
2027
2022
  };
2028
2023
  var serializeAws_json1_1DeleteNamespaceRequest = function (input, context) {
2029
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
2024
+ return __assign({}, (input.Id != null && { Id: input.Id }));
2030
2025
  };
2031
2026
  var serializeAws_json1_1DeleteServiceRequest = function (input, context) {
2032
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
2027
+ return __assign({}, (input.Id != null && { Id: input.Id }));
2033
2028
  };
2034
2029
  var serializeAws_json1_1DeregisterInstanceRequest = function (input, context) {
2035
- return __assign(__assign({}, (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2030
+ return __assign(__assign({}, (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2036
2031
  };
2037
2032
  var serializeAws_json1_1DiscoverInstancesRequest = function (input, context) {
2038
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.HealthStatus !== undefined && input.HealthStatus !== null && { HealthStatus: input.HealthStatus })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NamespaceName !== undefined && input.NamespaceName !== null && { NamespaceName: input.NamespaceName })), (input.OptionalParameters !== undefined &&
2039
- input.OptionalParameters !== null && {
2033
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.HealthStatus != null && { HealthStatus: input.HealthStatus })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NamespaceName != null && { NamespaceName: input.NamespaceName })), (input.OptionalParameters != null && {
2040
2034
  OptionalParameters: serializeAws_json1_1Attributes(input.OptionalParameters, context),
2041
- })), (input.QueryParameters !== undefined &&
2042
- input.QueryParameters !== null && {
2035
+ })), (input.QueryParameters != null && {
2043
2036
  QueryParameters: serializeAws_json1_1Attributes(input.QueryParameters, context),
2044
- })), (input.ServiceName !== undefined && input.ServiceName !== null && { ServiceName: input.ServiceName }));
2037
+ })), (input.ServiceName != null && { ServiceName: input.ServiceName }));
2045
2038
  };
2046
2039
  var serializeAws_json1_1DnsConfig = function (input, context) {
2047
- return __assign(__assign(__assign({}, (input.DnsRecords !== undefined &&
2048
- input.DnsRecords !== null && { DnsRecords: serializeAws_json1_1DnsRecordList(input.DnsRecords, context) })), (input.NamespaceId !== undefined && input.NamespaceId !== null && { NamespaceId: input.NamespaceId })), (input.RoutingPolicy !== undefined && input.RoutingPolicy !== null && { RoutingPolicy: input.RoutingPolicy }));
2040
+ return __assign(__assign(__assign({}, (input.DnsRecords != null && { DnsRecords: serializeAws_json1_1DnsRecordList(input.DnsRecords, context) })), (input.NamespaceId != null && { NamespaceId: input.NamespaceId })), (input.RoutingPolicy != null && { RoutingPolicy: input.RoutingPolicy }));
2049
2041
  };
2050
2042
  var serializeAws_json1_1DnsConfigChange = function (input, context) {
2051
- return __assign({}, (input.DnsRecords !== undefined &&
2052
- input.DnsRecords !== null && { DnsRecords: serializeAws_json1_1DnsRecordList(input.DnsRecords, context) }));
2043
+ return __assign({}, (input.DnsRecords != null && { DnsRecords: serializeAws_json1_1DnsRecordList(input.DnsRecords, context) }));
2053
2044
  };
2054
2045
  var serializeAws_json1_1DnsRecord = function (input, context) {
2055
- return __assign(__assign({}, (input.TTL !== undefined && input.TTL !== null && { TTL: input.TTL })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2046
+ return __assign(__assign({}, (input.TTL != null && { TTL: input.TTL })), (input.Type != null && { Type: input.Type }));
2056
2047
  };
2057
2048
  var serializeAws_json1_1DnsRecordList = function (input, context) {
2058
2049
  return input
@@ -2075,31 +2066,28 @@ var serializeAws_json1_1FilterValues = function (input, context) {
2075
2066
  });
2076
2067
  };
2077
2068
  var serializeAws_json1_1GetInstanceRequest = function (input, context) {
2078
- return __assign(__assign({}, (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2069
+ return __assign(__assign({}, (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2079
2070
  };
2080
2071
  var serializeAws_json1_1GetInstancesHealthStatusRequest = function (input, context) {
2081
- return __assign(__assign(__assign(__assign({}, (input.Instances !== undefined &&
2082
- input.Instances !== null && { Instances: serializeAws_json1_1InstanceIdList(input.Instances, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2072
+ return __assign(__assign(__assign(__assign({}, (input.Instances != null && { Instances: serializeAws_json1_1InstanceIdList(input.Instances, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2083
2073
  };
2084
2074
  var serializeAws_json1_1GetNamespaceRequest = function (input, context) {
2085
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
2075
+ return __assign({}, (input.Id != null && { Id: input.Id }));
2086
2076
  };
2087
2077
  var serializeAws_json1_1GetOperationRequest = function (input, context) {
2088
- return __assign({}, (input.OperationId !== undefined && input.OperationId !== null && { OperationId: input.OperationId }));
2078
+ return __assign({}, (input.OperationId != null && { OperationId: input.OperationId }));
2089
2079
  };
2090
2080
  var serializeAws_json1_1GetServiceRequest = function (input, context) {
2091
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
2081
+ return __assign({}, (input.Id != null && { Id: input.Id }));
2092
2082
  };
2093
2083
  var serializeAws_json1_1HealthCheckConfig = function (input, context) {
2094
- return __assign(__assign(__assign({}, (input.FailureThreshold !== undefined &&
2095
- input.FailureThreshold !== null && { FailureThreshold: input.FailureThreshold })), (input.ResourcePath !== undefined && input.ResourcePath !== null && { ResourcePath: input.ResourcePath })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2084
+ return __assign(__assign(__assign({}, (input.FailureThreshold != null && { FailureThreshold: input.FailureThreshold })), (input.ResourcePath != null && { ResourcePath: input.ResourcePath })), (input.Type != null && { Type: input.Type }));
2096
2085
  };
2097
2086
  var serializeAws_json1_1HealthCheckCustomConfig = function (input, context) {
2098
- return __assign({}, (input.FailureThreshold !== undefined &&
2099
- input.FailureThreshold !== null && { FailureThreshold: input.FailureThreshold }));
2087
+ return __assign({}, (input.FailureThreshold != null && { FailureThreshold: input.FailureThreshold }));
2100
2088
  };
2101
2089
  var serializeAws_json1_1HttpNamespaceChange = function (input, context) {
2102
- return __assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description }));
2090
+ return __assign({}, (input.Description != null && { Description: input.Description }));
2103
2091
  };
2104
2092
  var serializeAws_json1_1InstanceIdList = function (input, context) {
2105
2093
  return input
@@ -2112,26 +2100,22 @@ var serializeAws_json1_1InstanceIdList = function (input, context) {
2112
2100
  });
2113
2101
  };
2114
2102
  var serializeAws_json1_1ListInstancesRequest = function (input, context) {
2115
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2103
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2116
2104
  };
2117
2105
  var serializeAws_json1_1ListNamespacesRequest = function (input, context) {
2118
- return __assign(__assign(__assign({}, (input.Filters !== undefined &&
2119
- input.Filters !== null && { Filters: serializeAws_json1_1NamespaceFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2106
+ return __assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1NamespaceFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2120
2107
  };
2121
2108
  var serializeAws_json1_1ListOperationsRequest = function (input, context) {
2122
- return __assign(__assign(__assign({}, (input.Filters !== undefined &&
2123
- input.Filters !== null && { Filters: serializeAws_json1_1OperationFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2109
+ return __assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1OperationFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2124
2110
  };
2125
2111
  var serializeAws_json1_1ListServicesRequest = function (input, context) {
2126
- return __assign(__assign(__assign({}, (input.Filters !== undefined &&
2127
- input.Filters !== null && { Filters: serializeAws_json1_1ServiceFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2112
+ return __assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1ServiceFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2128
2113
  };
2129
2114
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
2130
- return __assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
2115
+ return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
2131
2116
  };
2132
2117
  var serializeAws_json1_1NamespaceFilter = function (input, context) {
2133
- return __assign(__assign(__assign({}, (input.Condition !== undefined && input.Condition !== null && { Condition: input.Condition })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
2134
- input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2118
+ return __assign(__assign(__assign({}, (input.Condition != null && { Condition: input.Condition })), (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2135
2119
  };
2136
2120
  var serializeAws_json1_1NamespaceFilters = function (input, context) {
2137
2121
  return input
@@ -2144,8 +2128,7 @@ var serializeAws_json1_1NamespaceFilters = function (input, context) {
2144
2128
  });
2145
2129
  };
2146
2130
  var serializeAws_json1_1OperationFilter = function (input, context) {
2147
- return __assign(__assign(__assign({}, (input.Condition !== undefined && input.Condition !== null && { Condition: input.Condition })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
2148
- input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2131
+ return __assign(__assign(__assign({}, (input.Condition != null && { Condition: input.Condition })), (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2149
2132
  };
2150
2133
  var serializeAws_json1_1OperationFilters = function (input, context) {
2151
2134
  return input
@@ -2158,68 +2141,58 @@ var serializeAws_json1_1OperationFilters = function (input, context) {
2158
2141
  });
2159
2142
  };
2160
2143
  var serializeAws_json1_1PrivateDnsNamespaceChange = function (input, context) {
2161
- return __assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Properties !== undefined &&
2162
- input.Properties !== null && {
2144
+ return __assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Properties != null && {
2163
2145
  Properties: serializeAws_json1_1PrivateDnsNamespacePropertiesChange(input.Properties, context),
2164
2146
  }));
2165
2147
  };
2166
2148
  var serializeAws_json1_1PrivateDnsNamespaceProperties = function (input, context) {
2167
- return __assign({}, (input.DnsProperties !== undefined &&
2168
- input.DnsProperties !== null && {
2149
+ return __assign({}, (input.DnsProperties != null && {
2169
2150
  DnsProperties: serializeAws_json1_1PrivateDnsPropertiesMutable(input.DnsProperties, context),
2170
2151
  }));
2171
2152
  };
2172
2153
  var serializeAws_json1_1PrivateDnsNamespacePropertiesChange = function (input, context) {
2173
- return __assign({}, (input.DnsProperties !== undefined &&
2174
- input.DnsProperties !== null && {
2154
+ return __assign({}, (input.DnsProperties != null && {
2175
2155
  DnsProperties: serializeAws_json1_1PrivateDnsPropertiesMutableChange(input.DnsProperties, context),
2176
2156
  }));
2177
2157
  };
2178
2158
  var serializeAws_json1_1PrivateDnsPropertiesMutable = function (input, context) {
2179
- return __assign({}, (input.SOA !== undefined && input.SOA !== null && { SOA: serializeAws_json1_1SOA(input.SOA, context) }));
2159
+ return __assign({}, (input.SOA != null && { SOA: serializeAws_json1_1SOA(input.SOA, context) }));
2180
2160
  };
2181
2161
  var serializeAws_json1_1PrivateDnsPropertiesMutableChange = function (input, context) {
2182
- return __assign({}, (input.SOA !== undefined && input.SOA !== null && { SOA: serializeAws_json1_1SOAChange(input.SOA, context) }));
2162
+ return __assign({}, (input.SOA != null && { SOA: serializeAws_json1_1SOAChange(input.SOA, context) }));
2183
2163
  };
2184
2164
  var serializeAws_json1_1PublicDnsNamespaceChange = function (input, context) {
2185
- return __assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Properties !== undefined &&
2186
- input.Properties !== null && {
2165
+ return __assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Properties != null && {
2187
2166
  Properties: serializeAws_json1_1PublicDnsNamespacePropertiesChange(input.Properties, context),
2188
2167
  }));
2189
2168
  };
2190
2169
  var serializeAws_json1_1PublicDnsNamespaceProperties = function (input, context) {
2191
- return __assign({}, (input.DnsProperties !== undefined &&
2192
- input.DnsProperties !== null && {
2170
+ return __assign({}, (input.DnsProperties != null && {
2193
2171
  DnsProperties: serializeAws_json1_1PublicDnsPropertiesMutable(input.DnsProperties, context),
2194
2172
  }));
2195
2173
  };
2196
2174
  var serializeAws_json1_1PublicDnsNamespacePropertiesChange = function (input, context) {
2197
- return __assign({}, (input.DnsProperties !== undefined &&
2198
- input.DnsProperties !== null && {
2175
+ return __assign({}, (input.DnsProperties != null && {
2199
2176
  DnsProperties: serializeAws_json1_1PublicDnsPropertiesMutableChange(input.DnsProperties, context),
2200
2177
  }));
2201
2178
  };
2202
2179
  var serializeAws_json1_1PublicDnsPropertiesMutable = function (input, context) {
2203
- return __assign({}, (input.SOA !== undefined && input.SOA !== null && { SOA: serializeAws_json1_1SOA(input.SOA, context) }));
2180
+ return __assign({}, (input.SOA != null && { SOA: serializeAws_json1_1SOA(input.SOA, context) }));
2204
2181
  };
2205
2182
  var serializeAws_json1_1PublicDnsPropertiesMutableChange = function (input, context) {
2206
- return __assign({}, (input.SOA !== undefined && input.SOA !== null && { SOA: serializeAws_json1_1SOAChange(input.SOA, context) }));
2183
+ return __assign({}, (input.SOA != null && { SOA: serializeAws_json1_1SOAChange(input.SOA, context) }));
2207
2184
  };
2208
2185
  var serializeAws_json1_1RegisterInstanceRequest = function (input, context) {
2209
2186
  var _a;
2210
- return __assign(__assign(__assign(__assign({}, (input.Attributes !== undefined &&
2211
- input.Attributes !== null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) })), { CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2187
+ return __assign(__assign(__assign(__assign({}, (input.Attributes != null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) })), { CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2212
2188
  };
2213
2189
  var serializeAws_json1_1ServiceChange = function (input, context) {
2214
- return __assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DnsConfig !== undefined &&
2215
- input.DnsConfig !== null && { DnsConfig: serializeAws_json1_1DnsConfigChange(input.DnsConfig, context) })), (input.HealthCheckConfig !== undefined &&
2216
- input.HealthCheckConfig !== null && {
2190
+ return __assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DnsConfig != null && { DnsConfig: serializeAws_json1_1DnsConfigChange(input.DnsConfig, context) })), (input.HealthCheckConfig != null && {
2217
2191
  HealthCheckConfig: serializeAws_json1_1HealthCheckConfig(input.HealthCheckConfig, context),
2218
2192
  }));
2219
2193
  };
2220
2194
  var serializeAws_json1_1ServiceFilter = function (input, context) {
2221
- return __assign(__assign(__assign({}, (input.Condition !== undefined && input.Condition !== null && { Condition: input.Condition })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
2222
- input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2195
+ return __assign(__assign(__assign({}, (input.Condition != null && { Condition: input.Condition })), (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2223
2196
  };
2224
2197
  var serializeAws_json1_1ServiceFilters = function (input, context) {
2225
2198
  return input
@@ -2232,13 +2205,13 @@ var serializeAws_json1_1ServiceFilters = function (input, context) {
2232
2205
  });
2233
2206
  };
2234
2207
  var serializeAws_json1_1SOA = function (input, context) {
2235
- return __assign({}, (input.TTL !== undefined && input.TTL !== null && { TTL: input.TTL }));
2208
+ return __assign({}, (input.TTL != null && { TTL: input.TTL }));
2236
2209
  };
2237
2210
  var serializeAws_json1_1SOAChange = function (input, context) {
2238
- return __assign({}, (input.TTL !== undefined && input.TTL !== null && { TTL: input.TTL }));
2211
+ return __assign({}, (input.TTL != null && { TTL: input.TTL }));
2239
2212
  };
2240
2213
  var serializeAws_json1_1Tag = function (input, context) {
2241
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
2214
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
2242
2215
  };
2243
2216
  var serializeAws_json1_1TagKeyList = function (input, context) {
2244
2217
  return input
@@ -2261,37 +2234,32 @@ var serializeAws_json1_1TagList = function (input, context) {
2261
2234
  });
2262
2235
  };
2263
2236
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
2264
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2237
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2265
2238
  };
2266
2239
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
2267
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeys !== undefined &&
2268
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
2240
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
2269
2241
  };
2270
2242
  var serializeAws_json1_1UpdateHttpNamespaceRequest = function (input, context) {
2271
2243
  var _a;
2272
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Namespace !== undefined &&
2273
- input.Namespace !== null && { Namespace: serializeAws_json1_1HttpNamespaceChange(input.Namespace, context) })), { UpdaterRequestId: (_a = input.UpdaterRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() });
2244
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Namespace != null && { Namespace: serializeAws_json1_1HttpNamespaceChange(input.Namespace, context) })), { UpdaterRequestId: (_a = input.UpdaterRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() });
2274
2245
  };
2275
2246
  var serializeAws_json1_1UpdateInstanceCustomHealthStatusRequest = function (input, context) {
2276
- return __assign(__assign(__assign({}, (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId })), (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
2247
+ return __assign(__assign(__assign({}, (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ServiceId != null && { ServiceId: input.ServiceId })), (input.Status != null && { Status: input.Status }));
2277
2248
  };
2278
2249
  var serializeAws_json1_1UpdatePrivateDnsNamespaceRequest = function (input, context) {
2279
2250
  var _a;
2280
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Namespace !== undefined &&
2281
- input.Namespace !== null && {
2251
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Namespace != null && {
2282
2252
  Namespace: serializeAws_json1_1PrivateDnsNamespaceChange(input.Namespace, context),
2283
2253
  })), { UpdaterRequestId: (_a = input.UpdaterRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() });
2284
2254
  };
2285
2255
  var serializeAws_json1_1UpdatePublicDnsNamespaceRequest = function (input, context) {
2286
2256
  var _a;
2287
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Namespace !== undefined &&
2288
- input.Namespace !== null && {
2257
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Namespace != null && {
2289
2258
  Namespace: serializeAws_json1_1PublicDnsNamespaceChange(input.Namespace, context),
2290
2259
  })), { UpdaterRequestId: (_a = input.UpdaterRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() });
2291
2260
  };
2292
2261
  var serializeAws_json1_1UpdateServiceRequest = function (input, context) {
2293
- return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Service !== undefined &&
2294
- input.Service !== null && { Service: serializeAws_json1_1ServiceChange(input.Service, context) }));
2262
+ return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Service != null && { Service: serializeAws_json1_1ServiceChange(input.Service, context) }));
2295
2263
  };
2296
2264
  var deserializeAws_json1_1Attributes = function (output, context) {
2297
2265
  return Object.entries(output).reduce(function (acc, _a) {
@@ -2320,9 +2288,7 @@ var deserializeAws_json1_1CreatePublicDnsNamespaceResponse = function (output, c
2320
2288
  };
2321
2289
  var deserializeAws_json1_1CreateServiceResponse = function (output, context) {
2322
2290
  return {
2323
- Service: output.Service !== undefined && output.Service !== null
2324
- ? deserializeAws_json1_1Service(output.Service, context)
2325
- : undefined,
2291
+ Service: output.Service != null ? deserializeAws_json1_1Service(output.Service, context) : undefined,
2326
2292
  };
2327
2293
  };
2328
2294
  var deserializeAws_json1_1CustomHealthNotFound = function (output, context) {
@@ -2345,16 +2311,12 @@ var deserializeAws_json1_1DeregisterInstanceResponse = function (output, context
2345
2311
  };
2346
2312
  var deserializeAws_json1_1DiscoverInstancesResponse = function (output, context) {
2347
2313
  return {
2348
- Instances: output.Instances !== undefined && output.Instances !== null
2349
- ? deserializeAws_json1_1HttpInstanceSummaryList(output.Instances, context)
2350
- : undefined,
2314
+ Instances: output.Instances != null ? deserializeAws_json1_1HttpInstanceSummaryList(output.Instances, context) : undefined,
2351
2315
  };
2352
2316
  };
2353
2317
  var deserializeAws_json1_1DnsConfig = function (output, context) {
2354
2318
  return {
2355
- DnsRecords: output.DnsRecords !== undefined && output.DnsRecords !== null
2356
- ? deserializeAws_json1_1DnsRecordList(output.DnsRecords, context)
2357
- : undefined,
2319
+ DnsRecords: output.DnsRecords != null ? deserializeAws_json1_1DnsRecordList(output.DnsRecords, context) : undefined,
2358
2320
  NamespaceId: __expectString(output.NamespaceId),
2359
2321
  RoutingPolicy: __expectString(output.RoutingPolicy),
2360
2322
  };
@@ -2362,7 +2324,7 @@ var deserializeAws_json1_1DnsConfig = function (output, context) {
2362
2324
  var deserializeAws_json1_1DnsProperties = function (output, context) {
2363
2325
  return {
2364
2326
  HostedZoneId: __expectString(output.HostedZoneId),
2365
- SOA: output.SOA !== undefined && output.SOA !== null ? deserializeAws_json1_1SOA(output.SOA, context) : undefined,
2327
+ SOA: output.SOA != null ? deserializeAws_json1_1SOA(output.SOA, context) : undefined,
2366
2328
  };
2367
2329
  };
2368
2330
  var deserializeAws_json1_1DnsRecord = function (output, context) {
@@ -2390,38 +2352,28 @@ var deserializeAws_json1_1DuplicateRequest = function (output, context) {
2390
2352
  };
2391
2353
  var deserializeAws_json1_1GetInstanceResponse = function (output, context) {
2392
2354
  return {
2393
- Instance: output.Instance !== undefined && output.Instance !== null
2394
- ? deserializeAws_json1_1Instance(output.Instance, context)
2395
- : undefined,
2355
+ Instance: output.Instance != null ? deserializeAws_json1_1Instance(output.Instance, context) : undefined,
2396
2356
  };
2397
2357
  };
2398
2358
  var deserializeAws_json1_1GetInstancesHealthStatusResponse = function (output, context) {
2399
2359
  return {
2400
2360
  NextToken: __expectString(output.NextToken),
2401
- Status: output.Status !== undefined && output.Status !== null
2402
- ? deserializeAws_json1_1InstanceHealthStatusMap(output.Status, context)
2403
- : undefined,
2361
+ Status: output.Status != null ? deserializeAws_json1_1InstanceHealthStatusMap(output.Status, context) : undefined,
2404
2362
  };
2405
2363
  };
2406
2364
  var deserializeAws_json1_1GetNamespaceResponse = function (output, context) {
2407
2365
  return {
2408
- Namespace: output.Namespace !== undefined && output.Namespace !== null
2409
- ? deserializeAws_json1_1Namespace(output.Namespace, context)
2410
- : undefined,
2366
+ Namespace: output.Namespace != null ? deserializeAws_json1_1Namespace(output.Namespace, context) : undefined,
2411
2367
  };
2412
2368
  };
2413
2369
  var deserializeAws_json1_1GetOperationResponse = function (output, context) {
2414
2370
  return {
2415
- Operation: output.Operation !== undefined && output.Operation !== null
2416
- ? deserializeAws_json1_1Operation(output.Operation, context)
2417
- : undefined,
2371
+ Operation: output.Operation != null ? deserializeAws_json1_1Operation(output.Operation, context) : undefined,
2418
2372
  };
2419
2373
  };
2420
2374
  var deserializeAws_json1_1GetServiceResponse = function (output, context) {
2421
2375
  return {
2422
- Service: output.Service !== undefined && output.Service !== null
2423
- ? deserializeAws_json1_1Service(output.Service, context)
2424
- : undefined,
2376
+ Service: output.Service != null ? deserializeAws_json1_1Service(output.Service, context) : undefined,
2425
2377
  };
2426
2378
  };
2427
2379
  var deserializeAws_json1_1HealthCheckConfig = function (output, context) {
@@ -2438,9 +2390,7 @@ var deserializeAws_json1_1HealthCheckCustomConfig = function (output, context) {
2438
2390
  };
2439
2391
  var deserializeAws_json1_1HttpInstanceSummary = function (output, context) {
2440
2392
  return {
2441
- Attributes: output.Attributes !== undefined && output.Attributes !== null
2442
- ? deserializeAws_json1_1Attributes(output.Attributes, context)
2443
- : undefined,
2393
+ Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
2444
2394
  HealthStatus: __expectString(output.HealthStatus),
2445
2395
  InstanceId: __expectString(output.InstanceId),
2446
2396
  NamespaceName: __expectString(output.NamespaceName),
@@ -2465,9 +2415,7 @@ var deserializeAws_json1_1HttpProperties = function (output, context) {
2465
2415
  };
2466
2416
  var deserializeAws_json1_1Instance = function (output, context) {
2467
2417
  return {
2468
- Attributes: output.Attributes !== undefined && output.Attributes !== null
2469
- ? deserializeAws_json1_1Attributes(output.Attributes, context)
2470
- : undefined,
2418
+ Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
2471
2419
  CreatorRequestId: __expectString(output.CreatorRequestId),
2472
2420
  Id: __expectString(output.Id),
2473
2421
  };
@@ -2489,9 +2437,7 @@ var deserializeAws_json1_1InstanceNotFound = function (output, context) {
2489
2437
  };
2490
2438
  var deserializeAws_json1_1InstanceSummary = function (output, context) {
2491
2439
  return {
2492
- Attributes: output.Attributes !== undefined && output.Attributes !== null
2493
- ? deserializeAws_json1_1Attributes(output.Attributes, context)
2494
- : undefined,
2440
+ Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
2495
2441
  Id: __expectString(output.Id),
2496
2442
  };
2497
2443
  };
@@ -2513,56 +2459,42 @@ var deserializeAws_json1_1InvalidInput = function (output, context) {
2513
2459
  };
2514
2460
  var deserializeAws_json1_1ListInstancesResponse = function (output, context) {
2515
2461
  return {
2516
- Instances: output.Instances !== undefined && output.Instances !== null
2517
- ? deserializeAws_json1_1InstanceSummaryList(output.Instances, context)
2518
- : undefined,
2462
+ Instances: output.Instances != null ? deserializeAws_json1_1InstanceSummaryList(output.Instances, context) : undefined,
2519
2463
  NextToken: __expectString(output.NextToken),
2520
2464
  };
2521
2465
  };
2522
2466
  var deserializeAws_json1_1ListNamespacesResponse = function (output, context) {
2523
2467
  return {
2524
- Namespaces: output.Namespaces !== undefined && output.Namespaces !== null
2525
- ? deserializeAws_json1_1NamespaceSummariesList(output.Namespaces, context)
2526
- : undefined,
2468
+ Namespaces: output.Namespaces != null ? deserializeAws_json1_1NamespaceSummariesList(output.Namespaces, context) : undefined,
2527
2469
  NextToken: __expectString(output.NextToken),
2528
2470
  };
2529
2471
  };
2530
2472
  var deserializeAws_json1_1ListOperationsResponse = function (output, context) {
2531
2473
  return {
2532
2474
  NextToken: __expectString(output.NextToken),
2533
- Operations: output.Operations !== undefined && output.Operations !== null
2534
- ? deserializeAws_json1_1OperationSummaryList(output.Operations, context)
2535
- : undefined,
2475
+ Operations: output.Operations != null ? deserializeAws_json1_1OperationSummaryList(output.Operations, context) : undefined,
2536
2476
  };
2537
2477
  };
2538
2478
  var deserializeAws_json1_1ListServicesResponse = function (output, context) {
2539
2479
  return {
2540
2480
  NextToken: __expectString(output.NextToken),
2541
- Services: output.Services !== undefined && output.Services !== null
2542
- ? deserializeAws_json1_1ServiceSummariesList(output.Services, context)
2543
- : undefined,
2481
+ Services: output.Services != null ? deserializeAws_json1_1ServiceSummariesList(output.Services, context) : undefined,
2544
2482
  };
2545
2483
  };
2546
2484
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
2547
2485
  return {
2548
- Tags: output.Tags !== undefined && output.Tags !== null
2549
- ? deserializeAws_json1_1TagList(output.Tags, context)
2550
- : undefined,
2486
+ Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
2551
2487
  };
2552
2488
  };
2553
2489
  var deserializeAws_json1_1Namespace = function (output, context) {
2554
2490
  return {
2555
2491
  Arn: __expectString(output.Arn),
2556
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2557
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2558
- : undefined,
2492
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2559
2493
  CreatorRequestId: __expectString(output.CreatorRequestId),
2560
2494
  Description: __expectString(output.Description),
2561
2495
  Id: __expectString(output.Id),
2562
2496
  Name: __expectString(output.Name),
2563
- Properties: output.Properties !== undefined && output.Properties !== null
2564
- ? deserializeAws_json1_1NamespaceProperties(output.Properties, context)
2565
- : undefined,
2497
+ Properties: output.Properties != null ? deserializeAws_json1_1NamespaceProperties(output.Properties, context) : undefined,
2566
2498
  ServiceCount: __expectInt32(output.ServiceCount),
2567
2499
  Type: __expectString(output.Type),
2568
2500
  };
@@ -2581,12 +2513,8 @@ var deserializeAws_json1_1NamespaceNotFound = function (output, context) {
2581
2513
  };
2582
2514
  var deserializeAws_json1_1NamespaceProperties = function (output, context) {
2583
2515
  return {
2584
- DnsProperties: output.DnsProperties !== undefined && output.DnsProperties !== null
2585
- ? deserializeAws_json1_1DnsProperties(output.DnsProperties, context)
2586
- : undefined,
2587
- HttpProperties: output.HttpProperties !== undefined && output.HttpProperties !== null
2588
- ? deserializeAws_json1_1HttpProperties(output.HttpProperties, context)
2589
- : undefined,
2516
+ DnsProperties: output.DnsProperties != null ? deserializeAws_json1_1DnsProperties(output.DnsProperties, context) : undefined,
2517
+ HttpProperties: output.HttpProperties != null ? deserializeAws_json1_1HttpProperties(output.HttpProperties, context) : undefined,
2590
2518
  };
2591
2519
  };
2592
2520
  var deserializeAws_json1_1NamespaceSummariesList = function (output, context) {
@@ -2603,35 +2531,25 @@ var deserializeAws_json1_1NamespaceSummariesList = function (output, context) {
2603
2531
  var deserializeAws_json1_1NamespaceSummary = function (output, context) {
2604
2532
  return {
2605
2533
  Arn: __expectString(output.Arn),
2606
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2607
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2608
- : undefined,
2534
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2609
2535
  Description: __expectString(output.Description),
2610
2536
  Id: __expectString(output.Id),
2611
2537
  Name: __expectString(output.Name),
2612
- Properties: output.Properties !== undefined && output.Properties !== null
2613
- ? deserializeAws_json1_1NamespaceProperties(output.Properties, context)
2614
- : undefined,
2538
+ Properties: output.Properties != null ? deserializeAws_json1_1NamespaceProperties(output.Properties, context) : undefined,
2615
2539
  ServiceCount: __expectInt32(output.ServiceCount),
2616
2540
  Type: __expectString(output.Type),
2617
2541
  };
2618
2542
  };
2619
2543
  var deserializeAws_json1_1Operation = function (output, context) {
2620
2544
  return {
2621
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2622
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2623
- : undefined,
2545
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2624
2546
  ErrorCode: __expectString(output.ErrorCode),
2625
2547
  ErrorMessage: __expectString(output.ErrorMessage),
2626
2548
  Id: __expectString(output.Id),
2627
2549
  Status: __expectString(output.Status),
2628
- Targets: output.Targets !== undefined && output.Targets !== null
2629
- ? deserializeAws_json1_1OperationTargetsMap(output.Targets, context)
2630
- : undefined,
2550
+ Targets: output.Targets != null ? deserializeAws_json1_1OperationTargetsMap(output.Targets, context) : undefined,
2631
2551
  Type: __expectString(output.Type),
2632
- UpdateDate: output.UpdateDate !== undefined && output.UpdateDate !== null
2633
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate)))
2634
- : undefined,
2552
+ UpdateDate: output.UpdateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate))) : undefined,
2635
2553
  };
2636
2554
  };
2637
2555
  var deserializeAws_json1_1OperationNotFound = function (output, context) {
@@ -2694,18 +2612,14 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
2694
2612
  var deserializeAws_json1_1Service = function (output, context) {
2695
2613
  return {
2696
2614
  Arn: __expectString(output.Arn),
2697
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2698
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2699
- : undefined,
2615
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2700
2616
  CreatorRequestId: __expectString(output.CreatorRequestId),
2701
2617
  Description: __expectString(output.Description),
2702
- DnsConfig: output.DnsConfig !== undefined && output.DnsConfig !== null
2703
- ? deserializeAws_json1_1DnsConfig(output.DnsConfig, context)
2704
- : undefined,
2705
- HealthCheckConfig: output.HealthCheckConfig !== undefined && output.HealthCheckConfig !== null
2618
+ DnsConfig: output.DnsConfig != null ? deserializeAws_json1_1DnsConfig(output.DnsConfig, context) : undefined,
2619
+ HealthCheckConfig: output.HealthCheckConfig != null
2706
2620
  ? deserializeAws_json1_1HealthCheckConfig(output.HealthCheckConfig, context)
2707
2621
  : undefined,
2708
- HealthCheckCustomConfig: output.HealthCheckCustomConfig !== undefined && output.HealthCheckCustomConfig !== null
2622
+ HealthCheckCustomConfig: output.HealthCheckCustomConfig != null
2709
2623
  ? deserializeAws_json1_1HealthCheckCustomConfig(output.HealthCheckCustomConfig, context)
2710
2624
  : undefined,
2711
2625
  Id: __expectString(output.Id),
@@ -2741,17 +2655,13 @@ var deserializeAws_json1_1ServiceSummariesList = function (output, context) {
2741
2655
  var deserializeAws_json1_1ServiceSummary = function (output, context) {
2742
2656
  return {
2743
2657
  Arn: __expectString(output.Arn),
2744
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2745
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2746
- : undefined,
2658
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2747
2659
  Description: __expectString(output.Description),
2748
- DnsConfig: output.DnsConfig !== undefined && output.DnsConfig !== null
2749
- ? deserializeAws_json1_1DnsConfig(output.DnsConfig, context)
2750
- : undefined,
2751
- HealthCheckConfig: output.HealthCheckConfig !== undefined && output.HealthCheckConfig !== null
2660
+ DnsConfig: output.DnsConfig != null ? deserializeAws_json1_1DnsConfig(output.DnsConfig, context) : undefined,
2661
+ HealthCheckConfig: output.HealthCheckConfig != null
2752
2662
  ? deserializeAws_json1_1HealthCheckConfig(output.HealthCheckConfig, context)
2753
2663
  : undefined,
2754
- HealthCheckCustomConfig: output.HealthCheckCustomConfig !== undefined && output.HealthCheckCustomConfig !== null
2664
+ HealthCheckCustomConfig: output.HealthCheckCustomConfig != null
2755
2665
  ? deserializeAws_json1_1HealthCheckCustomConfig(output.HealthCheckCustomConfig, context)
2756
2666
  : undefined,
2757
2667
  Id: __expectString(output.Id),
@@ -2870,6 +2780,9 @@ var loadRestJsonErrorCode = function (output, data) {
2870
2780
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2871
2781
  var sanitizeErrorCode = function (rawValue) {
2872
2782
  var cleanValue = rawValue;
2783
+ if (typeof cleanValue === "number") {
2784
+ cleanValue = cleanValue.toString();
2785
+ }
2873
2786
  if (cleanValue.indexOf(":") >= 0) {
2874
2787
  cleanValue = cleanValue.split(":")[0];
2875
2788
  }