@aws-sdk/client-transfer 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.
@@ -1939,213 +1939,184 @@ const serializeAws_json1_1AddressAllocationIds = (input, context) => {
1939
1939
  };
1940
1940
  const serializeAws_json1_1CopyStepDetails = (input, context) => {
1941
1941
  return {
1942
- ...(input.DestinationFileLocation !== undefined &&
1943
- input.DestinationFileLocation !== null && {
1942
+ ...(input.DestinationFileLocation != null && {
1944
1943
  DestinationFileLocation: serializeAws_json1_1InputFileLocation(input.DestinationFileLocation, context),
1945
1944
  }),
1946
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1947
- ...(input.OverwriteExisting !== undefined &&
1948
- input.OverwriteExisting !== null && { OverwriteExisting: input.OverwriteExisting }),
1949
- ...(input.SourceFileLocation !== undefined &&
1950
- input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
1945
+ ...(input.Name != null && { Name: input.Name }),
1946
+ ...(input.OverwriteExisting != null && { OverwriteExisting: input.OverwriteExisting }),
1947
+ ...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
1951
1948
  };
1952
1949
  };
1953
1950
  const serializeAws_json1_1CreateAccessRequest = (input, context) => {
1954
1951
  return {
1955
- ...(input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId }),
1956
- ...(input.HomeDirectory !== undefined && input.HomeDirectory !== null && { HomeDirectory: input.HomeDirectory }),
1957
- ...(input.HomeDirectoryMappings !== undefined &&
1958
- input.HomeDirectoryMappings !== null && {
1952
+ ...(input.ExternalId != null && { ExternalId: input.ExternalId }),
1953
+ ...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
1954
+ ...(input.HomeDirectoryMappings != null && {
1959
1955
  HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
1960
1956
  }),
1961
- ...(input.HomeDirectoryType !== undefined &&
1962
- input.HomeDirectoryType !== null && { HomeDirectoryType: input.HomeDirectoryType }),
1963
- ...(input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }),
1964
- ...(input.PosixProfile !== undefined &&
1965
- input.PosixProfile !== null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
1966
- ...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
1967
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
1957
+ ...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
1958
+ ...(input.Policy != null && { Policy: input.Policy }),
1959
+ ...(input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
1960
+ ...(input.Role != null && { Role: input.Role }),
1961
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
1968
1962
  };
1969
1963
  };
1970
1964
  const serializeAws_json1_1CreateServerRequest = (input, context) => {
1971
1965
  return {
1972
- ...(input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate }),
1973
- ...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
1974
- ...(input.EndpointDetails !== undefined &&
1975
- input.EndpointDetails !== null && {
1966
+ ...(input.Certificate != null && { Certificate: input.Certificate }),
1967
+ ...(input.Domain != null && { Domain: input.Domain }),
1968
+ ...(input.EndpointDetails != null && {
1976
1969
  EndpointDetails: serializeAws_json1_1EndpointDetails(input.EndpointDetails, context),
1977
1970
  }),
1978
- ...(input.EndpointType !== undefined && input.EndpointType !== null && { EndpointType: input.EndpointType }),
1979
- ...(input.HostKey !== undefined && input.HostKey !== null && { HostKey: input.HostKey }),
1980
- ...(input.IdentityProviderDetails !== undefined &&
1981
- input.IdentityProviderDetails !== null && {
1971
+ ...(input.EndpointType != null && { EndpointType: input.EndpointType }),
1972
+ ...(input.HostKey != null && { HostKey: input.HostKey }),
1973
+ ...(input.IdentityProviderDetails != null && {
1982
1974
  IdentityProviderDetails: serializeAws_json1_1IdentityProviderDetails(input.IdentityProviderDetails, context),
1983
1975
  }),
1984
- ...(input.IdentityProviderType !== undefined &&
1985
- input.IdentityProviderType !== null && { IdentityProviderType: input.IdentityProviderType }),
1986
- ...(input.LoggingRole !== undefined && input.LoggingRole !== null && { LoggingRole: input.LoggingRole }),
1987
- ...(input.PostAuthenticationLoginBanner !== undefined &&
1988
- input.PostAuthenticationLoginBanner !== null && {
1976
+ ...(input.IdentityProviderType != null && { IdentityProviderType: input.IdentityProviderType }),
1977
+ ...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
1978
+ ...(input.PostAuthenticationLoginBanner != null && {
1989
1979
  PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
1990
1980
  }),
1991
- ...(input.PreAuthenticationLoginBanner !== undefined &&
1992
- input.PreAuthenticationLoginBanner !== null && {
1981
+ ...(input.PreAuthenticationLoginBanner != null && {
1993
1982
  PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
1994
1983
  }),
1995
- ...(input.ProtocolDetails !== undefined &&
1996
- input.ProtocolDetails !== null && {
1984
+ ...(input.ProtocolDetails != null && {
1997
1985
  ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
1998
1986
  }),
1999
- ...(input.Protocols !== undefined &&
2000
- input.Protocols !== null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) }),
2001
- ...(input.SecurityPolicyName !== undefined &&
2002
- input.SecurityPolicyName !== null && { SecurityPolicyName: input.SecurityPolicyName }),
2003
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2004
- ...(input.WorkflowDetails !== undefined &&
2005
- input.WorkflowDetails !== null && {
1987
+ ...(input.Protocols != null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) }),
1988
+ ...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
1989
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
1990
+ ...(input.WorkflowDetails != null && {
2006
1991
  WorkflowDetails: serializeAws_json1_1WorkflowDetails(input.WorkflowDetails, context),
2007
1992
  }),
2008
1993
  };
2009
1994
  };
2010
1995
  const serializeAws_json1_1CreateUserRequest = (input, context) => {
2011
1996
  return {
2012
- ...(input.HomeDirectory !== undefined && input.HomeDirectory !== null && { HomeDirectory: input.HomeDirectory }),
2013
- ...(input.HomeDirectoryMappings !== undefined &&
2014
- input.HomeDirectoryMappings !== null && {
1997
+ ...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
1998
+ ...(input.HomeDirectoryMappings != null && {
2015
1999
  HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
2016
2000
  }),
2017
- ...(input.HomeDirectoryType !== undefined &&
2018
- input.HomeDirectoryType !== null && { HomeDirectoryType: input.HomeDirectoryType }),
2019
- ...(input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }),
2020
- ...(input.PosixProfile !== undefined &&
2021
- input.PosixProfile !== null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
2022
- ...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
2023
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2024
- ...(input.SshPublicKeyBody !== undefined &&
2025
- input.SshPublicKeyBody !== null && { SshPublicKeyBody: input.SshPublicKeyBody }),
2026
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2027
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
2001
+ ...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
2002
+ ...(input.Policy != null && { Policy: input.Policy }),
2003
+ ...(input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
2004
+ ...(input.Role != null && { Role: input.Role }),
2005
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2006
+ ...(input.SshPublicKeyBody != null && { SshPublicKeyBody: input.SshPublicKeyBody }),
2007
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2008
+ ...(input.UserName != null && { UserName: input.UserName }),
2028
2009
  };
2029
2010
  };
2030
2011
  const serializeAws_json1_1CreateWorkflowRequest = (input, context) => {
2031
2012
  return {
2032
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2033
- ...(input.OnExceptionSteps !== undefined &&
2034
- input.OnExceptionSteps !== null && {
2013
+ ...(input.Description != null && { Description: input.Description }),
2014
+ ...(input.OnExceptionSteps != null && {
2035
2015
  OnExceptionSteps: serializeAws_json1_1WorkflowSteps(input.OnExceptionSteps, context),
2036
2016
  }),
2037
- ...(input.Steps !== undefined &&
2038
- input.Steps !== null && { Steps: serializeAws_json1_1WorkflowSteps(input.Steps, context) }),
2039
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2017
+ ...(input.Steps != null && { Steps: serializeAws_json1_1WorkflowSteps(input.Steps, context) }),
2018
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2040
2019
  };
2041
2020
  };
2042
2021
  const serializeAws_json1_1CustomStepDetails = (input, context) => {
2043
2022
  return {
2044
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2045
- ...(input.SourceFileLocation !== undefined &&
2046
- input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
2047
- ...(input.Target !== undefined && input.Target !== null && { Target: input.Target }),
2048
- ...(input.TimeoutSeconds !== undefined &&
2049
- input.TimeoutSeconds !== null && { TimeoutSeconds: input.TimeoutSeconds }),
2023
+ ...(input.Name != null && { Name: input.Name }),
2024
+ ...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
2025
+ ...(input.Target != null && { Target: input.Target }),
2026
+ ...(input.TimeoutSeconds != null && { TimeoutSeconds: input.TimeoutSeconds }),
2050
2027
  };
2051
2028
  };
2052
2029
  const serializeAws_json1_1DeleteAccessRequest = (input, context) => {
2053
2030
  return {
2054
- ...(input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId }),
2055
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2031
+ ...(input.ExternalId != null && { ExternalId: input.ExternalId }),
2032
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2056
2033
  };
2057
2034
  };
2058
2035
  const serializeAws_json1_1DeleteServerRequest = (input, context) => {
2059
2036
  return {
2060
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2037
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2061
2038
  };
2062
2039
  };
2063
2040
  const serializeAws_json1_1DeleteSshPublicKeyRequest = (input, context) => {
2064
2041
  return {
2065
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2066
- ...(input.SshPublicKeyId !== undefined &&
2067
- input.SshPublicKeyId !== null && { SshPublicKeyId: input.SshPublicKeyId }),
2068
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
2042
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2043
+ ...(input.SshPublicKeyId != null && { SshPublicKeyId: input.SshPublicKeyId }),
2044
+ ...(input.UserName != null && { UserName: input.UserName }),
2069
2045
  };
2070
2046
  };
2071
2047
  const serializeAws_json1_1DeleteStepDetails = (input, context) => {
2072
2048
  return {
2073
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2074
- ...(input.SourceFileLocation !== undefined &&
2075
- input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
2049
+ ...(input.Name != null && { Name: input.Name }),
2050
+ ...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
2076
2051
  };
2077
2052
  };
2078
2053
  const serializeAws_json1_1DeleteUserRequest = (input, context) => {
2079
2054
  return {
2080
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2081
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
2055
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2056
+ ...(input.UserName != null && { UserName: input.UserName }),
2082
2057
  };
2083
2058
  };
2084
2059
  const serializeAws_json1_1DeleteWorkflowRequest = (input, context) => {
2085
2060
  return {
2086
- ...(input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }),
2061
+ ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2087
2062
  };
2088
2063
  };
2089
2064
  const serializeAws_json1_1DescribeAccessRequest = (input, context) => {
2090
2065
  return {
2091
- ...(input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId }),
2092
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2066
+ ...(input.ExternalId != null && { ExternalId: input.ExternalId }),
2067
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2093
2068
  };
2094
2069
  };
2095
2070
  const serializeAws_json1_1DescribeExecutionRequest = (input, context) => {
2096
2071
  return {
2097
- ...(input.ExecutionId !== undefined && input.ExecutionId !== null && { ExecutionId: input.ExecutionId }),
2098
- ...(input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }),
2072
+ ...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }),
2073
+ ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2099
2074
  };
2100
2075
  };
2101
2076
  const serializeAws_json1_1DescribeSecurityPolicyRequest = (input, context) => {
2102
2077
  return {
2103
- ...(input.SecurityPolicyName !== undefined &&
2104
- input.SecurityPolicyName !== null && { SecurityPolicyName: input.SecurityPolicyName }),
2078
+ ...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
2105
2079
  };
2106
2080
  };
2107
2081
  const serializeAws_json1_1DescribeServerRequest = (input, context) => {
2108
2082
  return {
2109
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2083
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2110
2084
  };
2111
2085
  };
2112
2086
  const serializeAws_json1_1DescribeUserRequest = (input, context) => {
2113
2087
  return {
2114
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2115
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
2088
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2089
+ ...(input.UserName != null && { UserName: input.UserName }),
2116
2090
  };
2117
2091
  };
2118
2092
  const serializeAws_json1_1DescribeWorkflowRequest = (input, context) => {
2119
2093
  return {
2120
- ...(input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }),
2094
+ ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2121
2095
  };
2122
2096
  };
2123
2097
  const serializeAws_json1_1EfsFileLocation = (input, context) => {
2124
2098
  return {
2125
- ...(input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId }),
2126
- ...(input.Path !== undefined && input.Path !== null && { Path: input.Path }),
2099
+ ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
2100
+ ...(input.Path != null && { Path: input.Path }),
2127
2101
  };
2128
2102
  };
2129
2103
  const serializeAws_json1_1EndpointDetails = (input, context) => {
2130
2104
  return {
2131
- ...(input.AddressAllocationIds !== undefined &&
2132
- input.AddressAllocationIds !== null && {
2105
+ ...(input.AddressAllocationIds != null && {
2133
2106
  AddressAllocationIds: serializeAws_json1_1AddressAllocationIds(input.AddressAllocationIds, context),
2134
2107
  }),
2135
- ...(input.SecurityGroupIds !== undefined &&
2136
- input.SecurityGroupIds !== null && {
2108
+ ...(input.SecurityGroupIds != null && {
2137
2109
  SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
2138
2110
  }),
2139
- ...(input.SubnetIds !== undefined &&
2140
- input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
2141
- ...(input.VpcEndpointId !== undefined && input.VpcEndpointId !== null && { VpcEndpointId: input.VpcEndpointId }),
2142
- ...(input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }),
2111
+ ...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
2112
+ ...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
2113
+ ...(input.VpcId != null && { VpcId: input.VpcId }),
2143
2114
  };
2144
2115
  };
2145
2116
  const serializeAws_json1_1HomeDirectoryMapEntry = (input, context) => {
2146
2117
  return {
2147
- ...(input.Entry !== undefined && input.Entry !== null && { Entry: input.Entry }),
2148
- ...(input.Target !== undefined && input.Target !== null && { Target: input.Target }),
2118
+ ...(input.Entry != null && { Entry: input.Entry }),
2119
+ ...(input.Target != null && { Target: input.Target }),
2149
2120
  };
2150
2121
  };
2151
2122
  const serializeAws_json1_1HomeDirectoryMappings = (input, context) => {
@@ -2160,77 +2131,73 @@ const serializeAws_json1_1HomeDirectoryMappings = (input, context) => {
2160
2131
  };
2161
2132
  const serializeAws_json1_1IdentityProviderDetails = (input, context) => {
2162
2133
  return {
2163
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
2164
- ...(input.Function !== undefined && input.Function !== null && { Function: input.Function }),
2165
- ...(input.InvocationRole !== undefined &&
2166
- input.InvocationRole !== null && { InvocationRole: input.InvocationRole }),
2167
- ...(input.Url !== undefined && input.Url !== null && { Url: input.Url }),
2134
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
2135
+ ...(input.Function != null && { Function: input.Function }),
2136
+ ...(input.InvocationRole != null && { InvocationRole: input.InvocationRole }),
2137
+ ...(input.Url != null && { Url: input.Url }),
2168
2138
  };
2169
2139
  };
2170
2140
  const serializeAws_json1_1ImportSshPublicKeyRequest = (input, context) => {
2171
2141
  return {
2172
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2173
- ...(input.SshPublicKeyBody !== undefined &&
2174
- input.SshPublicKeyBody !== null && { SshPublicKeyBody: input.SshPublicKeyBody }),
2175
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
2142
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2143
+ ...(input.SshPublicKeyBody != null && { SshPublicKeyBody: input.SshPublicKeyBody }),
2144
+ ...(input.UserName != null && { UserName: input.UserName }),
2176
2145
  };
2177
2146
  };
2178
2147
  const serializeAws_json1_1InputFileLocation = (input, context) => {
2179
2148
  return {
2180
- ...(input.EfsFileLocation !== undefined &&
2181
- input.EfsFileLocation !== null && {
2149
+ ...(input.EfsFileLocation != null && {
2182
2150
  EfsFileLocation: serializeAws_json1_1EfsFileLocation(input.EfsFileLocation, context),
2183
2151
  }),
2184
- ...(input.S3FileLocation !== undefined &&
2185
- input.S3FileLocation !== null && {
2152
+ ...(input.S3FileLocation != null && {
2186
2153
  S3FileLocation: serializeAws_json1_1S3InputFileLocation(input.S3FileLocation, context),
2187
2154
  }),
2188
2155
  };
2189
2156
  };
2190
2157
  const serializeAws_json1_1ListAccessesRequest = (input, context) => {
2191
2158
  return {
2192
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2193
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2194
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2159
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2160
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2161
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2195
2162
  };
2196
2163
  };
2197
2164
  const serializeAws_json1_1ListExecutionsRequest = (input, context) => {
2198
2165
  return {
2199
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2200
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2201
- ...(input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }),
2166
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2167
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2168
+ ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2202
2169
  };
2203
2170
  };
2204
2171
  const serializeAws_json1_1ListSecurityPoliciesRequest = (input, context) => {
2205
2172
  return {
2206
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2207
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2173
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2174
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2208
2175
  };
2209
2176
  };
2210
2177
  const serializeAws_json1_1ListServersRequest = (input, context) => {
2211
2178
  return {
2212
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2213
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2179
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2180
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2214
2181
  };
2215
2182
  };
2216
2183
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
2217
2184
  return {
2218
- ...(input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn }),
2219
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2220
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2185
+ ...(input.Arn != null && { Arn: input.Arn }),
2186
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2187
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2221
2188
  };
2222
2189
  };
2223
2190
  const serializeAws_json1_1ListUsersRequest = (input, context) => {
2224
2191
  return {
2225
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2226
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2227
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2192
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2193
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2194
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2228
2195
  };
2229
2196
  };
2230
2197
  const serializeAws_json1_1ListWorkflowsRequest = (input, context) => {
2231
2198
  return {
2232
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2233
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2199
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2200
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2234
2201
  };
2235
2202
  };
2236
2203
  const serializeAws_json1_1OnUploadWorkflowDetails = (input, context) => {
@@ -2245,20 +2212,18 @@ const serializeAws_json1_1OnUploadWorkflowDetails = (input, context) => {
2245
2212
  };
2246
2213
  const serializeAws_json1_1PosixProfile = (input, context) => {
2247
2214
  return {
2248
- ...(input.Gid !== undefined && input.Gid !== null && { Gid: input.Gid }),
2249
- ...(input.SecondaryGids !== undefined &&
2250
- input.SecondaryGids !== null && {
2215
+ ...(input.Gid != null && { Gid: input.Gid }),
2216
+ ...(input.SecondaryGids != null && {
2251
2217
  SecondaryGids: serializeAws_json1_1SecondaryGids(input.SecondaryGids, context),
2252
2218
  }),
2253
- ...(input.Uid !== undefined && input.Uid !== null && { Uid: input.Uid }),
2219
+ ...(input.Uid != null && { Uid: input.Uid }),
2254
2220
  };
2255
2221
  };
2256
2222
  const serializeAws_json1_1ProtocolDetails = (input, context) => {
2257
2223
  return {
2258
- ...(input.PassiveIp !== undefined && input.PassiveIp !== null && { PassiveIp: input.PassiveIp }),
2259
- ...(input.SetStatOption !== undefined && input.SetStatOption !== null && { SetStatOption: input.SetStatOption }),
2260
- ...(input.TlsSessionResumptionMode !== undefined &&
2261
- input.TlsSessionResumptionMode !== null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }),
2224
+ ...(input.PassiveIp != null && { PassiveIp: input.PassiveIp }),
2225
+ ...(input.SetStatOption != null && { SetStatOption: input.SetStatOption }),
2226
+ ...(input.TlsSessionResumptionMode != null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }),
2262
2227
  };
2263
2228
  };
2264
2229
  const serializeAws_json1_1Protocols = (input, context) => {
@@ -2273,14 +2238,14 @@ const serializeAws_json1_1Protocols = (input, context) => {
2273
2238
  };
2274
2239
  const serializeAws_json1_1S3InputFileLocation = (input, context) => {
2275
2240
  return {
2276
- ...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
2277
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
2241
+ ...(input.Bucket != null && { Bucket: input.Bucket }),
2242
+ ...(input.Key != null && { Key: input.Key }),
2278
2243
  };
2279
2244
  };
2280
2245
  const serializeAws_json1_1S3Tag = (input, context) => {
2281
2246
  return {
2282
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
2283
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
2247
+ ...(input.Key != null && { Key: input.Key }),
2248
+ ...(input.Value != null && { Value: input.Value }),
2284
2249
  };
2285
2250
  };
2286
2251
  const serializeAws_json1_1S3Tags = (input, context) => {
@@ -2315,20 +2280,20 @@ const serializeAws_json1_1SecurityGroupIds = (input, context) => {
2315
2280
  };
2316
2281
  const serializeAws_json1_1SendWorkflowStepStateRequest = (input, context) => {
2317
2282
  return {
2318
- ...(input.ExecutionId !== undefined && input.ExecutionId !== null && { ExecutionId: input.ExecutionId }),
2319
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
2320
- ...(input.Token !== undefined && input.Token !== null && { Token: input.Token }),
2321
- ...(input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }),
2283
+ ...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }),
2284
+ ...(input.Status != null && { Status: input.Status }),
2285
+ ...(input.Token != null && { Token: input.Token }),
2286
+ ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2322
2287
  };
2323
2288
  };
2324
2289
  const serializeAws_json1_1StartServerRequest = (input, context) => {
2325
2290
  return {
2326
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2291
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2327
2292
  };
2328
2293
  };
2329
2294
  const serializeAws_json1_1StopServerRequest = (input, context) => {
2330
2295
  return {
2331
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2296
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2332
2297
  };
2333
2298
  };
2334
2299
  const serializeAws_json1_1SubnetIds = (input, context) => {
@@ -2343,8 +2308,8 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
2343
2308
  };
2344
2309
  const serializeAws_json1_1Tag = (input, context) => {
2345
2310
  return {
2346
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
2347
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
2311
+ ...(input.Key != null && { Key: input.Key }),
2312
+ ...(input.Value != null && { Value: input.Value }),
2348
2313
  };
2349
2314
  };
2350
2315
  const serializeAws_json1_1TagKeys = (input, context) => {
@@ -2359,8 +2324,8 @@ const serializeAws_json1_1TagKeys = (input, context) => {
2359
2324
  };
2360
2325
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
2361
2326
  return {
2362
- ...(input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn }),
2363
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2327
+ ...(input.Arn != null && { Arn: input.Arn }),
2328
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
2364
2329
  };
2365
2330
  };
2366
2331
  const serializeAws_json1_1Tags = (input, context) => {
@@ -2375,131 +2340,109 @@ const serializeAws_json1_1Tags = (input, context) => {
2375
2340
  };
2376
2341
  const serializeAws_json1_1TagStepDetails = (input, context) => {
2377
2342
  return {
2378
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2379
- ...(input.SourceFileLocation !== undefined &&
2380
- input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
2381
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1S3Tags(input.Tags, context) }),
2343
+ ...(input.Name != null && { Name: input.Name }),
2344
+ ...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
2345
+ ...(input.Tags != null && { Tags: serializeAws_json1_1S3Tags(input.Tags, context) }),
2382
2346
  };
2383
2347
  };
2384
2348
  const serializeAws_json1_1TestIdentityProviderRequest = (input, context) => {
2385
2349
  return {
2386
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2387
- ...(input.ServerProtocol !== undefined &&
2388
- input.ServerProtocol !== null && { ServerProtocol: input.ServerProtocol }),
2389
- ...(input.SourceIp !== undefined && input.SourceIp !== null && { SourceIp: input.SourceIp }),
2390
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
2391
- ...(input.UserPassword !== undefined && input.UserPassword !== null && { UserPassword: input.UserPassword }),
2350
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2351
+ ...(input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol }),
2352
+ ...(input.SourceIp != null && { SourceIp: input.SourceIp }),
2353
+ ...(input.UserName != null && { UserName: input.UserName }),
2354
+ ...(input.UserPassword != null && { UserPassword: input.UserPassword }),
2392
2355
  };
2393
2356
  };
2394
2357
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
2395
2358
  return {
2396
- ...(input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn }),
2397
- ...(input.TagKeys !== undefined &&
2398
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
2359
+ ...(input.Arn != null && { Arn: input.Arn }),
2360
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
2399
2361
  };
2400
2362
  };
2401
2363
  const serializeAws_json1_1UpdateAccessRequest = (input, context) => {
2402
2364
  return {
2403
- ...(input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId }),
2404
- ...(input.HomeDirectory !== undefined && input.HomeDirectory !== null && { HomeDirectory: input.HomeDirectory }),
2405
- ...(input.HomeDirectoryMappings !== undefined &&
2406
- input.HomeDirectoryMappings !== null && {
2365
+ ...(input.ExternalId != null && { ExternalId: input.ExternalId }),
2366
+ ...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
2367
+ ...(input.HomeDirectoryMappings != null && {
2407
2368
  HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
2408
2369
  }),
2409
- ...(input.HomeDirectoryType !== undefined &&
2410
- input.HomeDirectoryType !== null && { HomeDirectoryType: input.HomeDirectoryType }),
2411
- ...(input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }),
2412
- ...(input.PosixProfile !== undefined &&
2413
- input.PosixProfile !== null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
2414
- ...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
2415
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2370
+ ...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
2371
+ ...(input.Policy != null && { Policy: input.Policy }),
2372
+ ...(input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
2373
+ ...(input.Role != null && { Role: input.Role }),
2374
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2416
2375
  };
2417
2376
  };
2418
2377
  const serializeAws_json1_1UpdateServerRequest = (input, context) => {
2419
2378
  return {
2420
- ...(input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate }),
2421
- ...(input.EndpointDetails !== undefined &&
2422
- input.EndpointDetails !== null && {
2379
+ ...(input.Certificate != null && { Certificate: input.Certificate }),
2380
+ ...(input.EndpointDetails != null && {
2423
2381
  EndpointDetails: serializeAws_json1_1EndpointDetails(input.EndpointDetails, context),
2424
2382
  }),
2425
- ...(input.EndpointType !== undefined && input.EndpointType !== null && { EndpointType: input.EndpointType }),
2426
- ...(input.HostKey !== undefined && input.HostKey !== null && { HostKey: input.HostKey }),
2427
- ...(input.IdentityProviderDetails !== undefined &&
2428
- input.IdentityProviderDetails !== null && {
2383
+ ...(input.EndpointType != null && { EndpointType: input.EndpointType }),
2384
+ ...(input.HostKey != null && { HostKey: input.HostKey }),
2385
+ ...(input.IdentityProviderDetails != null && {
2429
2386
  IdentityProviderDetails: serializeAws_json1_1IdentityProviderDetails(input.IdentityProviderDetails, context),
2430
2387
  }),
2431
- ...(input.LoggingRole !== undefined && input.LoggingRole !== null && { LoggingRole: input.LoggingRole }),
2432
- ...(input.PostAuthenticationLoginBanner !== undefined &&
2433
- input.PostAuthenticationLoginBanner !== null && {
2388
+ ...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
2389
+ ...(input.PostAuthenticationLoginBanner != null && {
2434
2390
  PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
2435
2391
  }),
2436
- ...(input.PreAuthenticationLoginBanner !== undefined &&
2437
- input.PreAuthenticationLoginBanner !== null && {
2392
+ ...(input.PreAuthenticationLoginBanner != null && {
2438
2393
  PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
2439
2394
  }),
2440
- ...(input.ProtocolDetails !== undefined &&
2441
- input.ProtocolDetails !== null && {
2395
+ ...(input.ProtocolDetails != null && {
2442
2396
  ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
2443
2397
  }),
2444
- ...(input.Protocols !== undefined &&
2445
- input.Protocols !== null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) }),
2446
- ...(input.SecurityPolicyName !== undefined &&
2447
- input.SecurityPolicyName !== null && { SecurityPolicyName: input.SecurityPolicyName }),
2448
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2449
- ...(input.WorkflowDetails !== undefined &&
2450
- input.WorkflowDetails !== null && {
2398
+ ...(input.Protocols != null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) }),
2399
+ ...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
2400
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2401
+ ...(input.WorkflowDetails != null && {
2451
2402
  WorkflowDetails: serializeAws_json1_1WorkflowDetails(input.WorkflowDetails, context),
2452
2403
  }),
2453
2404
  };
2454
2405
  };
2455
2406
  const serializeAws_json1_1UpdateUserRequest = (input, context) => {
2456
2407
  return {
2457
- ...(input.HomeDirectory !== undefined && input.HomeDirectory !== null && { HomeDirectory: input.HomeDirectory }),
2458
- ...(input.HomeDirectoryMappings !== undefined &&
2459
- input.HomeDirectoryMappings !== null && {
2408
+ ...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
2409
+ ...(input.HomeDirectoryMappings != null && {
2460
2410
  HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
2461
2411
  }),
2462
- ...(input.HomeDirectoryType !== undefined &&
2463
- input.HomeDirectoryType !== null && { HomeDirectoryType: input.HomeDirectoryType }),
2464
- ...(input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }),
2465
- ...(input.PosixProfile !== undefined &&
2466
- input.PosixProfile !== null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
2467
- ...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
2468
- ...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
2469
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
2412
+ ...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
2413
+ ...(input.Policy != null && { Policy: input.Policy }),
2414
+ ...(input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
2415
+ ...(input.Role != null && { Role: input.Role }),
2416
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
2417
+ ...(input.UserName != null && { UserName: input.UserName }),
2470
2418
  };
2471
2419
  };
2472
2420
  const serializeAws_json1_1WorkflowDetail = (input, context) => {
2473
2421
  return {
2474
- ...(input.ExecutionRole !== undefined && input.ExecutionRole !== null && { ExecutionRole: input.ExecutionRole }),
2475
- ...(input.WorkflowId !== undefined && input.WorkflowId !== null && { WorkflowId: input.WorkflowId }),
2422
+ ...(input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole }),
2423
+ ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2476
2424
  };
2477
2425
  };
2478
2426
  const serializeAws_json1_1WorkflowDetails = (input, context) => {
2479
2427
  return {
2480
- ...(input.OnUpload !== undefined &&
2481
- input.OnUpload !== null && { OnUpload: serializeAws_json1_1OnUploadWorkflowDetails(input.OnUpload, context) }),
2428
+ ...(input.OnUpload != null && { OnUpload: serializeAws_json1_1OnUploadWorkflowDetails(input.OnUpload, context) }),
2482
2429
  };
2483
2430
  };
2484
2431
  const serializeAws_json1_1WorkflowStep = (input, context) => {
2485
2432
  return {
2486
- ...(input.CopyStepDetails !== undefined &&
2487
- input.CopyStepDetails !== null && {
2433
+ ...(input.CopyStepDetails != null && {
2488
2434
  CopyStepDetails: serializeAws_json1_1CopyStepDetails(input.CopyStepDetails, context),
2489
2435
  }),
2490
- ...(input.CustomStepDetails !== undefined &&
2491
- input.CustomStepDetails !== null && {
2436
+ ...(input.CustomStepDetails != null && {
2492
2437
  CustomStepDetails: serializeAws_json1_1CustomStepDetails(input.CustomStepDetails, context),
2493
2438
  }),
2494
- ...(input.DeleteStepDetails !== undefined &&
2495
- input.DeleteStepDetails !== null && {
2439
+ ...(input.DeleteStepDetails != null && {
2496
2440
  DeleteStepDetails: serializeAws_json1_1DeleteStepDetails(input.DeleteStepDetails, context),
2497
2441
  }),
2498
- ...(input.TagStepDetails !== undefined &&
2499
- input.TagStepDetails !== null && {
2442
+ ...(input.TagStepDetails != null && {
2500
2443
  TagStepDetails: serializeAws_json1_1TagStepDetails(input.TagStepDetails, context),
2501
2444
  }),
2502
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2445
+ ...(input.Type != null && { Type: input.Type }),
2503
2446
  };
2504
2447
  };
2505
2448
  const serializeAws_json1_1WorkflowSteps = (input, context) => {
@@ -2535,7 +2478,7 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
2535
2478
  };
2536
2479
  const deserializeAws_json1_1CopyStepDetails = (output, context) => {
2537
2480
  return {
2538
- DestinationFileLocation: output.DestinationFileLocation !== undefined && output.DestinationFileLocation !== null
2481
+ DestinationFileLocation: output.DestinationFileLocation != null
2539
2482
  ? deserializeAws_json1_1InputFileLocation(output.DestinationFileLocation, context)
2540
2483
  : undefined,
2541
2484
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -2581,9 +2524,7 @@ const deserializeAws_json1_1DeleteStepDetails = (output, context) => {
2581
2524
  };
2582
2525
  const deserializeAws_json1_1DescribeAccessResponse = (output, context) => {
2583
2526
  return {
2584
- Access: output.Access !== undefined && output.Access !== null
2585
- ? deserializeAws_json1_1DescribedAccess(output.Access, context)
2586
- : undefined,
2527
+ Access: output.Access != null ? deserializeAws_json1_1DescribedAccess(output.Access, context) : undefined,
2587
2528
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2588
2529
  };
2589
2530
  };
@@ -2591,14 +2532,12 @@ const deserializeAws_json1_1DescribedAccess = (output, context) => {
2591
2532
  return {
2592
2533
  ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
2593
2534
  HomeDirectory: (0, smithy_client_1.expectString)(output.HomeDirectory),
2594
- HomeDirectoryMappings: output.HomeDirectoryMappings !== undefined && output.HomeDirectoryMappings !== null
2535
+ HomeDirectoryMappings: output.HomeDirectoryMappings != null
2595
2536
  ? deserializeAws_json1_1HomeDirectoryMappings(output.HomeDirectoryMappings, context)
2596
2537
  : undefined,
2597
2538
  HomeDirectoryType: (0, smithy_client_1.expectString)(output.HomeDirectoryType),
2598
2539
  Policy: (0, smithy_client_1.expectString)(output.Policy),
2599
- PosixProfile: output.PosixProfile !== undefined && output.PosixProfile !== null
2600
- ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context)
2601
- : undefined,
2540
+ PosixProfile: output.PosixProfile != null ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context) : undefined,
2602
2541
  Role: (0, smithy_client_1.expectString)(output.Role),
2603
2542
  };
2604
2543
  };
@@ -2606,19 +2545,15 @@ const deserializeAws_json1_1DescribedExecution = (output, context) => {
2606
2545
  return {
2607
2546
  ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
2608
2547
  ExecutionRole: (0, smithy_client_1.expectString)(output.ExecutionRole),
2609
- InitialFileLocation: output.InitialFileLocation !== undefined && output.InitialFileLocation !== null
2548
+ InitialFileLocation: output.InitialFileLocation != null
2610
2549
  ? deserializeAws_json1_1FileLocation(output.InitialFileLocation, context)
2611
2550
  : undefined,
2612
- LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
2551
+ LoggingConfiguration: output.LoggingConfiguration != null
2613
2552
  ? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
2614
2553
  : undefined,
2615
- PosixProfile: output.PosixProfile !== undefined && output.PosixProfile !== null
2616
- ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context)
2617
- : undefined,
2618
- Results: output.Results !== undefined && output.Results !== null
2619
- ? deserializeAws_json1_1ExecutionResults(output.Results, context)
2620
- : undefined,
2621
- ServiceMetadata: output.ServiceMetadata !== undefined && output.ServiceMetadata !== null
2554
+ PosixProfile: output.PosixProfile != null ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context) : undefined,
2555
+ Results: output.Results != null ? deserializeAws_json1_1ExecutionResults(output.Results, context) : undefined,
2556
+ ServiceMetadata: output.ServiceMetadata != null
2622
2557
  ? deserializeAws_json1_1ServiceMetadata(output.ServiceMetadata, context)
2623
2558
  : undefined,
2624
2559
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -2628,18 +2563,10 @@ const deserializeAws_json1_1DescribedSecurityPolicy = (output, context) => {
2628
2563
  return {
2629
2564
  Fips: (0, smithy_client_1.expectBoolean)(output.Fips),
2630
2565
  SecurityPolicyName: (0, smithy_client_1.expectString)(output.SecurityPolicyName),
2631
- SshCiphers: output.SshCiphers !== undefined && output.SshCiphers !== null
2632
- ? deserializeAws_json1_1SecurityPolicyOptions(output.SshCiphers, context)
2633
- : undefined,
2634
- SshKexs: output.SshKexs !== undefined && output.SshKexs !== null
2635
- ? deserializeAws_json1_1SecurityPolicyOptions(output.SshKexs, context)
2636
- : undefined,
2637
- SshMacs: output.SshMacs !== undefined && output.SshMacs !== null
2638
- ? deserializeAws_json1_1SecurityPolicyOptions(output.SshMacs, context)
2639
- : undefined,
2640
- TlsCiphers: output.TlsCiphers !== undefined && output.TlsCiphers !== null
2641
- ? deserializeAws_json1_1SecurityPolicyOptions(output.TlsCiphers, context)
2642
- : undefined,
2566
+ SshCiphers: output.SshCiphers != null ? deserializeAws_json1_1SecurityPolicyOptions(output.SshCiphers, context) : undefined,
2567
+ SshKexs: output.SshKexs != null ? deserializeAws_json1_1SecurityPolicyOptions(output.SshKexs, context) : undefined,
2568
+ SshMacs: output.SshMacs != null ? deserializeAws_json1_1SecurityPolicyOptions(output.SshMacs, context) : undefined,
2569
+ TlsCiphers: output.TlsCiphers != null ? deserializeAws_json1_1SecurityPolicyOptions(output.TlsCiphers, context) : undefined,
2643
2570
  };
2644
2571
  };
2645
2572
  const deserializeAws_json1_1DescribedServer = (output, context) => {
@@ -2647,30 +2574,28 @@ const deserializeAws_json1_1DescribedServer = (output, context) => {
2647
2574
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2648
2575
  Certificate: (0, smithy_client_1.expectString)(output.Certificate),
2649
2576
  Domain: (0, smithy_client_1.expectString)(output.Domain),
2650
- EndpointDetails: output.EndpointDetails !== undefined && output.EndpointDetails !== null
2577
+ EndpointDetails: output.EndpointDetails != null
2651
2578
  ? deserializeAws_json1_1EndpointDetails(output.EndpointDetails, context)
2652
2579
  : undefined,
2653
2580
  EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
2654
2581
  HostKeyFingerprint: (0, smithy_client_1.expectString)(output.HostKeyFingerprint),
2655
- IdentityProviderDetails: output.IdentityProviderDetails !== undefined && output.IdentityProviderDetails !== null
2582
+ IdentityProviderDetails: output.IdentityProviderDetails != null
2656
2583
  ? deserializeAws_json1_1IdentityProviderDetails(output.IdentityProviderDetails, context)
2657
2584
  : undefined,
2658
2585
  IdentityProviderType: (0, smithy_client_1.expectString)(output.IdentityProviderType),
2659
2586
  LoggingRole: (0, smithy_client_1.expectString)(output.LoggingRole),
2660
2587
  PostAuthenticationLoginBanner: (0, smithy_client_1.expectString)(output.PostAuthenticationLoginBanner),
2661
2588
  PreAuthenticationLoginBanner: (0, smithy_client_1.expectString)(output.PreAuthenticationLoginBanner),
2662
- ProtocolDetails: output.ProtocolDetails !== undefined && output.ProtocolDetails !== null
2589
+ ProtocolDetails: output.ProtocolDetails != null
2663
2590
  ? deserializeAws_json1_1ProtocolDetails(output.ProtocolDetails, context)
2664
2591
  : undefined,
2665
- Protocols: output.Protocols !== undefined && output.Protocols !== null
2666
- ? deserializeAws_json1_1Protocols(output.Protocols, context)
2667
- : undefined,
2592
+ Protocols: output.Protocols != null ? deserializeAws_json1_1Protocols(output.Protocols, context) : undefined,
2668
2593
  SecurityPolicyName: (0, smithy_client_1.expectString)(output.SecurityPolicyName),
2669
2594
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2670
2595
  State: (0, smithy_client_1.expectString)(output.State),
2671
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
2596
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
2672
2597
  UserCount: (0, smithy_client_1.expectInt32)(output.UserCount),
2673
- WorkflowDetails: output.WorkflowDetails !== undefined && output.WorkflowDetails !== null
2598
+ WorkflowDetails: output.WorkflowDetails != null
2674
2599
  ? deserializeAws_json1_1WorkflowDetails(output.WorkflowDetails, context)
2675
2600
  : undefined,
2676
2601
  };
@@ -2679,19 +2604,15 @@ const deserializeAws_json1_1DescribedUser = (output, context) => {
2679
2604
  return {
2680
2605
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2681
2606
  HomeDirectory: (0, smithy_client_1.expectString)(output.HomeDirectory),
2682
- HomeDirectoryMappings: output.HomeDirectoryMappings !== undefined && output.HomeDirectoryMappings !== null
2607
+ HomeDirectoryMappings: output.HomeDirectoryMappings != null
2683
2608
  ? deserializeAws_json1_1HomeDirectoryMappings(output.HomeDirectoryMappings, context)
2684
2609
  : undefined,
2685
2610
  HomeDirectoryType: (0, smithy_client_1.expectString)(output.HomeDirectoryType),
2686
2611
  Policy: (0, smithy_client_1.expectString)(output.Policy),
2687
- PosixProfile: output.PosixProfile !== undefined && output.PosixProfile !== null
2688
- ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context)
2689
- : undefined,
2612
+ PosixProfile: output.PosixProfile != null ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context) : undefined,
2690
2613
  Role: (0, smithy_client_1.expectString)(output.Role),
2691
- SshPublicKeys: output.SshPublicKeys !== undefined && output.SshPublicKeys !== null
2692
- ? deserializeAws_json1_1SshPublicKeys(output.SshPublicKeys, context)
2693
- : undefined,
2694
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
2614
+ SshPublicKeys: output.SshPublicKeys != null ? deserializeAws_json1_1SshPublicKeys(output.SshPublicKeys, context) : undefined,
2615
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
2695
2616
  UserName: (0, smithy_client_1.expectString)(output.UserName),
2696
2617
  };
2697
2618
  };
@@ -2699,51 +2620,41 @@ const deserializeAws_json1_1DescribedWorkflow = (output, context) => {
2699
2620
  return {
2700
2621
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2701
2622
  Description: (0, smithy_client_1.expectString)(output.Description),
2702
- OnExceptionSteps: output.OnExceptionSteps !== undefined && output.OnExceptionSteps !== null
2623
+ OnExceptionSteps: output.OnExceptionSteps != null
2703
2624
  ? deserializeAws_json1_1WorkflowSteps(output.OnExceptionSteps, context)
2704
2625
  : undefined,
2705
- Steps: output.Steps !== undefined && output.Steps !== null
2706
- ? deserializeAws_json1_1WorkflowSteps(output.Steps, context)
2707
- : undefined,
2708
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
2626
+ Steps: output.Steps != null ? deserializeAws_json1_1WorkflowSteps(output.Steps, context) : undefined,
2627
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
2709
2628
  WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
2710
2629
  };
2711
2630
  };
2712
2631
  const deserializeAws_json1_1DescribeExecutionResponse = (output, context) => {
2713
2632
  return {
2714
- Execution: output.Execution !== undefined && output.Execution !== null
2715
- ? deserializeAws_json1_1DescribedExecution(output.Execution, context)
2716
- : undefined,
2633
+ Execution: output.Execution != null ? deserializeAws_json1_1DescribedExecution(output.Execution, context) : undefined,
2717
2634
  WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
2718
2635
  };
2719
2636
  };
2720
2637
  const deserializeAws_json1_1DescribeSecurityPolicyResponse = (output, context) => {
2721
2638
  return {
2722
- SecurityPolicy: output.SecurityPolicy !== undefined && output.SecurityPolicy !== null
2639
+ SecurityPolicy: output.SecurityPolicy != null
2723
2640
  ? deserializeAws_json1_1DescribedSecurityPolicy(output.SecurityPolicy, context)
2724
2641
  : undefined,
2725
2642
  };
2726
2643
  };
2727
2644
  const deserializeAws_json1_1DescribeServerResponse = (output, context) => {
2728
2645
  return {
2729
- Server: output.Server !== undefined && output.Server !== null
2730
- ? deserializeAws_json1_1DescribedServer(output.Server, context)
2731
- : undefined,
2646
+ Server: output.Server != null ? deserializeAws_json1_1DescribedServer(output.Server, context) : undefined,
2732
2647
  };
2733
2648
  };
2734
2649
  const deserializeAws_json1_1DescribeUserResponse = (output, context) => {
2735
2650
  return {
2736
2651
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2737
- User: output.User !== undefined && output.User !== null
2738
- ? deserializeAws_json1_1DescribedUser(output.User, context)
2739
- : undefined,
2652
+ User: output.User != null ? deserializeAws_json1_1DescribedUser(output.User, context) : undefined,
2740
2653
  };
2741
2654
  };
2742
2655
  const deserializeAws_json1_1DescribeWorkflowResponse = (output, context) => {
2743
2656
  return {
2744
- Workflow: output.Workflow !== undefined && output.Workflow !== null
2745
- ? deserializeAws_json1_1DescribedWorkflow(output.Workflow, context)
2746
- : undefined,
2657
+ Workflow: output.Workflow != null ? deserializeAws_json1_1DescribedWorkflow(output.Workflow, context) : undefined,
2747
2658
  };
2748
2659
  };
2749
2660
  const deserializeAws_json1_1EfsFileLocation = (output, context) => {
@@ -2754,15 +2665,13 @@ const deserializeAws_json1_1EfsFileLocation = (output, context) => {
2754
2665
  };
2755
2666
  const deserializeAws_json1_1EndpointDetails = (output, context) => {
2756
2667
  return {
2757
- AddressAllocationIds: output.AddressAllocationIds !== undefined && output.AddressAllocationIds !== null
2668
+ AddressAllocationIds: output.AddressAllocationIds != null
2758
2669
  ? deserializeAws_json1_1AddressAllocationIds(output.AddressAllocationIds, context)
2759
2670
  : undefined,
2760
- SecurityGroupIds: output.SecurityGroupIds !== undefined && output.SecurityGroupIds !== null
2671
+ SecurityGroupIds: output.SecurityGroupIds != null
2761
2672
  ? deserializeAws_json1_1SecurityGroupIds(output.SecurityGroupIds, context)
2762
2673
  : undefined,
2763
- SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
2764
- ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
2765
- : undefined,
2674
+ SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
2766
2675
  VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
2767
2676
  VpcId: (0, smithy_client_1.expectString)(output.VpcId),
2768
2677
  };
@@ -2775,19 +2684,15 @@ const deserializeAws_json1_1ExecutionError = (output, context) => {
2775
2684
  };
2776
2685
  const deserializeAws_json1_1ExecutionResults = (output, context) => {
2777
2686
  return {
2778
- OnExceptionSteps: output.OnExceptionSteps !== undefined && output.OnExceptionSteps !== null
2687
+ OnExceptionSteps: output.OnExceptionSteps != null
2779
2688
  ? deserializeAws_json1_1ExecutionStepResults(output.OnExceptionSteps, context)
2780
2689
  : undefined,
2781
- Steps: output.Steps !== undefined && output.Steps !== null
2782
- ? deserializeAws_json1_1ExecutionStepResults(output.Steps, context)
2783
- : undefined,
2690
+ Steps: output.Steps != null ? deserializeAws_json1_1ExecutionStepResults(output.Steps, context) : undefined,
2784
2691
  };
2785
2692
  };
2786
2693
  const deserializeAws_json1_1ExecutionStepResult = (output, context) => {
2787
2694
  return {
2788
- Error: output.Error !== undefined && output.Error !== null
2789
- ? deserializeAws_json1_1ExecutionError(output.Error, context)
2790
- : undefined,
2695
+ Error: output.Error != null ? deserializeAws_json1_1ExecutionError(output.Error, context) : undefined,
2791
2696
  Outputs: (0, smithy_client_1.expectString)(output.Outputs),
2792
2697
  StepType: (0, smithy_client_1.expectString)(output.StepType),
2793
2698
  };
@@ -2805,12 +2710,10 @@ const deserializeAws_json1_1ExecutionStepResults = (output, context) => {
2805
2710
  };
2806
2711
  const deserializeAws_json1_1FileLocation = (output, context) => {
2807
2712
  return {
2808
- EfsFileLocation: output.EfsFileLocation !== undefined && output.EfsFileLocation !== null
2713
+ EfsFileLocation: output.EfsFileLocation != null
2809
2714
  ? deserializeAws_json1_1EfsFileLocation(output.EfsFileLocation, context)
2810
2715
  : undefined,
2811
- S3FileLocation: output.S3FileLocation !== undefined && output.S3FileLocation !== null
2812
- ? deserializeAws_json1_1S3FileLocation(output.S3FileLocation, context)
2813
- : undefined,
2716
+ S3FileLocation: output.S3FileLocation != null ? deserializeAws_json1_1S3FileLocation(output.S3FileLocation, context) : undefined,
2814
2717
  };
2815
2718
  };
2816
2719
  const deserializeAws_json1_1HomeDirectoryMapEntry = (output, context) => {
@@ -2847,10 +2750,10 @@ const deserializeAws_json1_1ImportSshPublicKeyResponse = (output, context) => {
2847
2750
  };
2848
2751
  const deserializeAws_json1_1InputFileLocation = (output, context) => {
2849
2752
  return {
2850
- EfsFileLocation: output.EfsFileLocation !== undefined && output.EfsFileLocation !== null
2753
+ EfsFileLocation: output.EfsFileLocation != null
2851
2754
  ? deserializeAws_json1_1EfsFileLocation(output.EfsFileLocation, context)
2852
2755
  : undefined,
2853
- S3FileLocation: output.S3FileLocation !== undefined && output.S3FileLocation !== null
2756
+ S3FileLocation: output.S3FileLocation != null
2854
2757
  ? deserializeAws_json1_1S3InputFileLocation(output.S3FileLocation, context)
2855
2758
  : undefined,
2856
2759
  };
@@ -2872,9 +2775,7 @@ const deserializeAws_json1_1InvalidRequestException = (output, context) => {
2872
2775
  };
2873
2776
  const deserializeAws_json1_1ListAccessesResponse = (output, context) => {
2874
2777
  return {
2875
- Accesses: output.Accesses !== undefined && output.Accesses !== null
2876
- ? deserializeAws_json1_1ListedAccesses(output.Accesses, context)
2877
- : undefined,
2778
+ Accesses: output.Accesses != null ? deserializeAws_json1_1ListedAccesses(output.Accesses, context) : undefined,
2878
2779
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2879
2780
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2880
2781
  };
@@ -2901,10 +2802,10 @@ const deserializeAws_json1_1ListedAccesses = (output, context) => {
2901
2802
  const deserializeAws_json1_1ListedExecution = (output, context) => {
2902
2803
  return {
2903
2804
  ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
2904
- InitialFileLocation: output.InitialFileLocation !== undefined && output.InitialFileLocation !== null
2805
+ InitialFileLocation: output.InitialFileLocation != null
2905
2806
  ? deserializeAws_json1_1FileLocation(output.InitialFileLocation, context)
2906
2807
  : undefined,
2907
- ServiceMetadata: output.ServiceMetadata !== undefined && output.ServiceMetadata !== null
2808
+ ServiceMetadata: output.ServiceMetadata != null
2908
2809
  ? deserializeAws_json1_1ServiceMetadata(output.ServiceMetadata, context)
2909
2810
  : undefined,
2910
2811
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -2985,9 +2886,7 @@ const deserializeAws_json1_1ListedWorkflows = (output, context) => {
2985
2886
  };
2986
2887
  const deserializeAws_json1_1ListExecutionsResponse = (output, context) => {
2987
2888
  return {
2988
- Executions: output.Executions !== undefined && output.Executions !== null
2989
- ? deserializeAws_json1_1ListedExecutions(output.Executions, context)
2990
- : undefined,
2889
+ Executions: output.Executions != null ? deserializeAws_json1_1ListedExecutions(output.Executions, context) : undefined,
2991
2890
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2992
2891
  WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
2993
2892
  };
@@ -2995,7 +2894,7 @@ const deserializeAws_json1_1ListExecutionsResponse = (output, context) => {
2995
2894
  const deserializeAws_json1_1ListSecurityPoliciesResponse = (output, context) => {
2996
2895
  return {
2997
2896
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2998
- SecurityPolicyNames: output.SecurityPolicyNames !== undefined && output.SecurityPolicyNames !== null
2897
+ SecurityPolicyNames: output.SecurityPolicyNames != null
2999
2898
  ? deserializeAws_json1_1SecurityPolicyNames(output.SecurityPolicyNames, context)
3000
2899
  : undefined,
3001
2900
  };
@@ -3003,33 +2902,27 @@ const deserializeAws_json1_1ListSecurityPoliciesResponse = (output, context) =>
3003
2902
  const deserializeAws_json1_1ListServersResponse = (output, context) => {
3004
2903
  return {
3005
2904
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3006
- Servers: output.Servers !== undefined && output.Servers !== null
3007
- ? deserializeAws_json1_1ListedServers(output.Servers, context)
3008
- : undefined,
2905
+ Servers: output.Servers != null ? deserializeAws_json1_1ListedServers(output.Servers, context) : undefined,
3009
2906
  };
3010
2907
  };
3011
2908
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
3012
2909
  return {
3013
2910
  Arn: (0, smithy_client_1.expectString)(output.Arn),
3014
2911
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3015
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
2912
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3016
2913
  };
3017
2914
  };
3018
2915
  const deserializeAws_json1_1ListUsersResponse = (output, context) => {
3019
2916
  return {
3020
2917
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3021
2918
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
3022
- Users: output.Users !== undefined && output.Users !== null
3023
- ? deserializeAws_json1_1ListedUsers(output.Users, context)
3024
- : undefined,
2919
+ Users: output.Users != null ? deserializeAws_json1_1ListedUsers(output.Users, context) : undefined,
3025
2920
  };
3026
2921
  };
3027
2922
  const deserializeAws_json1_1ListWorkflowsResponse = (output, context) => {
3028
2923
  return {
3029
2924
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3030
- Workflows: output.Workflows !== undefined && output.Workflows !== null
3031
- ? deserializeAws_json1_1ListedWorkflows(output.Workflows, context)
3032
- : undefined,
2925
+ Workflows: output.Workflows != null ? deserializeAws_json1_1ListedWorkflows(output.Workflows, context) : undefined,
3033
2926
  };
3034
2927
  };
3035
2928
  const deserializeAws_json1_1LoggingConfiguration = (output, context) => {
@@ -3052,9 +2945,7 @@ const deserializeAws_json1_1OnUploadWorkflowDetails = (output, context) => {
3052
2945
  const deserializeAws_json1_1PosixProfile = (output, context) => {
3053
2946
  return {
3054
2947
  Gid: (0, smithy_client_1.expectLong)(output.Gid),
3055
- SecondaryGids: output.SecondaryGids !== undefined && output.SecondaryGids !== null
3056
- ? deserializeAws_json1_1SecondaryGids(output.SecondaryGids, context)
3057
- : undefined,
2948
+ SecondaryGids: output.SecondaryGids != null ? deserializeAws_json1_1SecondaryGids(output.SecondaryGids, context) : undefined,
3058
2949
  Uid: (0, smithy_client_1.expectLong)(output.Uid),
3059
2950
  };
3060
2951
  };
@@ -3170,9 +3061,7 @@ const deserializeAws_json1_1SendWorkflowStepStateResponse = (output, context) =>
3170
3061
  };
3171
3062
  const deserializeAws_json1_1ServiceMetadata = (output, context) => {
3172
3063
  return {
3173
- UserDetails: output.UserDetails !== undefined && output.UserDetails !== null
3174
- ? deserializeAws_json1_1UserDetails(output.UserDetails, context)
3175
- : undefined,
3064
+ UserDetails: output.UserDetails != null ? deserializeAws_json1_1UserDetails(output.UserDetails, context) : undefined,
3176
3065
  };
3177
3066
  };
3178
3067
  const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
@@ -3182,7 +3071,7 @@ const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
3182
3071
  };
3183
3072
  const deserializeAws_json1_1SshPublicKey = (output, context) => {
3184
3073
  return {
3185
- DateImported: output.DateImported !== undefined && output.DateImported !== null
3074
+ DateImported: output.DateImported != null
3186
3075
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateImported)))
3187
3076
  : undefined,
3188
3077
  SshPublicKeyBody: (0, smithy_client_1.expectString)(output.SshPublicKeyBody),
@@ -3232,9 +3121,7 @@ const deserializeAws_json1_1TagStepDetails = (output, context) => {
3232
3121
  return {
3233
3122
  Name: (0, smithy_client_1.expectString)(output.Name),
3234
3123
  SourceFileLocation: (0, smithy_client_1.expectString)(output.SourceFileLocation),
3235
- Tags: output.Tags !== undefined && output.Tags !== null
3236
- ? deserializeAws_json1_1S3Tags(output.Tags, context)
3237
- : undefined,
3124
+ Tags: output.Tags != null ? deserializeAws_json1_1S3Tags(output.Tags, context) : undefined,
3238
3125
  };
3239
3126
  };
3240
3127
  const deserializeAws_json1_1TestIdentityProviderResponse = (output, context) => {
@@ -3282,25 +3169,21 @@ const deserializeAws_json1_1WorkflowDetail = (output, context) => {
3282
3169
  };
3283
3170
  const deserializeAws_json1_1WorkflowDetails = (output, context) => {
3284
3171
  return {
3285
- OnUpload: output.OnUpload !== undefined && output.OnUpload !== null
3286
- ? deserializeAws_json1_1OnUploadWorkflowDetails(output.OnUpload, context)
3287
- : undefined,
3172
+ OnUpload: output.OnUpload != null ? deserializeAws_json1_1OnUploadWorkflowDetails(output.OnUpload, context) : undefined,
3288
3173
  };
3289
3174
  };
3290
3175
  const deserializeAws_json1_1WorkflowStep = (output, context) => {
3291
3176
  return {
3292
- CopyStepDetails: output.CopyStepDetails !== undefined && output.CopyStepDetails !== null
3177
+ CopyStepDetails: output.CopyStepDetails != null
3293
3178
  ? deserializeAws_json1_1CopyStepDetails(output.CopyStepDetails, context)
3294
3179
  : undefined,
3295
- CustomStepDetails: output.CustomStepDetails !== undefined && output.CustomStepDetails !== null
3180
+ CustomStepDetails: output.CustomStepDetails != null
3296
3181
  ? deserializeAws_json1_1CustomStepDetails(output.CustomStepDetails, context)
3297
3182
  : undefined,
3298
- DeleteStepDetails: output.DeleteStepDetails !== undefined && output.DeleteStepDetails !== null
3183
+ DeleteStepDetails: output.DeleteStepDetails != null
3299
3184
  ? deserializeAws_json1_1DeleteStepDetails(output.DeleteStepDetails, context)
3300
3185
  : undefined,
3301
- TagStepDetails: output.TagStepDetails !== undefined && output.TagStepDetails !== null
3302
- ? deserializeAws_json1_1TagStepDetails(output.TagStepDetails, context)
3303
- : undefined,
3186
+ TagStepDetails: output.TagStepDetails != null ? deserializeAws_json1_1TagStepDetails(output.TagStepDetails, context) : undefined,
3304
3187
  Type: (0, smithy_client_1.expectString)(output.Type),
3305
3188
  };
3306
3189
  };
@@ -3359,6 +3242,9 @@ const loadRestJsonErrorCode = (output, data) => {
3359
3242
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3360
3243
  const sanitizeErrorCode = (rawValue) => {
3361
3244
  let cleanValue = rawValue;
3245
+ if (typeof cleanValue === "number") {
3246
+ cleanValue = cleanValue.toString();
3247
+ }
3362
3248
  if (cleanValue.indexOf(":") >= 0) {
3363
3249
  cleanValue = cleanValue.split(":")[0];
3364
3250
  }