@aws-sdk/client-managedblockchain 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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-managedblockchain
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-managedblockchain
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -26,9 +26,8 @@ const serializeAws_restJson1CreateMemberCommand = async (input, context) => {
26
26
  let body;
27
27
  body = JSON.stringify({
28
28
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
29
- ...(input.InvitationId !== undefined && input.InvitationId !== null && { InvitationId: input.InvitationId }),
30
- ...(input.MemberConfiguration !== undefined &&
31
- input.MemberConfiguration !== null && {
29
+ ...(input.InvitationId != null && { InvitationId: input.InvitationId }),
30
+ ...(input.MemberConfiguration != null && {
32
31
  MemberConfiguration: serializeAws_restJson1MemberConfiguration(input.MemberConfiguration, context),
33
32
  }),
34
33
  });
@@ -53,23 +52,20 @@ const serializeAws_restJson1CreateNetworkCommand = async (input, context) => {
53
52
  let body;
54
53
  body = JSON.stringify({
55
54
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
56
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
57
- ...(input.Framework !== undefined && input.Framework !== null && { Framework: input.Framework }),
58
- ...(input.FrameworkConfiguration !== undefined &&
59
- input.FrameworkConfiguration !== null && {
55
+ ...(input.Description != null && { Description: input.Description }),
56
+ ...(input.Framework != null && { Framework: input.Framework }),
57
+ ...(input.FrameworkConfiguration != null && {
60
58
  FrameworkConfiguration: serializeAws_restJson1NetworkFrameworkConfiguration(input.FrameworkConfiguration, context),
61
59
  }),
62
- ...(input.FrameworkVersion !== undefined &&
63
- input.FrameworkVersion !== null && { FrameworkVersion: input.FrameworkVersion }),
64
- ...(input.MemberConfiguration !== undefined &&
65
- input.MemberConfiguration !== null && {
60
+ ...(input.FrameworkVersion != null && { FrameworkVersion: input.FrameworkVersion }),
61
+ ...(input.MemberConfiguration != null && {
66
62
  MemberConfiguration: serializeAws_restJson1MemberConfiguration(input.MemberConfiguration, context),
67
63
  }),
68
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
69
- ...(input.Tags !== undefined &&
70
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
71
- ...(input.VotingPolicy !== undefined &&
72
- input.VotingPolicy !== null && { VotingPolicy: serializeAws_restJson1VotingPolicy(input.VotingPolicy, context) }),
64
+ ...(input.Name != null && { Name: input.Name }),
65
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
66
+ ...(input.VotingPolicy != null && {
67
+ VotingPolicy: serializeAws_restJson1VotingPolicy(input.VotingPolicy, context),
68
+ }),
73
69
  });
74
70
  return new protocol_http_1.HttpRequest({
75
71
  protocol,
@@ -102,13 +98,11 @@ const serializeAws_restJson1CreateNodeCommand = async (input, context) => {
102
98
  let body;
103
99
  body = JSON.stringify({
104
100
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
105
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
106
- ...(input.NodeConfiguration !== undefined &&
107
- input.NodeConfiguration !== null && {
101
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
102
+ ...(input.NodeConfiguration != null && {
108
103
  NodeConfiguration: serializeAws_restJson1NodeConfiguration(input.NodeConfiguration, context),
109
104
  }),
110
- ...(input.Tags !== undefined &&
111
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
105
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
112
106
  });
113
107
  return new protocol_http_1.HttpRequest({
114
108
  protocol,
@@ -140,13 +134,11 @@ const serializeAws_restJson1CreateProposalCommand = async (input, context) => {
140
134
  }
141
135
  let body;
142
136
  body = JSON.stringify({
143
- ...(input.Actions !== undefined &&
144
- input.Actions !== null && { Actions: serializeAws_restJson1ProposalActions(input.Actions, context) }),
137
+ ...(input.Actions != null && { Actions: serializeAws_restJson1ProposalActions(input.Actions, context) }),
145
138
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
146
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
147
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
148
- ...(input.Tags !== undefined &&
149
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
139
+ ...(input.Description != null && { Description: input.Description }),
140
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
141
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
150
142
  });
151
143
  return new protocol_http_1.HttpRequest({
152
144
  protocol,
@@ -629,8 +621,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
629
621
  }
630
622
  let body;
631
623
  body = JSON.stringify({
632
- ...(input.Tags !== undefined &&
633
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
624
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
634
625
  });
635
626
  return new protocol_http_1.HttpRequest({
636
627
  protocol,
@@ -701,8 +692,7 @@ const serializeAws_restJson1UpdateMemberCommand = async (input, context) => {
701
692
  }
702
693
  let body;
703
694
  body = JSON.stringify({
704
- ...(input.LogPublishingConfiguration !== undefined &&
705
- input.LogPublishingConfiguration !== null && {
695
+ ...(input.LogPublishingConfiguration != null && {
706
696
  LogPublishingConfiguration: serializeAws_restJson1MemberLogPublishingConfiguration(input.LogPublishingConfiguration, context),
707
697
  }),
708
698
  });
@@ -745,11 +735,10 @@ const serializeAws_restJson1UpdateNodeCommand = async (input, context) => {
745
735
  }
746
736
  let body;
747
737
  body = JSON.stringify({
748
- ...(input.LogPublishingConfiguration !== undefined &&
749
- input.LogPublishingConfiguration !== null && {
738
+ ...(input.LogPublishingConfiguration != null && {
750
739
  LogPublishingConfiguration: serializeAws_restJson1NodeLogPublishingConfiguration(input.LogPublishingConfiguration, context),
751
740
  }),
752
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
741
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
753
742
  });
754
743
  return new protocol_http_1.HttpRequest({
755
744
  protocol,
@@ -791,8 +780,8 @@ const serializeAws_restJson1VoteOnProposalCommand = async (input, context) => {
791
780
  }
792
781
  let body;
793
782
  body = JSON.stringify({
794
- ...(input.Vote !== undefined && input.Vote !== null && { Vote: input.Vote }),
795
- ...(input.VoterMemberId !== undefined && input.VoterMemberId !== null && { VoterMemberId: input.VoterMemberId }),
783
+ ...(input.Vote != null && { Vote: input.Vote }),
784
+ ...(input.VoterMemberId != null && { VoterMemberId: input.VoterMemberId }),
796
785
  });
797
786
  return new protocol_http_1.HttpRequest({
798
787
  protocol,
@@ -2106,12 +2095,9 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
2106
2095
  };
2107
2096
  const serializeAws_restJson1ApprovalThresholdPolicy = (input, context) => {
2108
2097
  return {
2109
- ...(input.ProposalDurationInHours !== undefined &&
2110
- input.ProposalDurationInHours !== null && { ProposalDurationInHours: input.ProposalDurationInHours }),
2111
- ...(input.ThresholdComparator !== undefined &&
2112
- input.ThresholdComparator !== null && { ThresholdComparator: input.ThresholdComparator }),
2113
- ...(input.ThresholdPercentage !== undefined &&
2114
- input.ThresholdPercentage !== null && { ThresholdPercentage: input.ThresholdPercentage }),
2098
+ ...(input.ProposalDurationInHours != null && { ProposalDurationInHours: input.ProposalDurationInHours }),
2099
+ ...(input.ThresholdComparator != null && { ThresholdComparator: input.ThresholdComparator }),
2100
+ ...(input.ThresholdPercentage != null && { ThresholdPercentage: input.ThresholdPercentage }),
2115
2101
  };
2116
2102
  };
2117
2103
  const serializeAws_restJson1InputTagMap = (input, context) => {
@@ -2127,7 +2113,7 @@ const serializeAws_restJson1InputTagMap = (input, context) => {
2127
2113
  };
2128
2114
  const serializeAws_restJson1InviteAction = (input, context) => {
2129
2115
  return {
2130
- ...(input.Principal !== undefined && input.Principal !== null && { Principal: input.Principal }),
2116
+ ...(input.Principal != null && { Principal: input.Principal }),
2131
2117
  };
2132
2118
  };
2133
2119
  const serializeAws_restJson1InviteActionList = (input, context) => {
@@ -2142,112 +2128,97 @@ const serializeAws_restJson1InviteActionList = (input, context) => {
2142
2128
  };
2143
2129
  const serializeAws_restJson1LogConfiguration = (input, context) => {
2144
2130
  return {
2145
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
2131
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
2146
2132
  };
2147
2133
  };
2148
2134
  const serializeAws_restJson1LogConfigurations = (input, context) => {
2149
2135
  return {
2150
- ...(input.Cloudwatch !== undefined &&
2151
- input.Cloudwatch !== null && { Cloudwatch: serializeAws_restJson1LogConfiguration(input.Cloudwatch, context) }),
2136
+ ...(input.Cloudwatch != null && { Cloudwatch: serializeAws_restJson1LogConfiguration(input.Cloudwatch, context) }),
2152
2137
  };
2153
2138
  };
2154
2139
  const serializeAws_restJson1MemberConfiguration = (input, context) => {
2155
2140
  return {
2156
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2157
- ...(input.FrameworkConfiguration !== undefined &&
2158
- input.FrameworkConfiguration !== null && {
2141
+ ...(input.Description != null && { Description: input.Description }),
2142
+ ...(input.FrameworkConfiguration != null && {
2159
2143
  FrameworkConfiguration: serializeAws_restJson1MemberFrameworkConfiguration(input.FrameworkConfiguration, context),
2160
2144
  }),
2161
- ...(input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn }),
2162
- ...(input.LogPublishingConfiguration !== undefined &&
2163
- input.LogPublishingConfiguration !== null && {
2145
+ ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
2146
+ ...(input.LogPublishingConfiguration != null && {
2164
2147
  LogPublishingConfiguration: serializeAws_restJson1MemberLogPublishingConfiguration(input.LogPublishingConfiguration, context),
2165
2148
  }),
2166
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2167
- ...(input.Tags !== undefined &&
2168
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
2149
+ ...(input.Name != null && { Name: input.Name }),
2150
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
2169
2151
  };
2170
2152
  };
2171
2153
  const serializeAws_restJson1MemberFabricConfiguration = (input, context) => {
2172
2154
  return {
2173
- ...(input.AdminPassword !== undefined && input.AdminPassword !== null && { AdminPassword: input.AdminPassword }),
2174
- ...(input.AdminUsername !== undefined && input.AdminUsername !== null && { AdminUsername: input.AdminUsername }),
2155
+ ...(input.AdminPassword != null && { AdminPassword: input.AdminPassword }),
2156
+ ...(input.AdminUsername != null && { AdminUsername: input.AdminUsername }),
2175
2157
  };
2176
2158
  };
2177
2159
  const serializeAws_restJson1MemberFabricLogPublishingConfiguration = (input, context) => {
2178
2160
  return {
2179
- ...(input.CaLogs !== undefined &&
2180
- input.CaLogs !== null && { CaLogs: serializeAws_restJson1LogConfigurations(input.CaLogs, context) }),
2161
+ ...(input.CaLogs != null && { CaLogs: serializeAws_restJson1LogConfigurations(input.CaLogs, context) }),
2181
2162
  };
2182
2163
  };
2183
2164
  const serializeAws_restJson1MemberFrameworkConfiguration = (input, context) => {
2184
2165
  return {
2185
- ...(input.Fabric !== undefined &&
2186
- input.Fabric !== null && { Fabric: serializeAws_restJson1MemberFabricConfiguration(input.Fabric, context) }),
2166
+ ...(input.Fabric != null && { Fabric: serializeAws_restJson1MemberFabricConfiguration(input.Fabric, context) }),
2187
2167
  };
2188
2168
  };
2189
2169
  const serializeAws_restJson1MemberLogPublishingConfiguration = (input, context) => {
2190
2170
  return {
2191
- ...(input.Fabric !== undefined &&
2192
- input.Fabric !== null && {
2171
+ ...(input.Fabric != null && {
2193
2172
  Fabric: serializeAws_restJson1MemberFabricLogPublishingConfiguration(input.Fabric, context),
2194
2173
  }),
2195
2174
  };
2196
2175
  };
2197
2176
  const serializeAws_restJson1NetworkFabricConfiguration = (input, context) => {
2198
2177
  return {
2199
- ...(input.Edition !== undefined && input.Edition !== null && { Edition: input.Edition }),
2178
+ ...(input.Edition != null && { Edition: input.Edition }),
2200
2179
  };
2201
2180
  };
2202
2181
  const serializeAws_restJson1NetworkFrameworkConfiguration = (input, context) => {
2203
2182
  return {
2204
- ...(input.Fabric !== undefined &&
2205
- input.Fabric !== null && { Fabric: serializeAws_restJson1NetworkFabricConfiguration(input.Fabric, context) }),
2183
+ ...(input.Fabric != null && { Fabric: serializeAws_restJson1NetworkFabricConfiguration(input.Fabric, context) }),
2206
2184
  };
2207
2185
  };
2208
2186
  const serializeAws_restJson1NodeConfiguration = (input, context) => {
2209
2187
  return {
2210
- ...(input.AvailabilityZone !== undefined &&
2211
- input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone }),
2212
- ...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
2213
- ...(input.LogPublishingConfiguration !== undefined &&
2214
- input.LogPublishingConfiguration !== null && {
2188
+ ...(input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone }),
2189
+ ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
2190
+ ...(input.LogPublishingConfiguration != null && {
2215
2191
  LogPublishingConfiguration: serializeAws_restJson1NodeLogPublishingConfiguration(input.LogPublishingConfiguration, context),
2216
2192
  }),
2217
- ...(input.StateDB !== undefined && input.StateDB !== null && { StateDB: input.StateDB }),
2193
+ ...(input.StateDB != null && { StateDB: input.StateDB }),
2218
2194
  };
2219
2195
  };
2220
2196
  const serializeAws_restJson1NodeFabricLogPublishingConfiguration = (input, context) => {
2221
2197
  return {
2222
- ...(input.ChaincodeLogs !== undefined &&
2223
- input.ChaincodeLogs !== null && {
2198
+ ...(input.ChaincodeLogs != null && {
2224
2199
  ChaincodeLogs: serializeAws_restJson1LogConfigurations(input.ChaincodeLogs, context),
2225
2200
  }),
2226
- ...(input.PeerLogs !== undefined &&
2227
- input.PeerLogs !== null && { PeerLogs: serializeAws_restJson1LogConfigurations(input.PeerLogs, context) }),
2201
+ ...(input.PeerLogs != null && { PeerLogs: serializeAws_restJson1LogConfigurations(input.PeerLogs, context) }),
2228
2202
  };
2229
2203
  };
2230
2204
  const serializeAws_restJson1NodeLogPublishingConfiguration = (input, context) => {
2231
2205
  return {
2232
- ...(input.Fabric !== undefined &&
2233
- input.Fabric !== null && {
2206
+ ...(input.Fabric != null && {
2234
2207
  Fabric: serializeAws_restJson1NodeFabricLogPublishingConfiguration(input.Fabric, context),
2235
2208
  }),
2236
2209
  };
2237
2210
  };
2238
2211
  const serializeAws_restJson1ProposalActions = (input, context) => {
2239
2212
  return {
2240
- ...(input.Invitations !== undefined &&
2241
- input.Invitations !== null && {
2213
+ ...(input.Invitations != null && {
2242
2214
  Invitations: serializeAws_restJson1InviteActionList(input.Invitations, context),
2243
2215
  }),
2244
- ...(input.Removals !== undefined &&
2245
- input.Removals !== null && { Removals: serializeAws_restJson1RemoveActionList(input.Removals, context) }),
2216
+ ...(input.Removals != null && { Removals: serializeAws_restJson1RemoveActionList(input.Removals, context) }),
2246
2217
  };
2247
2218
  };
2248
2219
  const serializeAws_restJson1RemoveAction = (input, context) => {
2249
2220
  return {
2250
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
2221
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
2251
2222
  };
2252
2223
  };
2253
2224
  const serializeAws_restJson1RemoveActionList = (input, context) => {
@@ -2262,8 +2233,7 @@ const serializeAws_restJson1RemoveActionList = (input, context) => {
2262
2233
  };
2263
2234
  const serializeAws_restJson1VotingPolicy = (input, context) => {
2264
2235
  return {
2265
- ...(input.ApprovalThresholdPolicy !== undefined &&
2266
- input.ApprovalThresholdPolicy !== null && {
2236
+ ...(input.ApprovalThresholdPolicy != null && {
2267
2237
  ApprovalThresholdPolicy: serializeAws_restJson1ApprovalThresholdPolicy(input.ApprovalThresholdPolicy, context),
2268
2238
  }),
2269
2239
  };
@@ -2278,14 +2248,10 @@ const deserializeAws_restJson1ApprovalThresholdPolicy = (output, context) => {
2278
2248
  const deserializeAws_restJson1Invitation = (output, context) => {
2279
2249
  return {
2280
2250
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2281
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2282
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2283
- : undefined,
2284
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
2285
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate))
2286
- : undefined,
2251
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2252
+ ExpirationDate: output.ExpirationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate)) : undefined,
2287
2253
  InvitationId: (0, smithy_client_1.expectString)(output.InvitationId),
2288
- NetworkSummary: output.NetworkSummary !== undefined && output.NetworkSummary !== null
2254
+ NetworkSummary: output.NetworkSummary != null
2289
2255
  ? deserializeAws_restJson1NetworkSummary(output.NetworkSummary, context)
2290
2256
  : undefined,
2291
2257
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -2325,32 +2291,26 @@ const deserializeAws_restJson1LogConfiguration = (output, context) => {
2325
2291
  };
2326
2292
  const deserializeAws_restJson1LogConfigurations = (output, context) => {
2327
2293
  return {
2328
- Cloudwatch: output.Cloudwatch !== undefined && output.Cloudwatch !== null
2329
- ? deserializeAws_restJson1LogConfiguration(output.Cloudwatch, context)
2330
- : undefined,
2294
+ Cloudwatch: output.Cloudwatch != null ? deserializeAws_restJson1LogConfiguration(output.Cloudwatch, context) : undefined,
2331
2295
  };
2332
2296
  };
2333
2297
  const deserializeAws_restJson1Member = (output, context) => {
2334
2298
  return {
2335
2299
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2336
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2337
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2338
- : undefined,
2300
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2339
2301
  Description: (0, smithy_client_1.expectString)(output.Description),
2340
- FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
2302
+ FrameworkAttributes: output.FrameworkAttributes != null
2341
2303
  ? deserializeAws_restJson1MemberFrameworkAttributes(output.FrameworkAttributes, context)
2342
2304
  : undefined,
2343
2305
  Id: (0, smithy_client_1.expectString)(output.Id),
2344
2306
  KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
2345
- LogPublishingConfiguration: output.LogPublishingConfiguration !== undefined && output.LogPublishingConfiguration !== null
2307
+ LogPublishingConfiguration: output.LogPublishingConfiguration != null
2346
2308
  ? deserializeAws_restJson1MemberLogPublishingConfiguration(output.LogPublishingConfiguration, context)
2347
2309
  : undefined,
2348
2310
  Name: (0, smithy_client_1.expectString)(output.Name),
2349
2311
  NetworkId: (0, smithy_client_1.expectString)(output.NetworkId),
2350
2312
  Status: (0, smithy_client_1.expectString)(output.Status),
2351
- Tags: output.Tags !== undefined && output.Tags !== null
2352
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2353
- : undefined,
2313
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2354
2314
  };
2355
2315
  };
2356
2316
  const deserializeAws_restJson1MemberFabricAttributes = (output, context) => {
@@ -2361,21 +2321,17 @@ const deserializeAws_restJson1MemberFabricAttributes = (output, context) => {
2361
2321
  };
2362
2322
  const deserializeAws_restJson1MemberFabricLogPublishingConfiguration = (output, context) => {
2363
2323
  return {
2364
- CaLogs: output.CaLogs !== undefined && output.CaLogs !== null
2365
- ? deserializeAws_restJson1LogConfigurations(output.CaLogs, context)
2366
- : undefined,
2324
+ CaLogs: output.CaLogs != null ? deserializeAws_restJson1LogConfigurations(output.CaLogs, context) : undefined,
2367
2325
  };
2368
2326
  };
2369
2327
  const deserializeAws_restJson1MemberFrameworkAttributes = (output, context) => {
2370
2328
  return {
2371
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2372
- ? deserializeAws_restJson1MemberFabricAttributes(output.Fabric, context)
2373
- : undefined,
2329
+ Fabric: output.Fabric != null ? deserializeAws_restJson1MemberFabricAttributes(output.Fabric, context) : undefined,
2374
2330
  };
2375
2331
  };
2376
2332
  const deserializeAws_restJson1MemberLogPublishingConfiguration = (output, context) => {
2377
2333
  return {
2378
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2334
+ Fabric: output.Fabric != null
2379
2335
  ? deserializeAws_restJson1MemberFabricLogPublishingConfiguration(output.Fabric, context)
2380
2336
  : undefined,
2381
2337
  };
@@ -2383,9 +2339,7 @@ const deserializeAws_restJson1MemberLogPublishingConfiguration = (output, contex
2383
2339
  const deserializeAws_restJson1MemberSummary = (output, context) => {
2384
2340
  return {
2385
2341
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2386
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2387
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2388
- : undefined,
2342
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2389
2343
  Description: (0, smithy_client_1.expectString)(output.Description),
2390
2344
  Id: (0, smithy_client_1.expectString)(output.Id),
2391
2345
  IsOwned: (0, smithy_client_1.expectBoolean)(output.IsOwned),
@@ -2407,24 +2361,18 @@ const deserializeAws_restJson1MemberSummaryList = (output, context) => {
2407
2361
  const deserializeAws_restJson1Network = (output, context) => {
2408
2362
  return {
2409
2363
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2410
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2411
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2412
- : undefined,
2364
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2413
2365
  Description: (0, smithy_client_1.expectString)(output.Description),
2414
2366
  Framework: (0, smithy_client_1.expectString)(output.Framework),
2415
- FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
2367
+ FrameworkAttributes: output.FrameworkAttributes != null
2416
2368
  ? deserializeAws_restJson1NetworkFrameworkAttributes(output.FrameworkAttributes, context)
2417
2369
  : undefined,
2418
2370
  FrameworkVersion: (0, smithy_client_1.expectString)(output.FrameworkVersion),
2419
2371
  Id: (0, smithy_client_1.expectString)(output.Id),
2420
2372
  Name: (0, smithy_client_1.expectString)(output.Name),
2421
2373
  Status: (0, smithy_client_1.expectString)(output.Status),
2422
- Tags: output.Tags !== undefined && output.Tags !== null
2423
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2424
- : undefined,
2425
- VotingPolicy: output.VotingPolicy !== undefined && output.VotingPolicy !== null
2426
- ? deserializeAws_restJson1VotingPolicy(output.VotingPolicy, context)
2427
- : undefined,
2374
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2375
+ VotingPolicy: output.VotingPolicy != null ? deserializeAws_restJson1VotingPolicy(output.VotingPolicy, context) : undefined,
2428
2376
  VpcEndpointServiceName: (0, smithy_client_1.expectString)(output.VpcEndpointServiceName),
2429
2377
  };
2430
2378
  };
@@ -2441,20 +2389,14 @@ const deserializeAws_restJson1NetworkFabricAttributes = (output, context) => {
2441
2389
  };
2442
2390
  const deserializeAws_restJson1NetworkFrameworkAttributes = (output, context) => {
2443
2391
  return {
2444
- Ethereum: output.Ethereum !== undefined && output.Ethereum !== null
2445
- ? deserializeAws_restJson1NetworkEthereumAttributes(output.Ethereum, context)
2446
- : undefined,
2447
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2448
- ? deserializeAws_restJson1NetworkFabricAttributes(output.Fabric, context)
2449
- : undefined,
2392
+ Ethereum: output.Ethereum != null ? deserializeAws_restJson1NetworkEthereumAttributes(output.Ethereum, context) : undefined,
2393
+ Fabric: output.Fabric != null ? deserializeAws_restJson1NetworkFabricAttributes(output.Fabric, context) : undefined,
2450
2394
  };
2451
2395
  };
2452
2396
  const deserializeAws_restJson1NetworkSummary = (output, context) => {
2453
2397
  return {
2454
2398
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2455
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2456
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2457
- : undefined,
2399
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2458
2400
  Description: (0, smithy_client_1.expectString)(output.Description),
2459
2401
  Framework: (0, smithy_client_1.expectString)(output.Framework),
2460
2402
  FrameworkVersion: (0, smithy_client_1.expectString)(output.FrameworkVersion),
@@ -2478,25 +2420,21 @@ const deserializeAws_restJson1Node = (output, context) => {
2478
2420
  return {
2479
2421
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2480
2422
  AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
2481
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2482
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2483
- : undefined,
2484
- FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
2423
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2424
+ FrameworkAttributes: output.FrameworkAttributes != null
2485
2425
  ? deserializeAws_restJson1NodeFrameworkAttributes(output.FrameworkAttributes, context)
2486
2426
  : undefined,
2487
2427
  Id: (0, smithy_client_1.expectString)(output.Id),
2488
2428
  InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
2489
2429
  KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
2490
- LogPublishingConfiguration: output.LogPublishingConfiguration !== undefined && output.LogPublishingConfiguration !== null
2430
+ LogPublishingConfiguration: output.LogPublishingConfiguration != null
2491
2431
  ? deserializeAws_restJson1NodeLogPublishingConfiguration(output.LogPublishingConfiguration, context)
2492
2432
  : undefined,
2493
2433
  MemberId: (0, smithy_client_1.expectString)(output.MemberId),
2494
2434
  NetworkId: (0, smithy_client_1.expectString)(output.NetworkId),
2495
2435
  StateDB: (0, smithy_client_1.expectString)(output.StateDB),
2496
2436
  Status: (0, smithy_client_1.expectString)(output.Status),
2497
- Tags: output.Tags !== undefined && output.Tags !== null
2498
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2499
- : undefined,
2437
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2500
2438
  };
2501
2439
  };
2502
2440
  const deserializeAws_restJson1NodeEthereumAttributes = (output, context) => {
@@ -2513,27 +2451,21 @@ const deserializeAws_restJson1NodeFabricAttributes = (output, context) => {
2513
2451
  };
2514
2452
  const deserializeAws_restJson1NodeFabricLogPublishingConfiguration = (output, context) => {
2515
2453
  return {
2516
- ChaincodeLogs: output.ChaincodeLogs !== undefined && output.ChaincodeLogs !== null
2454
+ ChaincodeLogs: output.ChaincodeLogs != null
2517
2455
  ? deserializeAws_restJson1LogConfigurations(output.ChaincodeLogs, context)
2518
2456
  : undefined,
2519
- PeerLogs: output.PeerLogs !== undefined && output.PeerLogs !== null
2520
- ? deserializeAws_restJson1LogConfigurations(output.PeerLogs, context)
2521
- : undefined,
2457
+ PeerLogs: output.PeerLogs != null ? deserializeAws_restJson1LogConfigurations(output.PeerLogs, context) : undefined,
2522
2458
  };
2523
2459
  };
2524
2460
  const deserializeAws_restJson1NodeFrameworkAttributes = (output, context) => {
2525
2461
  return {
2526
- Ethereum: output.Ethereum !== undefined && output.Ethereum !== null
2527
- ? deserializeAws_restJson1NodeEthereumAttributes(output.Ethereum, context)
2528
- : undefined,
2529
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2530
- ? deserializeAws_restJson1NodeFabricAttributes(output.Fabric, context)
2531
- : undefined,
2462
+ Ethereum: output.Ethereum != null ? deserializeAws_restJson1NodeEthereumAttributes(output.Ethereum, context) : undefined,
2463
+ Fabric: output.Fabric != null ? deserializeAws_restJson1NodeFabricAttributes(output.Fabric, context) : undefined,
2532
2464
  };
2533
2465
  };
2534
2466
  const deserializeAws_restJson1NodeLogPublishingConfiguration = (output, context) => {
2535
2467
  return {
2536
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2468
+ Fabric: output.Fabric != null
2537
2469
  ? deserializeAws_restJson1NodeFabricLogPublishingConfiguration(output.Fabric, context)
2538
2470
  : undefined,
2539
2471
  };
@@ -2542,9 +2474,7 @@ const deserializeAws_restJson1NodeSummary = (output, context) => {
2542
2474
  return {
2543
2475
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2544
2476
  AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
2545
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2546
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2547
- : undefined,
2477
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2548
2478
  Id: (0, smithy_client_1.expectString)(output.Id),
2549
2479
  InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
2550
2480
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -2574,17 +2504,11 @@ const deserializeAws_restJson1OutputTagMap = (output, context) => {
2574
2504
  };
2575
2505
  const deserializeAws_restJson1Proposal = (output, context) => {
2576
2506
  return {
2577
- Actions: output.Actions !== undefined && output.Actions !== null
2578
- ? deserializeAws_restJson1ProposalActions(output.Actions, context)
2579
- : undefined,
2507
+ Actions: output.Actions != null ? deserializeAws_restJson1ProposalActions(output.Actions, context) : undefined,
2580
2508
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2581
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2582
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2583
- : undefined,
2509
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2584
2510
  Description: (0, smithy_client_1.expectString)(output.Description),
2585
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
2586
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate))
2587
- : undefined,
2511
+ ExpirationDate: output.ExpirationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate)) : undefined,
2588
2512
  NetworkId: (0, smithy_client_1.expectString)(output.NetworkId),
2589
2513
  NoVoteCount: (0, smithy_client_1.expectInt32)(output.NoVoteCount),
2590
2514
  OutstandingVoteCount: (0, smithy_client_1.expectInt32)(output.OutstandingVoteCount),
@@ -2592,32 +2516,22 @@ const deserializeAws_restJson1Proposal = (output, context) => {
2592
2516
  ProposedByMemberId: (0, smithy_client_1.expectString)(output.ProposedByMemberId),
2593
2517
  ProposedByMemberName: (0, smithy_client_1.expectString)(output.ProposedByMemberName),
2594
2518
  Status: (0, smithy_client_1.expectString)(output.Status),
2595
- Tags: output.Tags !== undefined && output.Tags !== null
2596
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2597
- : undefined,
2519
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2598
2520
  YesVoteCount: (0, smithy_client_1.expectInt32)(output.YesVoteCount),
2599
2521
  };
2600
2522
  };
2601
2523
  const deserializeAws_restJson1ProposalActions = (output, context) => {
2602
2524
  return {
2603
- Invitations: output.Invitations !== undefined && output.Invitations !== null
2604
- ? deserializeAws_restJson1InviteActionList(output.Invitations, context)
2605
- : undefined,
2606
- Removals: output.Removals !== undefined && output.Removals !== null
2607
- ? deserializeAws_restJson1RemoveActionList(output.Removals, context)
2608
- : undefined,
2525
+ Invitations: output.Invitations != null ? deserializeAws_restJson1InviteActionList(output.Invitations, context) : undefined,
2526
+ Removals: output.Removals != null ? deserializeAws_restJson1RemoveActionList(output.Removals, context) : undefined,
2609
2527
  };
2610
2528
  };
2611
2529
  const deserializeAws_restJson1ProposalSummary = (output, context) => {
2612
2530
  return {
2613
2531
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2614
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2615
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2616
- : undefined,
2532
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2617
2533
  Description: (0, smithy_client_1.expectString)(output.Description),
2618
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
2619
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate))
2620
- : undefined,
2534
+ ExpirationDate: output.ExpirationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate)) : undefined,
2621
2535
  ProposalId: (0, smithy_client_1.expectString)(output.ProposalId),
2622
2536
  ProposedByMemberId: (0, smithy_client_1.expectString)(output.ProposedByMemberId),
2623
2537
  ProposedByMemberName: (0, smithy_client_1.expectString)(output.ProposedByMemberName),
@@ -2671,7 +2585,7 @@ const deserializeAws_restJson1VoteSummary = (output, context) => {
2671
2585
  };
2672
2586
  const deserializeAws_restJson1VotingPolicy = (output, context) => {
2673
2587
  return {
2674
- ApprovalThresholdPolicy: output.ApprovalThresholdPolicy !== undefined && output.ApprovalThresholdPolicy !== null
2588
+ ApprovalThresholdPolicy: output.ApprovalThresholdPolicy != null
2675
2589
  ? deserializeAws_restJson1ApprovalThresholdPolicy(output.ApprovalThresholdPolicy, context)
2676
2590
  : undefined,
2677
2591
  };
@@ -2707,6 +2621,9 @@ const loadRestJsonErrorCode = (output, data) => {
2707
2621
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2708
2622
  const sanitizeErrorCode = (rawValue) => {
2709
2623
  let cleanValue = rawValue;
2624
+ if (typeof cleanValue === "number") {
2625
+ cleanValue = cleanValue.toString();
2626
+ }
2710
2627
  if (cleanValue.indexOf(":") >= 0) {
2711
2628
  cleanValue = cleanValue.split(":")[0];
2712
2629
  }
@@ -26,8 +26,7 @@ export var serializeAws_restJson1CreateMemberCommand = function (input, context)
26
26
  else {
27
27
  throw new Error("No value provided for input HTTP label: NetworkId.");
28
28
  }
29
- body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.InvitationId !== undefined && input.InvitationId !== null && { InvitationId: input.InvitationId })), (input.MemberConfiguration !== undefined &&
30
- input.MemberConfiguration !== null && {
29
+ body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.InvitationId != null && { InvitationId: input.InvitationId })), (input.MemberConfiguration != null && {
31
30
  MemberConfiguration: serializeAws_restJson1MemberConfiguration(input.MemberConfiguration, context),
32
31
  })));
33
32
  return [2, new __HttpRequest({
@@ -54,16 +53,13 @@ export var serializeAws_restJson1CreateNetworkCommand = function (input, context
54
53
  "content-type": "application/json",
55
54
  };
56
55
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/networks";
57
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Framework !== undefined && input.Framework !== null && { Framework: input.Framework })), (input.FrameworkConfiguration !== undefined &&
58
- input.FrameworkConfiguration !== null && {
56
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Framework != null && { Framework: input.Framework })), (input.FrameworkConfiguration != null && {
59
57
  FrameworkConfiguration: serializeAws_restJson1NetworkFrameworkConfiguration(input.FrameworkConfiguration, context),
60
- })), (input.FrameworkVersion !== undefined &&
61
- input.FrameworkVersion !== null && { FrameworkVersion: input.FrameworkVersion })), (input.MemberConfiguration !== undefined &&
62
- input.MemberConfiguration !== null && {
58
+ })), (input.FrameworkVersion != null && { FrameworkVersion: input.FrameworkVersion })), (input.MemberConfiguration != null && {
63
59
  MemberConfiguration: serializeAws_restJson1MemberConfiguration(input.MemberConfiguration, context),
64
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
65
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })), (input.VotingPolicy !== undefined &&
66
- input.VotingPolicy !== null && { VotingPolicy: serializeAws_restJson1VotingPolicy(input.VotingPolicy, context) })));
60
+ })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })), (input.VotingPolicy != null && {
61
+ VotingPolicy: serializeAws_restJson1VotingPolicy(input.VotingPolicy, context),
62
+ })));
67
63
  return [2, new __HttpRequest({
68
64
  protocol: protocol,
69
65
  hostname: hostname,
@@ -98,11 +94,9 @@ export var serializeAws_restJson1CreateNodeCommand = function (input, context) {
98
94
  else {
99
95
  throw new Error("No value provided for input HTTP label: NetworkId.");
100
96
  }
101
- body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId })), (input.NodeConfiguration !== undefined &&
102
- input.NodeConfiguration !== null && {
97
+ body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.MemberId != null && { MemberId: input.MemberId })), (input.NodeConfiguration != null && {
103
98
  NodeConfiguration: serializeAws_restJson1NodeConfiguration(input.NodeConfiguration, context),
104
- })), (input.Tags !== undefined &&
105
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
99
+ })), (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
106
100
  return [2, new __HttpRequest({
107
101
  protocol: protocol,
108
102
  hostname: hostname,
@@ -137,9 +131,7 @@ export var serializeAws_restJson1CreateProposalCommand = function (input, contex
137
131
  else {
138
132
  throw new Error("No value provided for input HTTP label: NetworkId.");
139
133
  }
140
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Actions !== undefined &&
141
- input.Actions !== null && { Actions: serializeAws_restJson1ProposalActions(input.Actions, context) })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId })), (input.Tags !== undefined &&
142
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
134
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Actions != null && { Actions: serializeAws_restJson1ProposalActions(input.Actions, context) })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Description != null && { Description: input.Description })), (input.MemberId != null && { MemberId: input.MemberId })), (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
143
135
  return [2, new __HttpRequest({
144
136
  protocol: protocol,
145
137
  hostname: hostname,
@@ -665,8 +657,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
665
657
  else {
666
658
  throw new Error("No value provided for input HTTP label: ResourceArn.");
667
659
  }
668
- body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
669
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
660
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
670
661
  return [2, new __HttpRequest({
671
662
  protocol: protocol,
672
663
  hostname: hostname,
@@ -743,8 +734,7 @@ export var serializeAws_restJson1UpdateMemberCommand = function (input, context)
743
734
  else {
744
735
  throw new Error("No value provided for input HTTP label: MemberId.");
745
736
  }
746
- body = JSON.stringify(__assign({}, (input.LogPublishingConfiguration !== undefined &&
747
- input.LogPublishingConfiguration !== null && {
737
+ body = JSON.stringify(__assign({}, (input.LogPublishingConfiguration != null && {
748
738
  LogPublishingConfiguration: serializeAws_restJson1MemberLogPublishingConfiguration(input.LogPublishingConfiguration, context),
749
739
  })));
750
740
  return [2, new __HttpRequest({
@@ -790,10 +780,9 @@ export var serializeAws_restJson1UpdateNodeCommand = function (input, context) {
790
780
  else {
791
781
  throw new Error("No value provided for input HTTP label: NodeId.");
792
782
  }
793
- body = JSON.stringify(__assign(__assign({}, (input.LogPublishingConfiguration !== undefined &&
794
- input.LogPublishingConfiguration !== null && {
783
+ body = JSON.stringify(__assign(__assign({}, (input.LogPublishingConfiguration != null && {
795
784
  LogPublishingConfiguration: serializeAws_restJson1NodeLogPublishingConfiguration(input.LogPublishingConfiguration, context),
796
- })), (input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId })));
785
+ })), (input.MemberId != null && { MemberId: input.MemberId })));
797
786
  return [2, new __HttpRequest({
798
787
  protocol: protocol,
799
788
  hostname: hostname,
@@ -838,7 +827,7 @@ export var serializeAws_restJson1VoteOnProposalCommand = function (input, contex
838
827
  else {
839
828
  throw new Error("No value provided for input HTTP label: ProposalId.");
840
829
  }
841
- body = JSON.stringify(__assign(__assign({}, (input.Vote !== undefined && input.Vote !== null && { Vote: input.Vote })), (input.VoterMemberId !== undefined && input.VoterMemberId !== null && { VoterMemberId: input.VoterMemberId })));
830
+ body = JSON.stringify(__assign(__assign({}, (input.Vote != null && { Vote: input.Vote })), (input.VoterMemberId != null && { VoterMemberId: input.VoterMemberId })));
842
831
  return [2, new __HttpRequest({
843
832
  protocol: protocol,
844
833
  hostname: hostname,
@@ -2675,10 +2664,7 @@ var deserializeAws_restJson1TooManyTagsExceptionResponse = function (parsedOutpu
2675
2664
  });
2676
2665
  }); };
2677
2666
  var serializeAws_restJson1ApprovalThresholdPolicy = function (input, context) {
2678
- return __assign(__assign(__assign({}, (input.ProposalDurationInHours !== undefined &&
2679
- input.ProposalDurationInHours !== null && { ProposalDurationInHours: input.ProposalDurationInHours })), (input.ThresholdComparator !== undefined &&
2680
- input.ThresholdComparator !== null && { ThresholdComparator: input.ThresholdComparator })), (input.ThresholdPercentage !== undefined &&
2681
- input.ThresholdPercentage !== null && { ThresholdPercentage: input.ThresholdPercentage }));
2667
+ return __assign(__assign(__assign({}, (input.ProposalDurationInHours != null && { ProposalDurationInHours: input.ProposalDurationInHours })), (input.ThresholdComparator != null && { ThresholdComparator: input.ThresholdComparator })), (input.ThresholdPercentage != null && { ThresholdPercentage: input.ThresholdPercentage }));
2682
2668
  };
2683
2669
  var serializeAws_restJson1InputTagMap = function (input, context) {
2684
2670
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2691,7 +2677,7 @@ var serializeAws_restJson1InputTagMap = function (input, context) {
2691
2677
  }, {});
2692
2678
  };
2693
2679
  var serializeAws_restJson1InviteAction = function (input, context) {
2694
- return __assign({}, (input.Principal !== undefined && input.Principal !== null && { Principal: input.Principal }));
2680
+ return __assign({}, (input.Principal != null && { Principal: input.Principal }));
2695
2681
  };
2696
2682
  var serializeAws_restJson1InviteActionList = function (input, context) {
2697
2683
  return input
@@ -2704,75 +2690,60 @@ var serializeAws_restJson1InviteActionList = function (input, context) {
2704
2690
  });
2705
2691
  };
2706
2692
  var serializeAws_restJson1LogConfiguration = function (input, context) {
2707
- return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
2693
+ return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
2708
2694
  };
2709
2695
  var serializeAws_restJson1LogConfigurations = function (input, context) {
2710
- return __assign({}, (input.Cloudwatch !== undefined &&
2711
- input.Cloudwatch !== null && { Cloudwatch: serializeAws_restJson1LogConfiguration(input.Cloudwatch, context) }));
2696
+ return __assign({}, (input.Cloudwatch != null && { Cloudwatch: serializeAws_restJson1LogConfiguration(input.Cloudwatch, context) }));
2712
2697
  };
2713
2698
  var serializeAws_restJson1MemberConfiguration = function (input, context) {
2714
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.FrameworkConfiguration !== undefined &&
2715
- input.FrameworkConfiguration !== null && {
2699
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.FrameworkConfiguration != null && {
2716
2700
  FrameworkConfiguration: serializeAws_restJson1MemberFrameworkConfiguration(input.FrameworkConfiguration, context),
2717
- })), (input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn })), (input.LogPublishingConfiguration !== undefined &&
2718
- input.LogPublishingConfiguration !== null && {
2701
+ })), (input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn })), (input.LogPublishingConfiguration != null && {
2719
2702
  LogPublishingConfiguration: serializeAws_restJson1MemberLogPublishingConfiguration(input.LogPublishingConfiguration, context),
2720
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
2721
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }));
2703
+ })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }));
2722
2704
  };
2723
2705
  var serializeAws_restJson1MemberFabricConfiguration = function (input, context) {
2724
- return __assign(__assign({}, (input.AdminPassword !== undefined && input.AdminPassword !== null && { AdminPassword: input.AdminPassword })), (input.AdminUsername !== undefined && input.AdminUsername !== null && { AdminUsername: input.AdminUsername }));
2706
+ return __assign(__assign({}, (input.AdminPassword != null && { AdminPassword: input.AdminPassword })), (input.AdminUsername != null && { AdminUsername: input.AdminUsername }));
2725
2707
  };
2726
2708
  var serializeAws_restJson1MemberFabricLogPublishingConfiguration = function (input, context) {
2727
- return __assign({}, (input.CaLogs !== undefined &&
2728
- input.CaLogs !== null && { CaLogs: serializeAws_restJson1LogConfigurations(input.CaLogs, context) }));
2709
+ return __assign({}, (input.CaLogs != null && { CaLogs: serializeAws_restJson1LogConfigurations(input.CaLogs, context) }));
2729
2710
  };
2730
2711
  var serializeAws_restJson1MemberFrameworkConfiguration = function (input, context) {
2731
- return __assign({}, (input.Fabric !== undefined &&
2732
- input.Fabric !== null && { Fabric: serializeAws_restJson1MemberFabricConfiguration(input.Fabric, context) }));
2712
+ return __assign({}, (input.Fabric != null && { Fabric: serializeAws_restJson1MemberFabricConfiguration(input.Fabric, context) }));
2733
2713
  };
2734
2714
  var serializeAws_restJson1MemberLogPublishingConfiguration = function (input, context) {
2735
- return __assign({}, (input.Fabric !== undefined &&
2736
- input.Fabric !== null && {
2715
+ return __assign({}, (input.Fabric != null && {
2737
2716
  Fabric: serializeAws_restJson1MemberFabricLogPublishingConfiguration(input.Fabric, context),
2738
2717
  }));
2739
2718
  };
2740
2719
  var serializeAws_restJson1NetworkFabricConfiguration = function (input, context) {
2741
- return __assign({}, (input.Edition !== undefined && input.Edition !== null && { Edition: input.Edition }));
2720
+ return __assign({}, (input.Edition != null && { Edition: input.Edition }));
2742
2721
  };
2743
2722
  var serializeAws_restJson1NetworkFrameworkConfiguration = function (input, context) {
2744
- return __assign({}, (input.Fabric !== undefined &&
2745
- input.Fabric !== null && { Fabric: serializeAws_restJson1NetworkFabricConfiguration(input.Fabric, context) }));
2723
+ return __assign({}, (input.Fabric != null && { Fabric: serializeAws_restJson1NetworkFabricConfiguration(input.Fabric, context) }));
2746
2724
  };
2747
2725
  var serializeAws_restJson1NodeConfiguration = function (input, context) {
2748
- return __assign(__assign(__assign(__assign({}, (input.AvailabilityZone !== undefined &&
2749
- input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone })), (input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType })), (input.LogPublishingConfiguration !== undefined &&
2750
- input.LogPublishingConfiguration !== null && {
2726
+ return __assign(__assign(__assign(__assign({}, (input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone })), (input.InstanceType != null && { InstanceType: input.InstanceType })), (input.LogPublishingConfiguration != null && {
2751
2727
  LogPublishingConfiguration: serializeAws_restJson1NodeLogPublishingConfiguration(input.LogPublishingConfiguration, context),
2752
- })), (input.StateDB !== undefined && input.StateDB !== null && { StateDB: input.StateDB }));
2728
+ })), (input.StateDB != null && { StateDB: input.StateDB }));
2753
2729
  };
2754
2730
  var serializeAws_restJson1NodeFabricLogPublishingConfiguration = function (input, context) {
2755
- return __assign(__assign({}, (input.ChaincodeLogs !== undefined &&
2756
- input.ChaincodeLogs !== null && {
2731
+ return __assign(__assign({}, (input.ChaincodeLogs != null && {
2757
2732
  ChaincodeLogs: serializeAws_restJson1LogConfigurations(input.ChaincodeLogs, context),
2758
- })), (input.PeerLogs !== undefined &&
2759
- input.PeerLogs !== null && { PeerLogs: serializeAws_restJson1LogConfigurations(input.PeerLogs, context) }));
2733
+ })), (input.PeerLogs != null && { PeerLogs: serializeAws_restJson1LogConfigurations(input.PeerLogs, context) }));
2760
2734
  };
2761
2735
  var serializeAws_restJson1NodeLogPublishingConfiguration = function (input, context) {
2762
- return __assign({}, (input.Fabric !== undefined &&
2763
- input.Fabric !== null && {
2736
+ return __assign({}, (input.Fabric != null && {
2764
2737
  Fabric: serializeAws_restJson1NodeFabricLogPublishingConfiguration(input.Fabric, context),
2765
2738
  }));
2766
2739
  };
2767
2740
  var serializeAws_restJson1ProposalActions = function (input, context) {
2768
- return __assign(__assign({}, (input.Invitations !== undefined &&
2769
- input.Invitations !== null && {
2741
+ return __assign(__assign({}, (input.Invitations != null && {
2770
2742
  Invitations: serializeAws_restJson1InviteActionList(input.Invitations, context),
2771
- })), (input.Removals !== undefined &&
2772
- input.Removals !== null && { Removals: serializeAws_restJson1RemoveActionList(input.Removals, context) }));
2743
+ })), (input.Removals != null && { Removals: serializeAws_restJson1RemoveActionList(input.Removals, context) }));
2773
2744
  };
2774
2745
  var serializeAws_restJson1RemoveAction = function (input, context) {
2775
- return __assign({}, (input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }));
2746
+ return __assign({}, (input.MemberId != null && { MemberId: input.MemberId }));
2776
2747
  };
2777
2748
  var serializeAws_restJson1RemoveActionList = function (input, context) {
2778
2749
  return input
@@ -2785,8 +2756,7 @@ var serializeAws_restJson1RemoveActionList = function (input, context) {
2785
2756
  });
2786
2757
  };
2787
2758
  var serializeAws_restJson1VotingPolicy = function (input, context) {
2788
- return __assign({}, (input.ApprovalThresholdPolicy !== undefined &&
2789
- input.ApprovalThresholdPolicy !== null && {
2759
+ return __assign({}, (input.ApprovalThresholdPolicy != null && {
2790
2760
  ApprovalThresholdPolicy: serializeAws_restJson1ApprovalThresholdPolicy(input.ApprovalThresholdPolicy, context),
2791
2761
  }));
2792
2762
  };
@@ -2800,14 +2770,10 @@ var deserializeAws_restJson1ApprovalThresholdPolicy = function (output, context)
2800
2770
  var deserializeAws_restJson1Invitation = function (output, context) {
2801
2771
  return {
2802
2772
  Arn: __expectString(output.Arn),
2803
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2804
- ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
2805
- : undefined,
2806
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
2807
- ? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate))
2808
- : undefined,
2773
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
2774
+ ExpirationDate: output.ExpirationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate)) : undefined,
2809
2775
  InvitationId: __expectString(output.InvitationId),
2810
- NetworkSummary: output.NetworkSummary !== undefined && output.NetworkSummary !== null
2776
+ NetworkSummary: output.NetworkSummary != null
2811
2777
  ? deserializeAws_restJson1NetworkSummary(output.NetworkSummary, context)
2812
2778
  : undefined,
2813
2779
  Status: __expectString(output.Status),
@@ -2847,32 +2813,26 @@ var deserializeAws_restJson1LogConfiguration = function (output, context) {
2847
2813
  };
2848
2814
  var deserializeAws_restJson1LogConfigurations = function (output, context) {
2849
2815
  return {
2850
- Cloudwatch: output.Cloudwatch !== undefined && output.Cloudwatch !== null
2851
- ? deserializeAws_restJson1LogConfiguration(output.Cloudwatch, context)
2852
- : undefined,
2816
+ Cloudwatch: output.Cloudwatch != null ? deserializeAws_restJson1LogConfiguration(output.Cloudwatch, context) : undefined,
2853
2817
  };
2854
2818
  };
2855
2819
  var deserializeAws_restJson1Member = function (output, context) {
2856
2820
  return {
2857
2821
  Arn: __expectString(output.Arn),
2858
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2859
- ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
2860
- : undefined,
2822
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
2861
2823
  Description: __expectString(output.Description),
2862
- FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
2824
+ FrameworkAttributes: output.FrameworkAttributes != null
2863
2825
  ? deserializeAws_restJson1MemberFrameworkAttributes(output.FrameworkAttributes, context)
2864
2826
  : undefined,
2865
2827
  Id: __expectString(output.Id),
2866
2828
  KmsKeyArn: __expectString(output.KmsKeyArn),
2867
- LogPublishingConfiguration: output.LogPublishingConfiguration !== undefined && output.LogPublishingConfiguration !== null
2829
+ LogPublishingConfiguration: output.LogPublishingConfiguration != null
2868
2830
  ? deserializeAws_restJson1MemberLogPublishingConfiguration(output.LogPublishingConfiguration, context)
2869
2831
  : undefined,
2870
2832
  Name: __expectString(output.Name),
2871
2833
  NetworkId: __expectString(output.NetworkId),
2872
2834
  Status: __expectString(output.Status),
2873
- Tags: output.Tags !== undefined && output.Tags !== null
2874
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2875
- : undefined,
2835
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2876
2836
  };
2877
2837
  };
2878
2838
  var deserializeAws_restJson1MemberFabricAttributes = function (output, context) {
@@ -2883,21 +2843,17 @@ var deserializeAws_restJson1MemberFabricAttributes = function (output, context)
2883
2843
  };
2884
2844
  var deserializeAws_restJson1MemberFabricLogPublishingConfiguration = function (output, context) {
2885
2845
  return {
2886
- CaLogs: output.CaLogs !== undefined && output.CaLogs !== null
2887
- ? deserializeAws_restJson1LogConfigurations(output.CaLogs, context)
2888
- : undefined,
2846
+ CaLogs: output.CaLogs != null ? deserializeAws_restJson1LogConfigurations(output.CaLogs, context) : undefined,
2889
2847
  };
2890
2848
  };
2891
2849
  var deserializeAws_restJson1MemberFrameworkAttributes = function (output, context) {
2892
2850
  return {
2893
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2894
- ? deserializeAws_restJson1MemberFabricAttributes(output.Fabric, context)
2895
- : undefined,
2851
+ Fabric: output.Fabric != null ? deserializeAws_restJson1MemberFabricAttributes(output.Fabric, context) : undefined,
2896
2852
  };
2897
2853
  };
2898
2854
  var deserializeAws_restJson1MemberLogPublishingConfiguration = function (output, context) {
2899
2855
  return {
2900
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2856
+ Fabric: output.Fabric != null
2901
2857
  ? deserializeAws_restJson1MemberFabricLogPublishingConfiguration(output.Fabric, context)
2902
2858
  : undefined,
2903
2859
  };
@@ -2905,9 +2861,7 @@ var deserializeAws_restJson1MemberLogPublishingConfiguration = function (output,
2905
2861
  var deserializeAws_restJson1MemberSummary = function (output, context) {
2906
2862
  return {
2907
2863
  Arn: __expectString(output.Arn),
2908
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2909
- ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
2910
- : undefined,
2864
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
2911
2865
  Description: __expectString(output.Description),
2912
2866
  Id: __expectString(output.Id),
2913
2867
  IsOwned: __expectBoolean(output.IsOwned),
@@ -2929,24 +2883,18 @@ var deserializeAws_restJson1MemberSummaryList = function (output, context) {
2929
2883
  var deserializeAws_restJson1Network = function (output, context) {
2930
2884
  return {
2931
2885
  Arn: __expectString(output.Arn),
2932
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2933
- ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
2934
- : undefined,
2886
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
2935
2887
  Description: __expectString(output.Description),
2936
2888
  Framework: __expectString(output.Framework),
2937
- FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
2889
+ FrameworkAttributes: output.FrameworkAttributes != null
2938
2890
  ? deserializeAws_restJson1NetworkFrameworkAttributes(output.FrameworkAttributes, context)
2939
2891
  : undefined,
2940
2892
  FrameworkVersion: __expectString(output.FrameworkVersion),
2941
2893
  Id: __expectString(output.Id),
2942
2894
  Name: __expectString(output.Name),
2943
2895
  Status: __expectString(output.Status),
2944
- Tags: output.Tags !== undefined && output.Tags !== null
2945
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2946
- : undefined,
2947
- VotingPolicy: output.VotingPolicy !== undefined && output.VotingPolicy !== null
2948
- ? deserializeAws_restJson1VotingPolicy(output.VotingPolicy, context)
2949
- : undefined,
2896
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2897
+ VotingPolicy: output.VotingPolicy != null ? deserializeAws_restJson1VotingPolicy(output.VotingPolicy, context) : undefined,
2950
2898
  VpcEndpointServiceName: __expectString(output.VpcEndpointServiceName),
2951
2899
  };
2952
2900
  };
@@ -2963,20 +2911,14 @@ var deserializeAws_restJson1NetworkFabricAttributes = function (output, context)
2963
2911
  };
2964
2912
  var deserializeAws_restJson1NetworkFrameworkAttributes = function (output, context) {
2965
2913
  return {
2966
- Ethereum: output.Ethereum !== undefined && output.Ethereum !== null
2967
- ? deserializeAws_restJson1NetworkEthereumAttributes(output.Ethereum, context)
2968
- : undefined,
2969
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2970
- ? deserializeAws_restJson1NetworkFabricAttributes(output.Fabric, context)
2971
- : undefined,
2914
+ Ethereum: output.Ethereum != null ? deserializeAws_restJson1NetworkEthereumAttributes(output.Ethereum, context) : undefined,
2915
+ Fabric: output.Fabric != null ? deserializeAws_restJson1NetworkFabricAttributes(output.Fabric, context) : undefined,
2972
2916
  };
2973
2917
  };
2974
2918
  var deserializeAws_restJson1NetworkSummary = function (output, context) {
2975
2919
  return {
2976
2920
  Arn: __expectString(output.Arn),
2977
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2978
- ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
2979
- : undefined,
2921
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
2980
2922
  Description: __expectString(output.Description),
2981
2923
  Framework: __expectString(output.Framework),
2982
2924
  FrameworkVersion: __expectString(output.FrameworkVersion),
@@ -3000,25 +2942,21 @@ var deserializeAws_restJson1Node = function (output, context) {
3000
2942
  return {
3001
2943
  Arn: __expectString(output.Arn),
3002
2944
  AvailabilityZone: __expectString(output.AvailabilityZone),
3003
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
3004
- ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
3005
- : undefined,
3006
- FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
2945
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
2946
+ FrameworkAttributes: output.FrameworkAttributes != null
3007
2947
  ? deserializeAws_restJson1NodeFrameworkAttributes(output.FrameworkAttributes, context)
3008
2948
  : undefined,
3009
2949
  Id: __expectString(output.Id),
3010
2950
  InstanceType: __expectString(output.InstanceType),
3011
2951
  KmsKeyArn: __expectString(output.KmsKeyArn),
3012
- LogPublishingConfiguration: output.LogPublishingConfiguration !== undefined && output.LogPublishingConfiguration !== null
2952
+ LogPublishingConfiguration: output.LogPublishingConfiguration != null
3013
2953
  ? deserializeAws_restJson1NodeLogPublishingConfiguration(output.LogPublishingConfiguration, context)
3014
2954
  : undefined,
3015
2955
  MemberId: __expectString(output.MemberId),
3016
2956
  NetworkId: __expectString(output.NetworkId),
3017
2957
  StateDB: __expectString(output.StateDB),
3018
2958
  Status: __expectString(output.Status),
3019
- Tags: output.Tags !== undefined && output.Tags !== null
3020
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
3021
- : undefined,
2959
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
3022
2960
  };
3023
2961
  };
3024
2962
  var deserializeAws_restJson1NodeEthereumAttributes = function (output, context) {
@@ -3035,27 +2973,21 @@ var deserializeAws_restJson1NodeFabricAttributes = function (output, context) {
3035
2973
  };
3036
2974
  var deserializeAws_restJson1NodeFabricLogPublishingConfiguration = function (output, context) {
3037
2975
  return {
3038
- ChaincodeLogs: output.ChaincodeLogs !== undefined && output.ChaincodeLogs !== null
2976
+ ChaincodeLogs: output.ChaincodeLogs != null
3039
2977
  ? deserializeAws_restJson1LogConfigurations(output.ChaincodeLogs, context)
3040
2978
  : undefined,
3041
- PeerLogs: output.PeerLogs !== undefined && output.PeerLogs !== null
3042
- ? deserializeAws_restJson1LogConfigurations(output.PeerLogs, context)
3043
- : undefined,
2979
+ PeerLogs: output.PeerLogs != null ? deserializeAws_restJson1LogConfigurations(output.PeerLogs, context) : undefined,
3044
2980
  };
3045
2981
  };
3046
2982
  var deserializeAws_restJson1NodeFrameworkAttributes = function (output, context) {
3047
2983
  return {
3048
- Ethereum: output.Ethereum !== undefined && output.Ethereum !== null
3049
- ? deserializeAws_restJson1NodeEthereumAttributes(output.Ethereum, context)
3050
- : undefined,
3051
- Fabric: output.Fabric !== undefined && output.Fabric !== null
3052
- ? deserializeAws_restJson1NodeFabricAttributes(output.Fabric, context)
3053
- : undefined,
2984
+ Ethereum: output.Ethereum != null ? deserializeAws_restJson1NodeEthereumAttributes(output.Ethereum, context) : undefined,
2985
+ Fabric: output.Fabric != null ? deserializeAws_restJson1NodeFabricAttributes(output.Fabric, context) : undefined,
3054
2986
  };
3055
2987
  };
3056
2988
  var deserializeAws_restJson1NodeLogPublishingConfiguration = function (output, context) {
3057
2989
  return {
3058
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2990
+ Fabric: output.Fabric != null
3059
2991
  ? deserializeAws_restJson1NodeFabricLogPublishingConfiguration(output.Fabric, context)
3060
2992
  : undefined,
3061
2993
  };
@@ -3064,9 +2996,7 @@ var deserializeAws_restJson1NodeSummary = function (output, context) {
3064
2996
  return {
3065
2997
  Arn: __expectString(output.Arn),
3066
2998
  AvailabilityZone: __expectString(output.AvailabilityZone),
3067
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
3068
- ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
3069
- : undefined,
2999
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
3070
3000
  Id: __expectString(output.Id),
3071
3001
  InstanceType: __expectString(output.InstanceType),
3072
3002
  Status: __expectString(output.Status),
@@ -3095,17 +3025,11 @@ var deserializeAws_restJson1OutputTagMap = function (output, context) {
3095
3025
  };
3096
3026
  var deserializeAws_restJson1Proposal = function (output, context) {
3097
3027
  return {
3098
- Actions: output.Actions !== undefined && output.Actions !== null
3099
- ? deserializeAws_restJson1ProposalActions(output.Actions, context)
3100
- : undefined,
3028
+ Actions: output.Actions != null ? deserializeAws_restJson1ProposalActions(output.Actions, context) : undefined,
3101
3029
  Arn: __expectString(output.Arn),
3102
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
3103
- ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
3104
- : undefined,
3030
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
3105
3031
  Description: __expectString(output.Description),
3106
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
3107
- ? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate))
3108
- : undefined,
3032
+ ExpirationDate: output.ExpirationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate)) : undefined,
3109
3033
  NetworkId: __expectString(output.NetworkId),
3110
3034
  NoVoteCount: __expectInt32(output.NoVoteCount),
3111
3035
  OutstandingVoteCount: __expectInt32(output.OutstandingVoteCount),
@@ -3113,32 +3037,22 @@ var deserializeAws_restJson1Proposal = function (output, context) {
3113
3037
  ProposedByMemberId: __expectString(output.ProposedByMemberId),
3114
3038
  ProposedByMemberName: __expectString(output.ProposedByMemberName),
3115
3039
  Status: __expectString(output.Status),
3116
- Tags: output.Tags !== undefined && output.Tags !== null
3117
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
3118
- : undefined,
3040
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
3119
3041
  YesVoteCount: __expectInt32(output.YesVoteCount),
3120
3042
  };
3121
3043
  };
3122
3044
  var deserializeAws_restJson1ProposalActions = function (output, context) {
3123
3045
  return {
3124
- Invitations: output.Invitations !== undefined && output.Invitations !== null
3125
- ? deserializeAws_restJson1InviteActionList(output.Invitations, context)
3126
- : undefined,
3127
- Removals: output.Removals !== undefined && output.Removals !== null
3128
- ? deserializeAws_restJson1RemoveActionList(output.Removals, context)
3129
- : undefined,
3046
+ Invitations: output.Invitations != null ? deserializeAws_restJson1InviteActionList(output.Invitations, context) : undefined,
3047
+ Removals: output.Removals != null ? deserializeAws_restJson1RemoveActionList(output.Removals, context) : undefined,
3130
3048
  };
3131
3049
  };
3132
3050
  var deserializeAws_restJson1ProposalSummary = function (output, context) {
3133
3051
  return {
3134
3052
  Arn: __expectString(output.Arn),
3135
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
3136
- ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
3137
- : undefined,
3053
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
3138
3054
  Description: __expectString(output.Description),
3139
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
3140
- ? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate))
3141
- : undefined,
3055
+ ExpirationDate: output.ExpirationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate)) : undefined,
3142
3056
  ProposalId: __expectString(output.ProposalId),
3143
3057
  ProposedByMemberId: __expectString(output.ProposedByMemberId),
3144
3058
  ProposedByMemberName: __expectString(output.ProposedByMemberName),
@@ -3192,7 +3106,7 @@ var deserializeAws_restJson1VoteSummary = function (output, context) {
3192
3106
  };
3193
3107
  var deserializeAws_restJson1VotingPolicy = function (output, context) {
3194
3108
  return {
3195
- ApprovalThresholdPolicy: output.ApprovalThresholdPolicy !== undefined && output.ApprovalThresholdPolicy !== null
3109
+ ApprovalThresholdPolicy: output.ApprovalThresholdPolicy != null
3196
3110
  ? deserializeAws_restJson1ApprovalThresholdPolicy(output.ApprovalThresholdPolicy, context)
3197
3111
  : undefined,
3198
3112
  };
@@ -3235,6 +3149,9 @@ var loadRestJsonErrorCode = function (output, data) {
3235
3149
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3236
3150
  var sanitizeErrorCode = function (rawValue) {
3237
3151
  var cleanValue = rawValue;
3152
+ if (typeof cleanValue === "number") {
3153
+ cleanValue = cleanValue.toString();
3154
+ }
3238
3155
  if (cleanValue.indexOf(":") >= 0) {
3239
3156
  cleanValue = cleanValue.split(":")[0];
3240
3157
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-managedblockchain",
3
3
  "description": "AWS SDK for JavaScript Managedblockchain Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1",