@aws-sdk/client-appconfig 3.312.0 → 3.315.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.
@@ -13,11 +13,11 @@ const se_CreateApplicationCommand = async (input, context) => {
13
13
  };
14
14
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
15
15
  let body;
16
- body = JSON.stringify({
17
- ...(input.Description != null && { Description: input.Description }),
18
- ...(input.Name != null && { Name: input.Name }),
19
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
20
- });
16
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
17
+ Description: [],
18
+ Name: [],
19
+ Tags: (_) => (0, smithy_client_1._json)(_),
20
+ }));
21
21
  return new protocol_http_1.HttpRequest({
22
22
  protocol,
23
23
  hostname,
@@ -38,15 +38,15 @@ const se_CreateConfigurationProfileCommand = async (input, context) => {
38
38
  "/applications/{ApplicationId}/configurationprofiles";
39
39
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
40
40
  let body;
41
- body = JSON.stringify({
42
- ...(input.Description != null && { Description: input.Description }),
43
- ...(input.LocationUri != null && { LocationUri: input.LocationUri }),
44
- ...(input.Name != null && { Name: input.Name }),
45
- ...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
46
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
47
- ...(input.Type != null && { Type: input.Type }),
48
- ...(input.Validators != null && { Validators: se_ValidatorList(input.Validators, context) }),
49
- });
41
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
42
+ Description: [],
43
+ LocationUri: [],
44
+ Name: [],
45
+ RetrievalRoleArn: [],
46
+ Tags: (_) => (0, smithy_client_1._json)(_),
47
+ Type: [],
48
+ Validators: (_) => (0, smithy_client_1._json)(_),
49
+ }));
50
50
  return new protocol_http_1.HttpRequest({
51
51
  protocol,
52
52
  hostname,
@@ -65,18 +65,16 @@ const se_CreateDeploymentStrategyCommand = async (input, context) => {
65
65
  };
66
66
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies";
67
67
  let body;
68
- body = JSON.stringify({
69
- ...(input.DeploymentDurationInMinutes != null && {
70
- DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
71
- }),
72
- ...(input.Description != null && { Description: input.Description }),
73
- ...(input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
74
- ...(input.GrowthFactor != null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
75
- ...(input.GrowthType != null && { GrowthType: input.GrowthType }),
76
- ...(input.Name != null && { Name: input.Name }),
77
- ...(input.ReplicateTo != null && { ReplicateTo: input.ReplicateTo }),
78
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
79
- });
68
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
69
+ DeploymentDurationInMinutes: [],
70
+ Description: [],
71
+ FinalBakeTimeInMinutes: [],
72
+ GrowthFactor: (_) => (0, smithy_client_1.serializeFloat)(_),
73
+ GrowthType: [],
74
+ Name: [],
75
+ ReplicateTo: [],
76
+ Tags: (_) => (0, smithy_client_1._json)(_),
77
+ }));
80
78
  return new protocol_http_1.HttpRequest({
81
79
  protocol,
82
80
  hostname,
@@ -97,12 +95,12 @@ const se_CreateEnvironmentCommand = async (input, context) => {
97
95
  "/applications/{ApplicationId}/environments";
98
96
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
99
97
  let body;
100
- body = JSON.stringify({
101
- ...(input.Description != null && { Description: input.Description }),
102
- ...(input.Monitors != null && { Monitors: se_MonitorList(input.Monitors, context) }),
103
- ...(input.Name != null && { Name: input.Name }),
104
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
105
- });
98
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
99
+ Description: [],
100
+ Monitors: (_) => (0, smithy_client_1._json)(_),
101
+ Name: [],
102
+ Tags: (_) => (0, smithy_client_1._json)(_),
103
+ }));
106
104
  return new protocol_http_1.HttpRequest({
107
105
  protocol,
108
106
  hostname,
@@ -116,7 +114,7 @@ const se_CreateEnvironmentCommand = async (input, context) => {
116
114
  exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
117
115
  const se_CreateExtensionCommand = async (input, context) => {
118
116
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
119
- const headers = map({}, isSerializableHeaderValue, {
117
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
120
118
  "content-type": "application/json",
121
119
  "latest-version-number": [
122
120
  () => isSerializableHeaderValue(input.LatestVersionNumber),
@@ -125,13 +123,13 @@ const se_CreateExtensionCommand = async (input, context) => {
125
123
  });
126
124
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions";
127
125
  let body;
128
- body = JSON.stringify({
129
- ...(input.Actions != null && { Actions: se_ActionsMap(input.Actions, context) }),
130
- ...(input.Description != null && { Description: input.Description }),
131
- ...(input.Name != null && { Name: input.Name }),
132
- ...(input.Parameters != null && { Parameters: se_ParameterMap(input.Parameters, context) }),
133
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
134
- });
126
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
127
+ Actions: (_) => (0, smithy_client_1._json)(_),
128
+ Description: [],
129
+ Name: [],
130
+ Parameters: (_) => (0, smithy_client_1._json)(_),
131
+ Tags: (_) => (0, smithy_client_1._json)(_),
132
+ }));
135
133
  return new protocol_http_1.HttpRequest({
136
134
  protocol,
137
135
  hostname,
@@ -150,13 +148,13 @@ const se_CreateExtensionAssociationCommand = async (input, context) => {
150
148
  };
151
149
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensionassociations";
152
150
  let body;
153
- body = JSON.stringify({
154
- ...(input.ExtensionIdentifier != null && { ExtensionIdentifier: input.ExtensionIdentifier }),
155
- ...(input.ExtensionVersionNumber != null && { ExtensionVersionNumber: input.ExtensionVersionNumber }),
156
- ...(input.Parameters != null && { Parameters: se_ParameterValueMap(input.Parameters, context) }),
157
- ...(input.ResourceIdentifier != null && { ResourceIdentifier: input.ResourceIdentifier }),
158
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
159
- });
151
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
152
+ ExtensionIdentifier: [],
153
+ ExtensionVersionNumber: [],
154
+ Parameters: (_) => (0, smithy_client_1._json)(_),
155
+ ResourceIdentifier: [],
156
+ Tags: (_) => (0, smithy_client_1._json)(_),
157
+ }));
160
158
  return new protocol_http_1.HttpRequest({
161
159
  protocol,
162
160
  hostname,
@@ -170,7 +168,7 @@ const se_CreateExtensionAssociationCommand = async (input, context) => {
170
168
  exports.se_CreateExtensionAssociationCommand = se_CreateExtensionAssociationCommand;
171
169
  const se_CreateHostedConfigurationVersionCommand = async (input, context) => {
172
170
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
- const headers = map({}, isSerializableHeaderValue, {
171
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
174
172
  "content-type": input.ContentType || "application/octet-stream",
175
173
  description: input.Description,
176
174
  "latest-version-number": [
@@ -276,7 +274,7 @@ const se_DeleteExtensionCommand = async (input, context) => {
276
274
  const headers = {};
277
275
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
278
276
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
279
- const query = map({
277
+ const query = (0, smithy_client_1.map)({
280
278
  version: [() => input.VersionNumber !== void 0, () => input.VersionNumber.toString()],
281
279
  });
282
280
  let body;
@@ -355,7 +353,7 @@ const se_GetConfigurationCommand = async (input, context) => {
355
353
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Application", () => input.Application, "{Application}", false);
356
354
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Environment", () => input.Environment, "{Environment}", false);
357
355
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Configuration", () => input.Configuration, "{Configuration}", false);
358
- const query = map({
356
+ const query = (0, smithy_client_1.map)({
359
357
  client_id: [, (0, smithy_client_1.expectNonNull)(input.ClientId, `ClientId`)],
360
358
  client_configuration_version: [, input.ClientConfigurationVersion],
361
359
  });
@@ -453,7 +451,7 @@ const se_GetExtensionCommand = async (input, context) => {
453
451
  const headers = {};
454
452
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
455
453
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
456
- const query = map({
454
+ const query = (0, smithy_client_1.map)({
457
455
  version_number: [() => input.VersionNumber !== void 0, () => input.VersionNumber.toString()],
458
456
  });
459
457
  let body;
@@ -511,7 +509,7 @@ const se_ListApplicationsCommand = async (input, context) => {
511
509
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
512
510
  const headers = {};
513
511
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
514
- const query = map({
512
+ const query = (0, smithy_client_1.map)({
515
513
  max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
516
514
  next_token: [, input.NextToken],
517
515
  });
@@ -534,7 +532,7 @@ const se_ListConfigurationProfilesCommand = async (input, context) => {
534
532
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
535
533
  "/applications/{ApplicationId}/configurationprofiles";
536
534
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
537
- const query = map({
535
+ const query = (0, smithy_client_1.map)({
538
536
  max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
539
537
  next_token: [, input.NextToken],
540
538
  type: [, input.Type],
@@ -559,7 +557,7 @@ const se_ListDeploymentsCommand = async (input, context) => {
559
557
  "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments";
560
558
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
561
559
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
562
- const query = map({
560
+ const query = (0, smithy_client_1.map)({
563
561
  max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
564
562
  next_token: [, input.NextToken],
565
563
  });
@@ -580,7 +578,7 @@ const se_ListDeploymentStrategiesCommand = async (input, context) => {
580
578
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
581
579
  const headers = {};
582
580
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies";
583
- const query = map({
581
+ const query = (0, smithy_client_1.map)({
584
582
  max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
585
583
  next_token: [, input.NextToken],
586
584
  });
@@ -603,7 +601,7 @@ const se_ListEnvironmentsCommand = async (input, context) => {
603
601
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
604
602
  "/applications/{ApplicationId}/environments";
605
603
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
606
- const query = map({
604
+ const query = (0, smithy_client_1.map)({
607
605
  max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
608
606
  next_token: [, input.NextToken],
609
607
  });
@@ -624,7 +622,7 @@ const se_ListExtensionAssociationsCommand = async (input, context) => {
624
622
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
625
623
  const headers = {};
626
624
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensionassociations";
627
- const query = map({
625
+ const query = (0, smithy_client_1.map)({
628
626
  resource_identifier: [, input.ResourceIdentifier],
629
627
  extension_identifier: [, input.ExtensionIdentifier],
630
628
  extension_version_number: [
@@ -651,7 +649,7 @@ const se_ListExtensionsCommand = async (input, context) => {
651
649
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
652
650
  const headers = {};
653
651
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions";
654
- const query = map({
652
+ const query = (0, smithy_client_1.map)({
655
653
  max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
656
654
  next_token: [, input.NextToken],
657
655
  name: [, input.Name],
@@ -676,7 +674,7 @@ const se_ListHostedConfigurationVersionsCommand = async (input, context) => {
676
674
  "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions";
677
675
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
678
676
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
679
- const query = map({
677
+ const query = (0, smithy_client_1.map)({
680
678
  max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
681
679
  next_token: [, input.NextToken],
682
680
  version_label: [, input.VersionLabel],
@@ -721,14 +719,14 @@ const se_StartDeploymentCommand = async (input, context) => {
721
719
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
722
720
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
723
721
  let body;
724
- body = JSON.stringify({
725
- ...(input.ConfigurationProfileId != null && { ConfigurationProfileId: input.ConfigurationProfileId }),
726
- ...(input.ConfigurationVersion != null && { ConfigurationVersion: input.ConfigurationVersion }),
727
- ...(input.DeploymentStrategyId != null && { DeploymentStrategyId: input.DeploymentStrategyId }),
728
- ...(input.Description != null && { Description: input.Description }),
729
- ...(input.KmsKeyIdentifier != null && { KmsKeyIdentifier: input.KmsKeyIdentifier }),
730
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
731
- });
722
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
723
+ ConfigurationProfileId: [],
724
+ ConfigurationVersion: [],
725
+ DeploymentStrategyId: [],
726
+ Description: [],
727
+ KmsKeyIdentifier: [],
728
+ Tags: (_) => (0, smithy_client_1._json)(_),
729
+ }));
732
730
  return new protocol_http_1.HttpRequest({
733
731
  protocol,
734
732
  hostname,
@@ -768,9 +766,9 @@ const se_TagResourceCommand = async (input, context) => {
768
766
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
769
767
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
770
768
  let body;
771
- body = JSON.stringify({
772
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
773
- });
769
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
770
+ Tags: (_) => (0, smithy_client_1._json)(_),
771
+ }));
774
772
  return new protocol_http_1.HttpRequest({
775
773
  protocol,
776
774
  hostname,
@@ -787,7 +785,7 @@ const se_UntagResourceCommand = async (input, context) => {
787
785
  const headers = {};
788
786
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
789
787
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
790
- const query = map({
788
+ const query = (0, smithy_client_1.map)({
791
789
  tagKeys: [
792
790
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
793
791
  () => (input.TagKeys || []).map((_entry) => _entry),
@@ -814,10 +812,10 @@ const se_UpdateApplicationCommand = async (input, context) => {
814
812
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
815
813
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
816
814
  let body;
817
- body = JSON.stringify({
818
- ...(input.Description != null && { Description: input.Description }),
819
- ...(input.Name != null && { Name: input.Name }),
820
- });
815
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
816
+ Description: [],
817
+ Name: [],
818
+ }));
821
819
  return new protocol_http_1.HttpRequest({
822
820
  protocol,
823
821
  hostname,
@@ -839,12 +837,12 @@ const se_UpdateConfigurationProfileCommand = async (input, context) => {
839
837
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
840
838
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
841
839
  let body;
842
- body = JSON.stringify({
843
- ...(input.Description != null && { Description: input.Description }),
844
- ...(input.Name != null && { Name: input.Name }),
845
- ...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
846
- ...(input.Validators != null && { Validators: se_ValidatorList(input.Validators, context) }),
847
- });
840
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
841
+ Description: [],
842
+ Name: [],
843
+ RetrievalRoleArn: [],
844
+ Validators: (_) => (0, smithy_client_1._json)(_),
845
+ }));
848
846
  return new protocol_http_1.HttpRequest({
849
847
  protocol,
850
848
  hostname,
@@ -865,15 +863,13 @@ const se_UpdateDeploymentStrategyCommand = async (input, context) => {
865
863
  "/deploymentstrategies/{DeploymentStrategyId}";
866
864
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeploymentStrategyId", () => input.DeploymentStrategyId, "{DeploymentStrategyId}", false);
867
865
  let body;
868
- body = JSON.stringify({
869
- ...(input.DeploymentDurationInMinutes != null && {
870
- DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
871
- }),
872
- ...(input.Description != null && { Description: input.Description }),
873
- ...(input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
874
- ...(input.GrowthFactor != null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
875
- ...(input.GrowthType != null && { GrowthType: input.GrowthType }),
876
- });
866
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
867
+ DeploymentDurationInMinutes: [],
868
+ Description: [],
869
+ FinalBakeTimeInMinutes: [],
870
+ GrowthFactor: (_) => (0, smithy_client_1.serializeFloat)(_),
871
+ GrowthType: [],
872
+ }));
877
873
  return new protocol_http_1.HttpRequest({
878
874
  protocol,
879
875
  hostname,
@@ -895,11 +891,11 @@ const se_UpdateEnvironmentCommand = async (input, context) => {
895
891
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
896
892
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
897
893
  let body;
898
- body = JSON.stringify({
899
- ...(input.Description != null && { Description: input.Description }),
900
- ...(input.Monitors != null && { Monitors: se_MonitorList(input.Monitors, context) }),
901
- ...(input.Name != null && { Name: input.Name }),
902
- });
894
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
895
+ Description: [],
896
+ Monitors: (_) => (0, smithy_client_1._json)(_),
897
+ Name: [],
898
+ }));
903
899
  return new protocol_http_1.HttpRequest({
904
900
  protocol,
905
901
  hostname,
@@ -919,12 +915,12 @@ const se_UpdateExtensionCommand = async (input, context) => {
919
915
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
920
916
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
921
917
  let body;
922
- body = JSON.stringify({
923
- ...(input.Actions != null && { Actions: se_ActionsMap(input.Actions, context) }),
924
- ...(input.Description != null && { Description: input.Description }),
925
- ...(input.Parameters != null && { Parameters: se_ParameterMap(input.Parameters, context) }),
926
- ...(input.VersionNumber != null && { VersionNumber: input.VersionNumber }),
927
- });
918
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
919
+ Actions: (_) => (0, smithy_client_1._json)(_),
920
+ Description: [],
921
+ Parameters: (_) => (0, smithy_client_1._json)(_),
922
+ VersionNumber: [],
923
+ }));
928
924
  return new protocol_http_1.HttpRequest({
929
925
  protocol,
930
926
  hostname,
@@ -945,9 +941,9 @@ const se_UpdateExtensionAssociationCommand = async (input, context) => {
945
941
  "/extensionassociations/{ExtensionAssociationId}";
946
942
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ExtensionAssociationId", () => input.ExtensionAssociationId, "{ExtensionAssociationId}", false);
947
943
  let body;
948
- body = JSON.stringify({
949
- ...(input.Parameters != null && { Parameters: se_ParameterValueMap(input.Parameters, context) }),
950
- });
944
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
945
+ Parameters: (_) => (0, smithy_client_1._json)(_),
946
+ }));
951
947
  return new protocol_http_1.HttpRequest({
952
948
  protocol,
953
949
  hostname,
@@ -966,7 +962,7 @@ const se_ValidateConfigurationCommand = async (input, context) => {
966
962
  "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/validators";
967
963
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
968
964
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
969
- const query = map({
965
+ const query = (0, smithy_client_1.map)({
970
966
  configuration_version: [, (0, smithy_client_1.expectNonNull)(input.ConfigurationVersion, `ConfigurationVersion`)],
971
967
  });
972
968
  let body;
@@ -986,19 +982,16 @@ const de_CreateApplicationCommand = async (output, context) => {
986
982
  if (output.statusCode !== 201 && output.statusCode >= 300) {
987
983
  return de_CreateApplicationCommandError(output, context);
988
984
  }
989
- const contents = map({
985
+ const contents = (0, smithy_client_1.map)({
990
986
  $metadata: deserializeMetadata(output),
991
987
  });
992
988
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
993
- if (data.Description != null) {
994
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
995
- }
996
- if (data.Id != null) {
997
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
998
- }
999
- if (data.Name != null) {
1000
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1001
- }
989
+ const doc = (0, smithy_client_1.take)(data, {
990
+ Description: smithy_client_1.expectString,
991
+ Id: smithy_client_1.expectString,
992
+ Name: smithy_client_1.expectString,
993
+ });
994
+ Object.assign(contents, doc);
1002
995
  return contents;
1003
996
  };
1004
997
  exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
@@ -1017,10 +1010,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
1017
1010
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1018
1011
  default:
1019
1012
  const parsedBody = parsedOutput.body;
1020
- (0, smithy_client_1.throwDefaultError)({
1013
+ return throwDefaultError({
1021
1014
  output,
1022
1015
  parsedBody,
1023
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1024
1016
  errorCode,
1025
1017
  });
1026
1018
  }
@@ -1029,34 +1021,21 @@ const de_CreateConfigurationProfileCommand = async (output, context) => {
1029
1021
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1030
1022
  return de_CreateConfigurationProfileCommandError(output, context);
1031
1023
  }
1032
- const contents = map({
1024
+ const contents = (0, smithy_client_1.map)({
1033
1025
  $metadata: deserializeMetadata(output),
1034
1026
  });
1035
1027
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1036
- if (data.ApplicationId != null) {
1037
- contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
1038
- }
1039
- if (data.Description != null) {
1040
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1041
- }
1042
- if (data.Id != null) {
1043
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1044
- }
1045
- if (data.LocationUri != null) {
1046
- contents.LocationUri = (0, smithy_client_1.expectString)(data.LocationUri);
1047
- }
1048
- if (data.Name != null) {
1049
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1050
- }
1051
- if (data.RetrievalRoleArn != null) {
1052
- contents.RetrievalRoleArn = (0, smithy_client_1.expectString)(data.RetrievalRoleArn);
1053
- }
1054
- if (data.Type != null) {
1055
- contents.Type = (0, smithy_client_1.expectString)(data.Type);
1056
- }
1057
- if (data.Validators != null) {
1058
- contents.Validators = de_ValidatorList(data.Validators, context);
1059
- }
1028
+ const doc = (0, smithy_client_1.take)(data, {
1029
+ ApplicationId: smithy_client_1.expectString,
1030
+ Description: smithy_client_1.expectString,
1031
+ Id: smithy_client_1.expectString,
1032
+ LocationUri: smithy_client_1.expectString,
1033
+ Name: smithy_client_1.expectString,
1034
+ RetrievalRoleArn: smithy_client_1.expectString,
1035
+ Type: smithy_client_1.expectString,
1036
+ Validators: smithy_client_1._json,
1037
+ });
1038
+ Object.assign(contents, doc);
1060
1039
  return contents;
1061
1040
  };
1062
1041
  exports.de_CreateConfigurationProfileCommand = de_CreateConfigurationProfileCommand;
@@ -1078,10 +1057,9 @@ const de_CreateConfigurationProfileCommandError = async (output, context) => {
1078
1057
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1079
1058
  default:
1080
1059
  const parsedBody = parsedOutput.body;
1081
- (0, smithy_client_1.throwDefaultError)({
1060
+ return throwDefaultError({
1082
1061
  output,
1083
1062
  parsedBody,
1084
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1085
1063
  errorCode,
1086
1064
  });
1087
1065
  }
@@ -1090,34 +1068,21 @@ const de_CreateDeploymentStrategyCommand = async (output, context) => {
1090
1068
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1091
1069
  return de_CreateDeploymentStrategyCommandError(output, context);
1092
1070
  }
1093
- const contents = map({
1071
+ const contents = (0, smithy_client_1.map)({
1094
1072
  $metadata: deserializeMetadata(output),
1095
1073
  });
1096
1074
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1097
- if (data.DeploymentDurationInMinutes != null) {
1098
- contents.DeploymentDurationInMinutes = (0, smithy_client_1.expectInt32)(data.DeploymentDurationInMinutes);
1099
- }
1100
- if (data.Description != null) {
1101
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1102
- }
1103
- if (data.FinalBakeTimeInMinutes != null) {
1104
- contents.FinalBakeTimeInMinutes = (0, smithy_client_1.expectInt32)(data.FinalBakeTimeInMinutes);
1105
- }
1106
- if (data.GrowthFactor != null) {
1107
- contents.GrowthFactor = (0, smithy_client_1.limitedParseFloat32)(data.GrowthFactor);
1108
- }
1109
- if (data.GrowthType != null) {
1110
- contents.GrowthType = (0, smithy_client_1.expectString)(data.GrowthType);
1111
- }
1112
- if (data.Id != null) {
1113
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1114
- }
1115
- if (data.Name != null) {
1116
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1117
- }
1118
- if (data.ReplicateTo != null) {
1119
- contents.ReplicateTo = (0, smithy_client_1.expectString)(data.ReplicateTo);
1120
- }
1075
+ const doc = (0, smithy_client_1.take)(data, {
1076
+ DeploymentDurationInMinutes: smithy_client_1.expectInt32,
1077
+ Description: smithy_client_1.expectString,
1078
+ FinalBakeTimeInMinutes: smithy_client_1.expectInt32,
1079
+ GrowthFactor: smithy_client_1.limitedParseFloat32,
1080
+ GrowthType: smithy_client_1.expectString,
1081
+ Id: smithy_client_1.expectString,
1082
+ Name: smithy_client_1.expectString,
1083
+ ReplicateTo: smithy_client_1.expectString,
1084
+ });
1085
+ Object.assign(contents, doc);
1121
1086
  return contents;
1122
1087
  };
1123
1088
  exports.de_CreateDeploymentStrategyCommand = de_CreateDeploymentStrategyCommand;
@@ -1136,10 +1101,9 @@ const de_CreateDeploymentStrategyCommandError = async (output, context) => {
1136
1101
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1137
1102
  default:
1138
1103
  const parsedBody = parsedOutput.body;
1139
- (0, smithy_client_1.throwDefaultError)({
1104
+ return throwDefaultError({
1140
1105
  output,
1141
1106
  parsedBody,
1142
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1143
1107
  errorCode,
1144
1108
  });
1145
1109
  }
@@ -1148,28 +1112,19 @@ const de_CreateEnvironmentCommand = async (output, context) => {
1148
1112
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1149
1113
  return de_CreateEnvironmentCommandError(output, context);
1150
1114
  }
1151
- const contents = map({
1115
+ const contents = (0, smithy_client_1.map)({
1152
1116
  $metadata: deserializeMetadata(output),
1153
1117
  });
1154
1118
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1155
- if (data.ApplicationId != null) {
1156
- contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
1157
- }
1158
- if (data.Description != null) {
1159
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1160
- }
1161
- if (data.Id != null) {
1162
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1163
- }
1164
- if (data.Monitors != null) {
1165
- contents.Monitors = de_MonitorList(data.Monitors, context);
1166
- }
1167
- if (data.Name != null) {
1168
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1169
- }
1170
- if (data.State != null) {
1171
- contents.State = (0, smithy_client_1.expectString)(data.State);
1172
- }
1119
+ const doc = (0, smithy_client_1.take)(data, {
1120
+ ApplicationId: smithy_client_1.expectString,
1121
+ Description: smithy_client_1.expectString,
1122
+ Id: smithy_client_1.expectString,
1123
+ Monitors: smithy_client_1._json,
1124
+ Name: smithy_client_1.expectString,
1125
+ State: smithy_client_1.expectString,
1126
+ });
1127
+ Object.assign(contents, doc);
1173
1128
  return contents;
1174
1129
  };
1175
1130
  exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
@@ -1191,10 +1146,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
1191
1146
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1192
1147
  default:
1193
1148
  const parsedBody = parsedOutput.body;
1194
- (0, smithy_client_1.throwDefaultError)({
1149
+ return throwDefaultError({
1195
1150
  output,
1196
1151
  parsedBody,
1197
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1198
1152
  errorCode,
1199
1153
  });
1200
1154
  }
@@ -1203,31 +1157,20 @@ const de_CreateExtensionCommand = async (output, context) => {
1203
1157
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1204
1158
  return de_CreateExtensionCommandError(output, context);
1205
1159
  }
1206
- const contents = map({
1160
+ const contents = (0, smithy_client_1.map)({
1207
1161
  $metadata: deserializeMetadata(output),
1208
1162
  });
1209
1163
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1210
- if (data.Actions != null) {
1211
- contents.Actions = de_ActionsMap(data.Actions, context);
1212
- }
1213
- if (data.Arn != null) {
1214
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1215
- }
1216
- if (data.Description != null) {
1217
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1218
- }
1219
- if (data.Id != null) {
1220
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1221
- }
1222
- if (data.Name != null) {
1223
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1224
- }
1225
- if (data.Parameters != null) {
1226
- contents.Parameters = de_ParameterMap(data.Parameters, context);
1227
- }
1228
- if (data.VersionNumber != null) {
1229
- contents.VersionNumber = (0, smithy_client_1.expectInt32)(data.VersionNumber);
1230
- }
1164
+ const doc = (0, smithy_client_1.take)(data, {
1165
+ Actions: smithy_client_1._json,
1166
+ Arn: smithy_client_1.expectString,
1167
+ Description: smithy_client_1.expectString,
1168
+ Id: smithy_client_1.expectString,
1169
+ Name: smithy_client_1.expectString,
1170
+ Parameters: smithy_client_1._json,
1171
+ VersionNumber: smithy_client_1.expectInt32,
1172
+ });
1173
+ Object.assign(contents, doc);
1231
1174
  return contents;
1232
1175
  };
1233
1176
  exports.de_CreateExtensionCommand = de_CreateExtensionCommand;
@@ -1252,10 +1195,9 @@ const de_CreateExtensionCommandError = async (output, context) => {
1252
1195
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1253
1196
  default:
1254
1197
  const parsedBody = parsedOutput.body;
1255
- (0, smithy_client_1.throwDefaultError)({
1198
+ return throwDefaultError({
1256
1199
  output,
1257
1200
  parsedBody,
1258
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1259
1201
  errorCode,
1260
1202
  });
1261
1203
  }
@@ -1264,28 +1206,19 @@ const de_CreateExtensionAssociationCommand = async (output, context) => {
1264
1206
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1265
1207
  return de_CreateExtensionAssociationCommandError(output, context);
1266
1208
  }
1267
- const contents = map({
1209
+ const contents = (0, smithy_client_1.map)({
1268
1210
  $metadata: deserializeMetadata(output),
1269
1211
  });
1270
1212
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1271
- if (data.Arn != null) {
1272
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1273
- }
1274
- if (data.ExtensionArn != null) {
1275
- contents.ExtensionArn = (0, smithy_client_1.expectString)(data.ExtensionArn);
1276
- }
1277
- if (data.ExtensionVersionNumber != null) {
1278
- contents.ExtensionVersionNumber = (0, smithy_client_1.expectInt32)(data.ExtensionVersionNumber);
1279
- }
1280
- if (data.Id != null) {
1281
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1282
- }
1283
- if (data.Parameters != null) {
1284
- contents.Parameters = de_ParameterValueMap(data.Parameters, context);
1285
- }
1286
- if (data.ResourceArn != null) {
1287
- contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
1288
- }
1213
+ const doc = (0, smithy_client_1.take)(data, {
1214
+ Arn: smithy_client_1.expectString,
1215
+ ExtensionArn: smithy_client_1.expectString,
1216
+ ExtensionVersionNumber: smithy_client_1.expectInt32,
1217
+ Id: smithy_client_1.expectString,
1218
+ Parameters: smithy_client_1._json,
1219
+ ResourceArn: smithy_client_1.expectString,
1220
+ });
1221
+ Object.assign(contents, doc);
1289
1222
  return contents;
1290
1223
  };
1291
1224
  exports.de_CreateExtensionAssociationCommand = de_CreateExtensionAssociationCommand;
@@ -1310,10 +1243,9 @@ const de_CreateExtensionAssociationCommandError = async (output, context) => {
1310
1243
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1311
1244
  default:
1312
1245
  const parsedBody = parsedOutput.body;
1313
- (0, smithy_client_1.throwDefaultError)({
1246
+ return throwDefaultError({
1314
1247
  output,
1315
1248
  parsedBody,
1316
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1317
1249
  errorCode,
1318
1250
  });
1319
1251
  }
@@ -1322,7 +1254,7 @@ const de_CreateHostedConfigurationVersionCommand = async (output, context) => {
1322
1254
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1323
1255
  return de_CreateHostedConfigurationVersionCommandError(output, context);
1324
1256
  }
1325
- const contents = map({
1257
+ const contents = (0, smithy_client_1.map)({
1326
1258
  $metadata: deserializeMetadata(output),
1327
1259
  ApplicationId: [, output.headers["application-id"]],
1328
1260
  ConfigurationProfileId: [, output.headers["configuration-profile-id"]],
@@ -1366,10 +1298,9 @@ const de_CreateHostedConfigurationVersionCommandError = async (output, context)
1366
1298
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1367
1299
  default:
1368
1300
  const parsedBody = parsedOutput.body;
1369
- (0, smithy_client_1.throwDefaultError)({
1301
+ return throwDefaultError({
1370
1302
  output,
1371
1303
  parsedBody,
1372
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1373
1304
  errorCode,
1374
1305
  });
1375
1306
  }
@@ -1378,7 +1309,7 @@ const de_DeleteApplicationCommand = async (output, context) => {
1378
1309
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1379
1310
  return de_DeleteApplicationCommandError(output, context);
1380
1311
  }
1381
- const contents = map({
1312
+ const contents = (0, smithy_client_1.map)({
1382
1313
  $metadata: deserializeMetadata(output),
1383
1314
  });
1384
1315
  await collectBody(output.body, context);
@@ -1403,10 +1334,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
1403
1334
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1404
1335
  default:
1405
1336
  const parsedBody = parsedOutput.body;
1406
- (0, smithy_client_1.throwDefaultError)({
1337
+ return throwDefaultError({
1407
1338
  output,
1408
1339
  parsedBody,
1409
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1410
1340
  errorCode,
1411
1341
  });
1412
1342
  }
@@ -1415,7 +1345,7 @@ const de_DeleteConfigurationProfileCommand = async (output, context) => {
1415
1345
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1416
1346
  return de_DeleteConfigurationProfileCommandError(output, context);
1417
1347
  }
1418
- const contents = map({
1348
+ const contents = (0, smithy_client_1.map)({
1419
1349
  $metadata: deserializeMetadata(output),
1420
1350
  });
1421
1351
  await collectBody(output.body, context);
@@ -1443,10 +1373,9 @@ const de_DeleteConfigurationProfileCommandError = async (output, context) => {
1443
1373
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1444
1374
  default:
1445
1375
  const parsedBody = parsedOutput.body;
1446
- (0, smithy_client_1.throwDefaultError)({
1376
+ return throwDefaultError({
1447
1377
  output,
1448
1378
  parsedBody,
1449
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1450
1379
  errorCode,
1451
1380
  });
1452
1381
  }
@@ -1455,7 +1384,7 @@ const de_DeleteDeploymentStrategyCommand = async (output, context) => {
1455
1384
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1456
1385
  return de_DeleteDeploymentStrategyCommandError(output, context);
1457
1386
  }
1458
- const contents = map({
1387
+ const contents = (0, smithy_client_1.map)({
1459
1388
  $metadata: deserializeMetadata(output),
1460
1389
  });
1461
1390
  await collectBody(output.body, context);
@@ -1480,10 +1409,9 @@ const de_DeleteDeploymentStrategyCommandError = async (output, context) => {
1480
1409
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1481
1410
  default:
1482
1411
  const parsedBody = parsedOutput.body;
1483
- (0, smithy_client_1.throwDefaultError)({
1412
+ return throwDefaultError({
1484
1413
  output,
1485
1414
  parsedBody,
1486
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1487
1415
  errorCode,
1488
1416
  });
1489
1417
  }
@@ -1492,7 +1420,7 @@ const de_DeleteEnvironmentCommand = async (output, context) => {
1492
1420
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1493
1421
  return de_DeleteEnvironmentCommandError(output, context);
1494
1422
  }
1495
- const contents = map({
1423
+ const contents = (0, smithy_client_1.map)({
1496
1424
  $metadata: deserializeMetadata(output),
1497
1425
  });
1498
1426
  await collectBody(output.body, context);
@@ -1520,10 +1448,9 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
1520
1448
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1521
1449
  default:
1522
1450
  const parsedBody = parsedOutput.body;
1523
- (0, smithy_client_1.throwDefaultError)({
1451
+ return throwDefaultError({
1524
1452
  output,
1525
1453
  parsedBody,
1526
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1527
1454
  errorCode,
1528
1455
  });
1529
1456
  }
@@ -1532,7 +1459,7 @@ const de_DeleteExtensionCommand = async (output, context) => {
1532
1459
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1533
1460
  return de_DeleteExtensionCommandError(output, context);
1534
1461
  }
1535
- const contents = map({
1462
+ const contents = (0, smithy_client_1.map)({
1536
1463
  $metadata: deserializeMetadata(output),
1537
1464
  });
1538
1465
  await collectBody(output.body, context);
@@ -1557,10 +1484,9 @@ const de_DeleteExtensionCommandError = async (output, context) => {
1557
1484
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1558
1485
  default:
1559
1486
  const parsedBody = parsedOutput.body;
1560
- (0, smithy_client_1.throwDefaultError)({
1487
+ return throwDefaultError({
1561
1488
  output,
1562
1489
  parsedBody,
1563
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1564
1490
  errorCode,
1565
1491
  });
1566
1492
  }
@@ -1569,7 +1495,7 @@ const de_DeleteExtensionAssociationCommand = async (output, context) => {
1569
1495
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1570
1496
  return de_DeleteExtensionAssociationCommandError(output, context);
1571
1497
  }
1572
- const contents = map({
1498
+ const contents = (0, smithy_client_1.map)({
1573
1499
  $metadata: deserializeMetadata(output),
1574
1500
  });
1575
1501
  await collectBody(output.body, context);
@@ -1594,10 +1520,9 @@ const de_DeleteExtensionAssociationCommandError = async (output, context) => {
1594
1520
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1595
1521
  default:
1596
1522
  const parsedBody = parsedOutput.body;
1597
- (0, smithy_client_1.throwDefaultError)({
1523
+ return throwDefaultError({
1598
1524
  output,
1599
1525
  parsedBody,
1600
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1601
1526
  errorCode,
1602
1527
  });
1603
1528
  }
@@ -1606,7 +1531,7 @@ const de_DeleteHostedConfigurationVersionCommand = async (output, context) => {
1606
1531
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1607
1532
  return de_DeleteHostedConfigurationVersionCommandError(output, context);
1608
1533
  }
1609
- const contents = map({
1534
+ const contents = (0, smithy_client_1.map)({
1610
1535
  $metadata: deserializeMetadata(output),
1611
1536
  });
1612
1537
  await collectBody(output.body, context);
@@ -1631,10 +1556,9 @@ const de_DeleteHostedConfigurationVersionCommandError = async (output, context)
1631
1556
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1632
1557
  default:
1633
1558
  const parsedBody = parsedOutput.body;
1634
- (0, smithy_client_1.throwDefaultError)({
1559
+ return throwDefaultError({
1635
1560
  output,
1636
1561
  parsedBody,
1637
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1638
1562
  errorCode,
1639
1563
  });
1640
1564
  }
@@ -1643,19 +1567,16 @@ const de_GetApplicationCommand = async (output, context) => {
1643
1567
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1644
1568
  return de_GetApplicationCommandError(output, context);
1645
1569
  }
1646
- const contents = map({
1570
+ const contents = (0, smithy_client_1.map)({
1647
1571
  $metadata: deserializeMetadata(output),
1648
1572
  });
1649
1573
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1650
- if (data.Description != null) {
1651
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1652
- }
1653
- if (data.Id != null) {
1654
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1655
- }
1656
- if (data.Name != null) {
1657
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1658
- }
1574
+ const doc = (0, smithy_client_1.take)(data, {
1575
+ Description: smithy_client_1.expectString,
1576
+ Id: smithy_client_1.expectString,
1577
+ Name: smithy_client_1.expectString,
1578
+ });
1579
+ Object.assign(contents, doc);
1659
1580
  return contents;
1660
1581
  };
1661
1582
  exports.de_GetApplicationCommand = de_GetApplicationCommand;
@@ -1677,10 +1598,9 @@ const de_GetApplicationCommandError = async (output, context) => {
1677
1598
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1678
1599
  default:
1679
1600
  const parsedBody = parsedOutput.body;
1680
- (0, smithy_client_1.throwDefaultError)({
1601
+ return throwDefaultError({
1681
1602
  output,
1682
1603
  parsedBody,
1683
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1684
1604
  errorCode,
1685
1605
  });
1686
1606
  }
@@ -1689,7 +1609,7 @@ const de_GetConfigurationCommand = async (output, context) => {
1689
1609
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1690
1610
  return de_GetConfigurationCommandError(output, context);
1691
1611
  }
1692
- const contents = map({
1612
+ const contents = (0, smithy_client_1.map)({
1693
1613
  $metadata: deserializeMetadata(output),
1694
1614
  ConfigurationVersion: [, output.headers["configuration-version"]],
1695
1615
  ContentType: [, output.headers["content-type"]],
@@ -1717,10 +1637,9 @@ const de_GetConfigurationCommandError = async (output, context) => {
1717
1637
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1718
1638
  default:
1719
1639
  const parsedBody = parsedOutput.body;
1720
- (0, smithy_client_1.throwDefaultError)({
1640
+ return throwDefaultError({
1721
1641
  output,
1722
1642
  parsedBody,
1723
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1724
1643
  errorCode,
1725
1644
  });
1726
1645
  }
@@ -1729,34 +1648,21 @@ const de_GetConfigurationProfileCommand = async (output, context) => {
1729
1648
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1730
1649
  return de_GetConfigurationProfileCommandError(output, context);
1731
1650
  }
1732
- const contents = map({
1651
+ const contents = (0, smithy_client_1.map)({
1733
1652
  $metadata: deserializeMetadata(output),
1734
1653
  });
1735
1654
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1736
- if (data.ApplicationId != null) {
1737
- contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
1738
- }
1739
- if (data.Description != null) {
1740
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1741
- }
1742
- if (data.Id != null) {
1743
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1744
- }
1745
- if (data.LocationUri != null) {
1746
- contents.LocationUri = (0, smithy_client_1.expectString)(data.LocationUri);
1747
- }
1748
- if (data.Name != null) {
1749
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1750
- }
1751
- if (data.RetrievalRoleArn != null) {
1752
- contents.RetrievalRoleArn = (0, smithy_client_1.expectString)(data.RetrievalRoleArn);
1753
- }
1754
- if (data.Type != null) {
1755
- contents.Type = (0, smithy_client_1.expectString)(data.Type);
1756
- }
1757
- if (data.Validators != null) {
1758
- contents.Validators = de_ValidatorList(data.Validators, context);
1759
- }
1655
+ const doc = (0, smithy_client_1.take)(data, {
1656
+ ApplicationId: smithy_client_1.expectString,
1657
+ Description: smithy_client_1.expectString,
1658
+ Id: smithy_client_1.expectString,
1659
+ LocationUri: smithy_client_1.expectString,
1660
+ Name: smithy_client_1.expectString,
1661
+ RetrievalRoleArn: smithy_client_1.expectString,
1662
+ Type: smithy_client_1.expectString,
1663
+ Validators: smithy_client_1._json,
1664
+ });
1665
+ Object.assign(contents, doc);
1760
1666
  return contents;
1761
1667
  };
1762
1668
  exports.de_GetConfigurationProfileCommand = de_GetConfigurationProfileCommand;
@@ -1778,10 +1684,9 @@ const de_GetConfigurationProfileCommandError = async (output, context) => {
1778
1684
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1779
1685
  default:
1780
1686
  const parsedBody = parsedOutput.body;
1781
- (0, smithy_client_1.throwDefaultError)({
1687
+ return throwDefaultError({
1782
1688
  output,
1783
1689
  parsedBody,
1784
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1785
1690
  errorCode,
1786
1691
  });
1787
1692
  }
@@ -1790,73 +1695,34 @@ const de_GetDeploymentCommand = async (output, context) => {
1790
1695
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1791
1696
  return de_GetDeploymentCommandError(output, context);
1792
1697
  }
1793
- const contents = map({
1698
+ const contents = (0, smithy_client_1.map)({
1794
1699
  $metadata: deserializeMetadata(output),
1795
1700
  });
1796
1701
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1797
- if (data.ApplicationId != null) {
1798
- contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
1799
- }
1800
- if (data.AppliedExtensions != null) {
1801
- contents.AppliedExtensions = de_AppliedExtensions(data.AppliedExtensions, context);
1802
- }
1803
- if (data.CompletedAt != null) {
1804
- contents.CompletedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CompletedAt));
1805
- }
1806
- if (data.ConfigurationLocationUri != null) {
1807
- contents.ConfigurationLocationUri = (0, smithy_client_1.expectString)(data.ConfigurationLocationUri);
1808
- }
1809
- if (data.ConfigurationName != null) {
1810
- contents.ConfigurationName = (0, smithy_client_1.expectString)(data.ConfigurationName);
1811
- }
1812
- if (data.ConfigurationProfileId != null) {
1813
- contents.ConfigurationProfileId = (0, smithy_client_1.expectString)(data.ConfigurationProfileId);
1814
- }
1815
- if (data.ConfigurationVersion != null) {
1816
- contents.ConfigurationVersion = (0, smithy_client_1.expectString)(data.ConfigurationVersion);
1817
- }
1818
- if (data.DeploymentDurationInMinutes != null) {
1819
- contents.DeploymentDurationInMinutes = (0, smithy_client_1.expectInt32)(data.DeploymentDurationInMinutes);
1820
- }
1821
- if (data.DeploymentNumber != null) {
1822
- contents.DeploymentNumber = (0, smithy_client_1.expectInt32)(data.DeploymentNumber);
1823
- }
1824
- if (data.DeploymentStrategyId != null) {
1825
- contents.DeploymentStrategyId = (0, smithy_client_1.expectString)(data.DeploymentStrategyId);
1826
- }
1827
- if (data.Description != null) {
1828
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1829
- }
1830
- if (data.EnvironmentId != null) {
1831
- contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
1832
- }
1833
- if (data.EventLog != null) {
1834
- contents.EventLog = de_DeploymentEvents(data.EventLog, context);
1835
- }
1836
- if (data.FinalBakeTimeInMinutes != null) {
1837
- contents.FinalBakeTimeInMinutes = (0, smithy_client_1.expectInt32)(data.FinalBakeTimeInMinutes);
1838
- }
1839
- if (data.GrowthFactor != null) {
1840
- contents.GrowthFactor = (0, smithy_client_1.limitedParseFloat32)(data.GrowthFactor);
1841
- }
1842
- if (data.GrowthType != null) {
1843
- contents.GrowthType = (0, smithy_client_1.expectString)(data.GrowthType);
1844
- }
1845
- if (data.KmsKeyArn != null) {
1846
- contents.KmsKeyArn = (0, smithy_client_1.expectString)(data.KmsKeyArn);
1847
- }
1848
- if (data.KmsKeyIdentifier != null) {
1849
- contents.KmsKeyIdentifier = (0, smithy_client_1.expectString)(data.KmsKeyIdentifier);
1850
- }
1851
- if (data.PercentageComplete != null) {
1852
- contents.PercentageComplete = (0, smithy_client_1.limitedParseFloat32)(data.PercentageComplete);
1853
- }
1854
- if (data.StartedAt != null) {
1855
- contents.StartedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.StartedAt));
1856
- }
1857
- if (data.State != null) {
1858
- contents.State = (0, smithy_client_1.expectString)(data.State);
1859
- }
1702
+ const doc = (0, smithy_client_1.take)(data, {
1703
+ ApplicationId: smithy_client_1.expectString,
1704
+ AppliedExtensions: smithy_client_1._json,
1705
+ CompletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1706
+ ConfigurationLocationUri: smithy_client_1.expectString,
1707
+ ConfigurationName: smithy_client_1.expectString,
1708
+ ConfigurationProfileId: smithy_client_1.expectString,
1709
+ ConfigurationVersion: smithy_client_1.expectString,
1710
+ DeploymentDurationInMinutes: smithy_client_1.expectInt32,
1711
+ DeploymentNumber: smithy_client_1.expectInt32,
1712
+ DeploymentStrategyId: smithy_client_1.expectString,
1713
+ Description: smithy_client_1.expectString,
1714
+ EnvironmentId: smithy_client_1.expectString,
1715
+ EventLog: (_) => de_DeploymentEvents(_, context),
1716
+ FinalBakeTimeInMinutes: smithy_client_1.expectInt32,
1717
+ GrowthFactor: smithy_client_1.limitedParseFloat32,
1718
+ GrowthType: smithy_client_1.expectString,
1719
+ KmsKeyArn: smithy_client_1.expectString,
1720
+ KmsKeyIdentifier: smithy_client_1.expectString,
1721
+ PercentageComplete: smithy_client_1.limitedParseFloat32,
1722
+ StartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1723
+ State: smithy_client_1.expectString,
1724
+ });
1725
+ Object.assign(contents, doc);
1860
1726
  return contents;
1861
1727
  };
1862
1728
  exports.de_GetDeploymentCommand = de_GetDeploymentCommand;
@@ -1878,10 +1744,9 @@ const de_GetDeploymentCommandError = async (output, context) => {
1878
1744
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1879
1745
  default:
1880
1746
  const parsedBody = parsedOutput.body;
1881
- (0, smithy_client_1.throwDefaultError)({
1747
+ return throwDefaultError({
1882
1748
  output,
1883
1749
  parsedBody,
1884
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1885
1750
  errorCode,
1886
1751
  });
1887
1752
  }
@@ -1890,34 +1755,21 @@ const de_GetDeploymentStrategyCommand = async (output, context) => {
1890
1755
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1891
1756
  return de_GetDeploymentStrategyCommandError(output, context);
1892
1757
  }
1893
- const contents = map({
1758
+ const contents = (0, smithy_client_1.map)({
1894
1759
  $metadata: deserializeMetadata(output),
1895
1760
  });
1896
1761
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1897
- if (data.DeploymentDurationInMinutes != null) {
1898
- contents.DeploymentDurationInMinutes = (0, smithy_client_1.expectInt32)(data.DeploymentDurationInMinutes);
1899
- }
1900
- if (data.Description != null) {
1901
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1902
- }
1903
- if (data.FinalBakeTimeInMinutes != null) {
1904
- contents.FinalBakeTimeInMinutes = (0, smithy_client_1.expectInt32)(data.FinalBakeTimeInMinutes);
1905
- }
1906
- if (data.GrowthFactor != null) {
1907
- contents.GrowthFactor = (0, smithy_client_1.limitedParseFloat32)(data.GrowthFactor);
1908
- }
1909
- if (data.GrowthType != null) {
1910
- contents.GrowthType = (0, smithy_client_1.expectString)(data.GrowthType);
1911
- }
1912
- if (data.Id != null) {
1913
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1914
- }
1915
- if (data.Name != null) {
1916
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1917
- }
1918
- if (data.ReplicateTo != null) {
1919
- contents.ReplicateTo = (0, smithy_client_1.expectString)(data.ReplicateTo);
1920
- }
1762
+ const doc = (0, smithy_client_1.take)(data, {
1763
+ DeploymentDurationInMinutes: smithy_client_1.expectInt32,
1764
+ Description: smithy_client_1.expectString,
1765
+ FinalBakeTimeInMinutes: smithy_client_1.expectInt32,
1766
+ GrowthFactor: smithy_client_1.limitedParseFloat32,
1767
+ GrowthType: smithy_client_1.expectString,
1768
+ Id: smithy_client_1.expectString,
1769
+ Name: smithy_client_1.expectString,
1770
+ ReplicateTo: smithy_client_1.expectString,
1771
+ });
1772
+ Object.assign(contents, doc);
1921
1773
  return contents;
1922
1774
  };
1923
1775
  exports.de_GetDeploymentStrategyCommand = de_GetDeploymentStrategyCommand;
@@ -1939,10 +1791,9 @@ const de_GetDeploymentStrategyCommandError = async (output, context) => {
1939
1791
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1940
1792
  default:
1941
1793
  const parsedBody = parsedOutput.body;
1942
- (0, smithy_client_1.throwDefaultError)({
1794
+ return throwDefaultError({
1943
1795
  output,
1944
1796
  parsedBody,
1945
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
1946
1797
  errorCode,
1947
1798
  });
1948
1799
  }
@@ -1951,28 +1802,19 @@ const de_GetEnvironmentCommand = async (output, context) => {
1951
1802
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1952
1803
  return de_GetEnvironmentCommandError(output, context);
1953
1804
  }
1954
- const contents = map({
1805
+ const contents = (0, smithy_client_1.map)({
1955
1806
  $metadata: deserializeMetadata(output),
1956
1807
  });
1957
1808
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1958
- if (data.ApplicationId != null) {
1959
- contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
1960
- }
1961
- if (data.Description != null) {
1962
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
1963
- }
1964
- if (data.Id != null) {
1965
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
1966
- }
1967
- if (data.Monitors != null) {
1968
- contents.Monitors = de_MonitorList(data.Monitors, context);
1969
- }
1970
- if (data.Name != null) {
1971
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
1972
- }
1973
- if (data.State != null) {
1974
- contents.State = (0, smithy_client_1.expectString)(data.State);
1975
- }
1809
+ const doc = (0, smithy_client_1.take)(data, {
1810
+ ApplicationId: smithy_client_1.expectString,
1811
+ Description: smithy_client_1.expectString,
1812
+ Id: smithy_client_1.expectString,
1813
+ Monitors: smithy_client_1._json,
1814
+ Name: smithy_client_1.expectString,
1815
+ State: smithy_client_1.expectString,
1816
+ });
1817
+ Object.assign(contents, doc);
1976
1818
  return contents;
1977
1819
  };
1978
1820
  exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
@@ -1994,10 +1836,9 @@ const de_GetEnvironmentCommandError = async (output, context) => {
1994
1836
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1995
1837
  default:
1996
1838
  const parsedBody = parsedOutput.body;
1997
- (0, smithy_client_1.throwDefaultError)({
1839
+ return throwDefaultError({
1998
1840
  output,
1999
1841
  parsedBody,
2000
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2001
1842
  errorCode,
2002
1843
  });
2003
1844
  }
@@ -2006,31 +1847,20 @@ const de_GetExtensionCommand = async (output, context) => {
2006
1847
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2007
1848
  return de_GetExtensionCommandError(output, context);
2008
1849
  }
2009
- const contents = map({
1850
+ const contents = (0, smithy_client_1.map)({
2010
1851
  $metadata: deserializeMetadata(output),
2011
1852
  });
2012
1853
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2013
- if (data.Actions != null) {
2014
- contents.Actions = de_ActionsMap(data.Actions, context);
2015
- }
2016
- if (data.Arn != null) {
2017
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2018
- }
2019
- if (data.Description != null) {
2020
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
2021
- }
2022
- if (data.Id != null) {
2023
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
2024
- }
2025
- if (data.Name != null) {
2026
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
2027
- }
2028
- if (data.Parameters != null) {
2029
- contents.Parameters = de_ParameterMap(data.Parameters, context);
2030
- }
2031
- if (data.VersionNumber != null) {
2032
- contents.VersionNumber = (0, smithy_client_1.expectInt32)(data.VersionNumber);
2033
- }
1854
+ const doc = (0, smithy_client_1.take)(data, {
1855
+ Actions: smithy_client_1._json,
1856
+ Arn: smithy_client_1.expectString,
1857
+ Description: smithy_client_1.expectString,
1858
+ Id: smithy_client_1.expectString,
1859
+ Name: smithy_client_1.expectString,
1860
+ Parameters: smithy_client_1._json,
1861
+ VersionNumber: smithy_client_1.expectInt32,
1862
+ });
1863
+ Object.assign(contents, doc);
2034
1864
  return contents;
2035
1865
  };
2036
1866
  exports.de_GetExtensionCommand = de_GetExtensionCommand;
@@ -2052,10 +1882,9 @@ const de_GetExtensionCommandError = async (output, context) => {
2052
1882
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2053
1883
  default:
2054
1884
  const parsedBody = parsedOutput.body;
2055
- (0, smithy_client_1.throwDefaultError)({
1885
+ return throwDefaultError({
2056
1886
  output,
2057
1887
  parsedBody,
2058
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2059
1888
  errorCode,
2060
1889
  });
2061
1890
  }
@@ -2064,28 +1893,19 @@ const de_GetExtensionAssociationCommand = async (output, context) => {
2064
1893
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2065
1894
  return de_GetExtensionAssociationCommandError(output, context);
2066
1895
  }
2067
- const contents = map({
1896
+ const contents = (0, smithy_client_1.map)({
2068
1897
  $metadata: deserializeMetadata(output),
2069
1898
  });
2070
1899
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2071
- if (data.Arn != null) {
2072
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2073
- }
2074
- if (data.ExtensionArn != null) {
2075
- contents.ExtensionArn = (0, smithy_client_1.expectString)(data.ExtensionArn);
2076
- }
2077
- if (data.ExtensionVersionNumber != null) {
2078
- contents.ExtensionVersionNumber = (0, smithy_client_1.expectInt32)(data.ExtensionVersionNumber);
2079
- }
2080
- if (data.Id != null) {
2081
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
2082
- }
2083
- if (data.Parameters != null) {
2084
- contents.Parameters = de_ParameterValueMap(data.Parameters, context);
2085
- }
2086
- if (data.ResourceArn != null) {
2087
- contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
2088
- }
1900
+ const doc = (0, smithy_client_1.take)(data, {
1901
+ Arn: smithy_client_1.expectString,
1902
+ ExtensionArn: smithy_client_1.expectString,
1903
+ ExtensionVersionNumber: smithy_client_1.expectInt32,
1904
+ Id: smithy_client_1.expectString,
1905
+ Parameters: smithy_client_1._json,
1906
+ ResourceArn: smithy_client_1.expectString,
1907
+ });
1908
+ Object.assign(contents, doc);
2089
1909
  return contents;
2090
1910
  };
2091
1911
  exports.de_GetExtensionAssociationCommand = de_GetExtensionAssociationCommand;
@@ -2107,10 +1927,9 @@ const de_GetExtensionAssociationCommandError = async (output, context) => {
2107
1927
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2108
1928
  default:
2109
1929
  const parsedBody = parsedOutput.body;
2110
- (0, smithy_client_1.throwDefaultError)({
1930
+ return throwDefaultError({
2111
1931
  output,
2112
1932
  parsedBody,
2113
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2114
1933
  errorCode,
2115
1934
  });
2116
1935
  }
@@ -2119,7 +1938,7 @@ const de_GetHostedConfigurationVersionCommand = async (output, context) => {
2119
1938
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2120
1939
  return de_GetHostedConfigurationVersionCommandError(output, context);
2121
1940
  }
2122
- const contents = map({
1941
+ const contents = (0, smithy_client_1.map)({
2123
1942
  $metadata: deserializeMetadata(output),
2124
1943
  ApplicationId: [, output.headers["application-id"]],
2125
1944
  ConfigurationProfileId: [, output.headers["configuration-profile-id"]],
@@ -2154,10 +1973,9 @@ const de_GetHostedConfigurationVersionCommandError = async (output, context) =>
2154
1973
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2155
1974
  default:
2156
1975
  const parsedBody = parsedOutput.body;
2157
- (0, smithy_client_1.throwDefaultError)({
1976
+ return throwDefaultError({
2158
1977
  output,
2159
1978
  parsedBody,
2160
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2161
1979
  errorCode,
2162
1980
  });
2163
1981
  }
@@ -2166,16 +1984,15 @@ const de_ListApplicationsCommand = async (output, context) => {
2166
1984
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2167
1985
  return de_ListApplicationsCommandError(output, context);
2168
1986
  }
2169
- const contents = map({
1987
+ const contents = (0, smithy_client_1.map)({
2170
1988
  $metadata: deserializeMetadata(output),
2171
1989
  });
2172
1990
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2173
- if (data.Items != null) {
2174
- contents.Items = de_ApplicationList(data.Items, context);
2175
- }
2176
- if (data.NextToken != null) {
2177
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2178
- }
1991
+ const doc = (0, smithy_client_1.take)(data, {
1992
+ Items: smithy_client_1._json,
1993
+ NextToken: smithy_client_1.expectString,
1994
+ });
1995
+ Object.assign(contents, doc);
2179
1996
  return contents;
2180
1997
  };
2181
1998
  exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
@@ -2194,10 +2011,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
2194
2011
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2195
2012
  default:
2196
2013
  const parsedBody = parsedOutput.body;
2197
- (0, smithy_client_1.throwDefaultError)({
2014
+ return throwDefaultError({
2198
2015
  output,
2199
2016
  parsedBody,
2200
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2201
2017
  errorCode,
2202
2018
  });
2203
2019
  }
@@ -2206,16 +2022,15 @@ const de_ListConfigurationProfilesCommand = async (output, context) => {
2206
2022
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2207
2023
  return de_ListConfigurationProfilesCommandError(output, context);
2208
2024
  }
2209
- const contents = map({
2025
+ const contents = (0, smithy_client_1.map)({
2210
2026
  $metadata: deserializeMetadata(output),
2211
2027
  });
2212
2028
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2213
- if (data.Items != null) {
2214
- contents.Items = de_ConfigurationProfileSummaryList(data.Items, context);
2215
- }
2216
- if (data.NextToken != null) {
2217
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2218
- }
2029
+ const doc = (0, smithy_client_1.take)(data, {
2030
+ Items: smithy_client_1._json,
2031
+ NextToken: smithy_client_1.expectString,
2032
+ });
2033
+ Object.assign(contents, doc);
2219
2034
  return contents;
2220
2035
  };
2221
2036
  exports.de_ListConfigurationProfilesCommand = de_ListConfigurationProfilesCommand;
@@ -2237,10 +2052,9 @@ const de_ListConfigurationProfilesCommandError = async (output, context) => {
2237
2052
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2238
2053
  default:
2239
2054
  const parsedBody = parsedOutput.body;
2240
- (0, smithy_client_1.throwDefaultError)({
2055
+ return throwDefaultError({
2241
2056
  output,
2242
2057
  parsedBody,
2243
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2244
2058
  errorCode,
2245
2059
  });
2246
2060
  }
@@ -2249,16 +2063,15 @@ const de_ListDeploymentsCommand = async (output, context) => {
2249
2063
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2250
2064
  return de_ListDeploymentsCommandError(output, context);
2251
2065
  }
2252
- const contents = map({
2066
+ const contents = (0, smithy_client_1.map)({
2253
2067
  $metadata: deserializeMetadata(output),
2254
2068
  });
2255
2069
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2256
- if (data.Items != null) {
2257
- contents.Items = de_DeploymentList(data.Items, context);
2258
- }
2259
- if (data.NextToken != null) {
2260
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2261
- }
2070
+ const doc = (0, smithy_client_1.take)(data, {
2071
+ Items: (_) => de_DeploymentList(_, context),
2072
+ NextToken: smithy_client_1.expectString,
2073
+ });
2074
+ Object.assign(contents, doc);
2262
2075
  return contents;
2263
2076
  };
2264
2077
  exports.de_ListDeploymentsCommand = de_ListDeploymentsCommand;
@@ -2280,10 +2093,9 @@ const de_ListDeploymentsCommandError = async (output, context) => {
2280
2093
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2281
2094
  default:
2282
2095
  const parsedBody = parsedOutput.body;
2283
- (0, smithy_client_1.throwDefaultError)({
2096
+ return throwDefaultError({
2284
2097
  output,
2285
2098
  parsedBody,
2286
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2287
2099
  errorCode,
2288
2100
  });
2289
2101
  }
@@ -2292,16 +2104,15 @@ const de_ListDeploymentStrategiesCommand = async (output, context) => {
2292
2104
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2293
2105
  return de_ListDeploymentStrategiesCommandError(output, context);
2294
2106
  }
2295
- const contents = map({
2107
+ const contents = (0, smithy_client_1.map)({
2296
2108
  $metadata: deserializeMetadata(output),
2297
2109
  });
2298
2110
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2299
- if (data.Items != null) {
2300
- contents.Items = de_DeploymentStrategyList(data.Items, context);
2301
- }
2302
- if (data.NextToken != null) {
2303
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2304
- }
2111
+ const doc = (0, smithy_client_1.take)(data, {
2112
+ Items: (_) => de_DeploymentStrategyList(_, context),
2113
+ NextToken: smithy_client_1.expectString,
2114
+ });
2115
+ Object.assign(contents, doc);
2305
2116
  return contents;
2306
2117
  };
2307
2118
  exports.de_ListDeploymentStrategiesCommand = de_ListDeploymentStrategiesCommand;
@@ -2320,10 +2131,9 @@ const de_ListDeploymentStrategiesCommandError = async (output, context) => {
2320
2131
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2321
2132
  default:
2322
2133
  const parsedBody = parsedOutput.body;
2323
- (0, smithy_client_1.throwDefaultError)({
2134
+ return throwDefaultError({
2324
2135
  output,
2325
2136
  parsedBody,
2326
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2327
2137
  errorCode,
2328
2138
  });
2329
2139
  }
@@ -2332,16 +2142,15 @@ const de_ListEnvironmentsCommand = async (output, context) => {
2332
2142
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2333
2143
  return de_ListEnvironmentsCommandError(output, context);
2334
2144
  }
2335
- const contents = map({
2145
+ const contents = (0, smithy_client_1.map)({
2336
2146
  $metadata: deserializeMetadata(output),
2337
2147
  });
2338
2148
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2339
- if (data.Items != null) {
2340
- contents.Items = de_EnvironmentList(data.Items, context);
2341
- }
2342
- if (data.NextToken != null) {
2343
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2344
- }
2149
+ const doc = (0, smithy_client_1.take)(data, {
2150
+ Items: smithy_client_1._json,
2151
+ NextToken: smithy_client_1.expectString,
2152
+ });
2153
+ Object.assign(contents, doc);
2345
2154
  return contents;
2346
2155
  };
2347
2156
  exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
@@ -2363,10 +2172,9 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
2363
2172
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2364
2173
  default:
2365
2174
  const parsedBody = parsedOutput.body;
2366
- (0, smithy_client_1.throwDefaultError)({
2175
+ return throwDefaultError({
2367
2176
  output,
2368
2177
  parsedBody,
2369
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2370
2178
  errorCode,
2371
2179
  });
2372
2180
  }
@@ -2375,16 +2183,15 @@ const de_ListExtensionAssociationsCommand = async (output, context) => {
2375
2183
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2376
2184
  return de_ListExtensionAssociationsCommandError(output, context);
2377
2185
  }
2378
- const contents = map({
2186
+ const contents = (0, smithy_client_1.map)({
2379
2187
  $metadata: deserializeMetadata(output),
2380
2188
  });
2381
2189
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2382
- if (data.Items != null) {
2383
- contents.Items = de_ExtensionAssociationSummaries(data.Items, context);
2384
- }
2385
- if (data.NextToken != null) {
2386
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2387
- }
2190
+ const doc = (0, smithy_client_1.take)(data, {
2191
+ Items: smithy_client_1._json,
2192
+ NextToken: smithy_client_1.expectString,
2193
+ });
2194
+ Object.assign(contents, doc);
2388
2195
  return contents;
2389
2196
  };
2390
2197
  exports.de_ListExtensionAssociationsCommand = de_ListExtensionAssociationsCommand;
@@ -2403,10 +2210,9 @@ const de_ListExtensionAssociationsCommandError = async (output, context) => {
2403
2210
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2404
2211
  default:
2405
2212
  const parsedBody = parsedOutput.body;
2406
- (0, smithy_client_1.throwDefaultError)({
2213
+ return throwDefaultError({
2407
2214
  output,
2408
2215
  parsedBody,
2409
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2410
2216
  errorCode,
2411
2217
  });
2412
2218
  }
@@ -2415,16 +2221,15 @@ const de_ListExtensionsCommand = async (output, context) => {
2415
2221
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2416
2222
  return de_ListExtensionsCommandError(output, context);
2417
2223
  }
2418
- const contents = map({
2224
+ const contents = (0, smithy_client_1.map)({
2419
2225
  $metadata: deserializeMetadata(output),
2420
2226
  });
2421
2227
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2422
- if (data.Items != null) {
2423
- contents.Items = de_ExtensionSummaries(data.Items, context);
2424
- }
2425
- if (data.NextToken != null) {
2426
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2427
- }
2228
+ const doc = (0, smithy_client_1.take)(data, {
2229
+ Items: smithy_client_1._json,
2230
+ NextToken: smithy_client_1.expectString,
2231
+ });
2232
+ Object.assign(contents, doc);
2428
2233
  return contents;
2429
2234
  };
2430
2235
  exports.de_ListExtensionsCommand = de_ListExtensionsCommand;
@@ -2443,10 +2248,9 @@ const de_ListExtensionsCommandError = async (output, context) => {
2443
2248
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2444
2249
  default:
2445
2250
  const parsedBody = parsedOutput.body;
2446
- (0, smithy_client_1.throwDefaultError)({
2251
+ return throwDefaultError({
2447
2252
  output,
2448
2253
  parsedBody,
2449
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2450
2254
  errorCode,
2451
2255
  });
2452
2256
  }
@@ -2455,16 +2259,15 @@ const de_ListHostedConfigurationVersionsCommand = async (output, context) => {
2455
2259
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2456
2260
  return de_ListHostedConfigurationVersionsCommandError(output, context);
2457
2261
  }
2458
- const contents = map({
2262
+ const contents = (0, smithy_client_1.map)({
2459
2263
  $metadata: deserializeMetadata(output),
2460
2264
  });
2461
2265
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2462
- if (data.Items != null) {
2463
- contents.Items = de_HostedConfigurationVersionSummaryList(data.Items, context);
2464
- }
2465
- if (data.NextToken != null) {
2466
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2467
- }
2266
+ const doc = (0, smithy_client_1.take)(data, {
2267
+ Items: smithy_client_1._json,
2268
+ NextToken: smithy_client_1.expectString,
2269
+ });
2270
+ Object.assign(contents, doc);
2468
2271
  return contents;
2469
2272
  };
2470
2273
  exports.de_ListHostedConfigurationVersionsCommand = de_ListHostedConfigurationVersionsCommand;
@@ -2486,10 +2289,9 @@ const de_ListHostedConfigurationVersionsCommandError = async (output, context) =
2486
2289
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2487
2290
  default:
2488
2291
  const parsedBody = parsedOutput.body;
2489
- (0, smithy_client_1.throwDefaultError)({
2292
+ return throwDefaultError({
2490
2293
  output,
2491
2294
  parsedBody,
2492
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2493
2295
  errorCode,
2494
2296
  });
2495
2297
  }
@@ -2498,13 +2300,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2498
2300
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2499
2301
  return de_ListTagsForResourceCommandError(output, context);
2500
2302
  }
2501
- const contents = map({
2303
+ const contents = (0, smithy_client_1.map)({
2502
2304
  $metadata: deserializeMetadata(output),
2503
2305
  });
2504
2306
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2505
- if (data.Tags != null) {
2506
- contents.Tags = de_TagMap(data.Tags, context);
2507
- }
2307
+ const doc = (0, smithy_client_1.take)(data, {
2308
+ Tags: smithy_client_1._json,
2309
+ });
2310
+ Object.assign(contents, doc);
2508
2311
  return contents;
2509
2312
  };
2510
2313
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -2526,10 +2329,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2526
2329
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2527
2330
  default:
2528
2331
  const parsedBody = parsedOutput.body;
2529
- (0, smithy_client_1.throwDefaultError)({
2332
+ return throwDefaultError({
2530
2333
  output,
2531
2334
  parsedBody,
2532
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2533
2335
  errorCode,
2534
2336
  });
2535
2337
  }
@@ -2538,73 +2340,34 @@ const de_StartDeploymentCommand = async (output, context) => {
2538
2340
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2539
2341
  return de_StartDeploymentCommandError(output, context);
2540
2342
  }
2541
- const contents = map({
2343
+ const contents = (0, smithy_client_1.map)({
2542
2344
  $metadata: deserializeMetadata(output),
2543
2345
  });
2544
2346
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2545
- if (data.ApplicationId != null) {
2546
- contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
2547
- }
2548
- if (data.AppliedExtensions != null) {
2549
- contents.AppliedExtensions = de_AppliedExtensions(data.AppliedExtensions, context);
2550
- }
2551
- if (data.CompletedAt != null) {
2552
- contents.CompletedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CompletedAt));
2553
- }
2554
- if (data.ConfigurationLocationUri != null) {
2555
- contents.ConfigurationLocationUri = (0, smithy_client_1.expectString)(data.ConfigurationLocationUri);
2556
- }
2557
- if (data.ConfigurationName != null) {
2558
- contents.ConfigurationName = (0, smithy_client_1.expectString)(data.ConfigurationName);
2559
- }
2560
- if (data.ConfigurationProfileId != null) {
2561
- contents.ConfigurationProfileId = (0, smithy_client_1.expectString)(data.ConfigurationProfileId);
2562
- }
2563
- if (data.ConfigurationVersion != null) {
2564
- contents.ConfigurationVersion = (0, smithy_client_1.expectString)(data.ConfigurationVersion);
2565
- }
2566
- if (data.DeploymentDurationInMinutes != null) {
2567
- contents.DeploymentDurationInMinutes = (0, smithy_client_1.expectInt32)(data.DeploymentDurationInMinutes);
2568
- }
2569
- if (data.DeploymentNumber != null) {
2570
- contents.DeploymentNumber = (0, smithy_client_1.expectInt32)(data.DeploymentNumber);
2571
- }
2572
- if (data.DeploymentStrategyId != null) {
2573
- contents.DeploymentStrategyId = (0, smithy_client_1.expectString)(data.DeploymentStrategyId);
2574
- }
2575
- if (data.Description != null) {
2576
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
2577
- }
2578
- if (data.EnvironmentId != null) {
2579
- contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
2580
- }
2581
- if (data.EventLog != null) {
2582
- contents.EventLog = de_DeploymentEvents(data.EventLog, context);
2583
- }
2584
- if (data.FinalBakeTimeInMinutes != null) {
2585
- contents.FinalBakeTimeInMinutes = (0, smithy_client_1.expectInt32)(data.FinalBakeTimeInMinutes);
2586
- }
2587
- if (data.GrowthFactor != null) {
2588
- contents.GrowthFactor = (0, smithy_client_1.limitedParseFloat32)(data.GrowthFactor);
2589
- }
2590
- if (data.GrowthType != null) {
2591
- contents.GrowthType = (0, smithy_client_1.expectString)(data.GrowthType);
2592
- }
2593
- if (data.KmsKeyArn != null) {
2594
- contents.KmsKeyArn = (0, smithy_client_1.expectString)(data.KmsKeyArn);
2595
- }
2596
- if (data.KmsKeyIdentifier != null) {
2597
- contents.KmsKeyIdentifier = (0, smithy_client_1.expectString)(data.KmsKeyIdentifier);
2598
- }
2599
- if (data.PercentageComplete != null) {
2600
- contents.PercentageComplete = (0, smithy_client_1.limitedParseFloat32)(data.PercentageComplete);
2601
- }
2602
- if (data.StartedAt != null) {
2603
- contents.StartedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.StartedAt));
2604
- }
2605
- if (data.State != null) {
2606
- contents.State = (0, smithy_client_1.expectString)(data.State);
2607
- }
2347
+ const doc = (0, smithy_client_1.take)(data, {
2348
+ ApplicationId: smithy_client_1.expectString,
2349
+ AppliedExtensions: smithy_client_1._json,
2350
+ CompletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2351
+ ConfigurationLocationUri: smithy_client_1.expectString,
2352
+ ConfigurationName: smithy_client_1.expectString,
2353
+ ConfigurationProfileId: smithy_client_1.expectString,
2354
+ ConfigurationVersion: smithy_client_1.expectString,
2355
+ DeploymentDurationInMinutes: smithy_client_1.expectInt32,
2356
+ DeploymentNumber: smithy_client_1.expectInt32,
2357
+ DeploymentStrategyId: smithy_client_1.expectString,
2358
+ Description: smithy_client_1.expectString,
2359
+ EnvironmentId: smithy_client_1.expectString,
2360
+ EventLog: (_) => de_DeploymentEvents(_, context),
2361
+ FinalBakeTimeInMinutes: smithy_client_1.expectInt32,
2362
+ GrowthFactor: smithy_client_1.limitedParseFloat32,
2363
+ GrowthType: smithy_client_1.expectString,
2364
+ KmsKeyArn: smithy_client_1.expectString,
2365
+ KmsKeyIdentifier: smithy_client_1.expectString,
2366
+ PercentageComplete: smithy_client_1.limitedParseFloat32,
2367
+ StartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2368
+ State: smithy_client_1.expectString,
2369
+ });
2370
+ Object.assign(contents, doc);
2608
2371
  return contents;
2609
2372
  };
2610
2373
  exports.de_StartDeploymentCommand = de_StartDeploymentCommand;
@@ -2629,10 +2392,9 @@ const de_StartDeploymentCommandError = async (output, context) => {
2629
2392
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2630
2393
  default:
2631
2394
  const parsedBody = parsedOutput.body;
2632
- (0, smithy_client_1.throwDefaultError)({
2395
+ return throwDefaultError({
2633
2396
  output,
2634
2397
  parsedBody,
2635
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2636
2398
  errorCode,
2637
2399
  });
2638
2400
  }
@@ -2641,73 +2403,34 @@ const de_StopDeploymentCommand = async (output, context) => {
2641
2403
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2642
2404
  return de_StopDeploymentCommandError(output, context);
2643
2405
  }
2644
- const contents = map({
2406
+ const contents = (0, smithy_client_1.map)({
2645
2407
  $metadata: deserializeMetadata(output),
2646
2408
  });
2647
2409
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2648
- if (data.ApplicationId != null) {
2649
- contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
2650
- }
2651
- if (data.AppliedExtensions != null) {
2652
- contents.AppliedExtensions = de_AppliedExtensions(data.AppliedExtensions, context);
2653
- }
2654
- if (data.CompletedAt != null) {
2655
- contents.CompletedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CompletedAt));
2656
- }
2657
- if (data.ConfigurationLocationUri != null) {
2658
- contents.ConfigurationLocationUri = (0, smithy_client_1.expectString)(data.ConfigurationLocationUri);
2659
- }
2660
- if (data.ConfigurationName != null) {
2661
- contents.ConfigurationName = (0, smithy_client_1.expectString)(data.ConfigurationName);
2662
- }
2663
- if (data.ConfigurationProfileId != null) {
2664
- contents.ConfigurationProfileId = (0, smithy_client_1.expectString)(data.ConfigurationProfileId);
2665
- }
2666
- if (data.ConfigurationVersion != null) {
2667
- contents.ConfigurationVersion = (0, smithy_client_1.expectString)(data.ConfigurationVersion);
2668
- }
2669
- if (data.DeploymentDurationInMinutes != null) {
2670
- contents.DeploymentDurationInMinutes = (0, smithy_client_1.expectInt32)(data.DeploymentDurationInMinutes);
2671
- }
2672
- if (data.DeploymentNumber != null) {
2673
- contents.DeploymentNumber = (0, smithy_client_1.expectInt32)(data.DeploymentNumber);
2674
- }
2675
- if (data.DeploymentStrategyId != null) {
2676
- contents.DeploymentStrategyId = (0, smithy_client_1.expectString)(data.DeploymentStrategyId);
2677
- }
2678
- if (data.Description != null) {
2679
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
2680
- }
2681
- if (data.EnvironmentId != null) {
2682
- contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
2683
- }
2684
- if (data.EventLog != null) {
2685
- contents.EventLog = de_DeploymentEvents(data.EventLog, context);
2686
- }
2687
- if (data.FinalBakeTimeInMinutes != null) {
2688
- contents.FinalBakeTimeInMinutes = (0, smithy_client_1.expectInt32)(data.FinalBakeTimeInMinutes);
2689
- }
2690
- if (data.GrowthFactor != null) {
2691
- contents.GrowthFactor = (0, smithy_client_1.limitedParseFloat32)(data.GrowthFactor);
2692
- }
2693
- if (data.GrowthType != null) {
2694
- contents.GrowthType = (0, smithy_client_1.expectString)(data.GrowthType);
2695
- }
2696
- if (data.KmsKeyArn != null) {
2697
- contents.KmsKeyArn = (0, smithy_client_1.expectString)(data.KmsKeyArn);
2698
- }
2699
- if (data.KmsKeyIdentifier != null) {
2700
- contents.KmsKeyIdentifier = (0, smithy_client_1.expectString)(data.KmsKeyIdentifier);
2701
- }
2702
- if (data.PercentageComplete != null) {
2703
- contents.PercentageComplete = (0, smithy_client_1.limitedParseFloat32)(data.PercentageComplete);
2704
- }
2705
- if (data.StartedAt != null) {
2706
- contents.StartedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.StartedAt));
2707
- }
2708
- if (data.State != null) {
2709
- contents.State = (0, smithy_client_1.expectString)(data.State);
2710
- }
2410
+ const doc = (0, smithy_client_1.take)(data, {
2411
+ ApplicationId: smithy_client_1.expectString,
2412
+ AppliedExtensions: smithy_client_1._json,
2413
+ CompletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2414
+ ConfigurationLocationUri: smithy_client_1.expectString,
2415
+ ConfigurationName: smithy_client_1.expectString,
2416
+ ConfigurationProfileId: smithy_client_1.expectString,
2417
+ ConfigurationVersion: smithy_client_1.expectString,
2418
+ DeploymentDurationInMinutes: smithy_client_1.expectInt32,
2419
+ DeploymentNumber: smithy_client_1.expectInt32,
2420
+ DeploymentStrategyId: smithy_client_1.expectString,
2421
+ Description: smithy_client_1.expectString,
2422
+ EnvironmentId: smithy_client_1.expectString,
2423
+ EventLog: (_) => de_DeploymentEvents(_, context),
2424
+ FinalBakeTimeInMinutes: smithy_client_1.expectInt32,
2425
+ GrowthFactor: smithy_client_1.limitedParseFloat32,
2426
+ GrowthType: smithy_client_1.expectString,
2427
+ KmsKeyArn: smithy_client_1.expectString,
2428
+ KmsKeyIdentifier: smithy_client_1.expectString,
2429
+ PercentageComplete: smithy_client_1.limitedParseFloat32,
2430
+ StartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2431
+ State: smithy_client_1.expectString,
2432
+ });
2433
+ Object.assign(contents, doc);
2711
2434
  return contents;
2712
2435
  };
2713
2436
  exports.de_StopDeploymentCommand = de_StopDeploymentCommand;
@@ -2729,10 +2452,9 @@ const de_StopDeploymentCommandError = async (output, context) => {
2729
2452
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2730
2453
  default:
2731
2454
  const parsedBody = parsedOutput.body;
2732
- (0, smithy_client_1.throwDefaultError)({
2455
+ return throwDefaultError({
2733
2456
  output,
2734
2457
  parsedBody,
2735
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2736
2458
  errorCode,
2737
2459
  });
2738
2460
  }
@@ -2741,7 +2463,7 @@ const de_TagResourceCommand = async (output, context) => {
2741
2463
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2742
2464
  return de_TagResourceCommandError(output, context);
2743
2465
  }
2744
- const contents = map({
2466
+ const contents = (0, smithy_client_1.map)({
2745
2467
  $metadata: deserializeMetadata(output),
2746
2468
  });
2747
2469
  await collectBody(output.body, context);
@@ -2766,10 +2488,9 @@ const de_TagResourceCommandError = async (output, context) => {
2766
2488
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2767
2489
  default:
2768
2490
  const parsedBody = parsedOutput.body;
2769
- (0, smithy_client_1.throwDefaultError)({
2491
+ return throwDefaultError({
2770
2492
  output,
2771
2493
  parsedBody,
2772
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2773
2494
  errorCode,
2774
2495
  });
2775
2496
  }
@@ -2778,7 +2499,7 @@ const de_UntagResourceCommand = async (output, context) => {
2778
2499
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2779
2500
  return de_UntagResourceCommandError(output, context);
2780
2501
  }
2781
- const contents = map({
2502
+ const contents = (0, smithy_client_1.map)({
2782
2503
  $metadata: deserializeMetadata(output),
2783
2504
  });
2784
2505
  await collectBody(output.body, context);
@@ -2803,10 +2524,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2803
2524
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2804
2525
  default:
2805
2526
  const parsedBody = parsedOutput.body;
2806
- (0, smithy_client_1.throwDefaultError)({
2527
+ return throwDefaultError({
2807
2528
  output,
2808
2529
  parsedBody,
2809
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2810
2530
  errorCode,
2811
2531
  });
2812
2532
  }
@@ -2815,19 +2535,16 @@ const de_UpdateApplicationCommand = async (output, context) => {
2815
2535
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2816
2536
  return de_UpdateApplicationCommandError(output, context);
2817
2537
  }
2818
- const contents = map({
2538
+ const contents = (0, smithy_client_1.map)({
2819
2539
  $metadata: deserializeMetadata(output),
2820
2540
  });
2821
2541
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2822
- if (data.Description != null) {
2823
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
2824
- }
2825
- if (data.Id != null) {
2826
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
2827
- }
2828
- if (data.Name != null) {
2829
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
2830
- }
2542
+ const doc = (0, smithy_client_1.take)(data, {
2543
+ Description: smithy_client_1.expectString,
2544
+ Id: smithy_client_1.expectString,
2545
+ Name: smithy_client_1.expectString,
2546
+ });
2547
+ Object.assign(contents, doc);
2831
2548
  return contents;
2832
2549
  };
2833
2550
  exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
@@ -2849,10 +2566,9 @@ const de_UpdateApplicationCommandError = async (output, context) => {
2849
2566
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2850
2567
  default:
2851
2568
  const parsedBody = parsedOutput.body;
2852
- (0, smithy_client_1.throwDefaultError)({
2569
+ return throwDefaultError({
2853
2570
  output,
2854
2571
  parsedBody,
2855
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2856
2572
  errorCode,
2857
2573
  });
2858
2574
  }
@@ -2861,34 +2577,21 @@ const de_UpdateConfigurationProfileCommand = async (output, context) => {
2861
2577
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2862
2578
  return de_UpdateConfigurationProfileCommandError(output, context);
2863
2579
  }
2864
- const contents = map({
2580
+ const contents = (0, smithy_client_1.map)({
2865
2581
  $metadata: deserializeMetadata(output),
2866
2582
  });
2867
2583
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2868
- if (data.ApplicationId != null) {
2869
- contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
2870
- }
2871
- if (data.Description != null) {
2872
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
2873
- }
2874
- if (data.Id != null) {
2875
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
2876
- }
2877
- if (data.LocationUri != null) {
2878
- contents.LocationUri = (0, smithy_client_1.expectString)(data.LocationUri);
2879
- }
2880
- if (data.Name != null) {
2881
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
2882
- }
2883
- if (data.RetrievalRoleArn != null) {
2884
- contents.RetrievalRoleArn = (0, smithy_client_1.expectString)(data.RetrievalRoleArn);
2885
- }
2886
- if (data.Type != null) {
2887
- contents.Type = (0, smithy_client_1.expectString)(data.Type);
2888
- }
2889
- if (data.Validators != null) {
2890
- contents.Validators = de_ValidatorList(data.Validators, context);
2891
- }
2584
+ const doc = (0, smithy_client_1.take)(data, {
2585
+ ApplicationId: smithy_client_1.expectString,
2586
+ Description: smithy_client_1.expectString,
2587
+ Id: smithy_client_1.expectString,
2588
+ LocationUri: smithy_client_1.expectString,
2589
+ Name: smithy_client_1.expectString,
2590
+ RetrievalRoleArn: smithy_client_1.expectString,
2591
+ Type: smithy_client_1.expectString,
2592
+ Validators: smithy_client_1._json,
2593
+ });
2594
+ Object.assign(contents, doc);
2892
2595
  return contents;
2893
2596
  };
2894
2597
  exports.de_UpdateConfigurationProfileCommand = de_UpdateConfigurationProfileCommand;
@@ -2910,10 +2613,9 @@ const de_UpdateConfigurationProfileCommandError = async (output, context) => {
2910
2613
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2911
2614
  default:
2912
2615
  const parsedBody = parsedOutput.body;
2913
- (0, smithy_client_1.throwDefaultError)({
2616
+ return throwDefaultError({
2914
2617
  output,
2915
2618
  parsedBody,
2916
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2917
2619
  errorCode,
2918
2620
  });
2919
2621
  }
@@ -2922,34 +2624,21 @@ const de_UpdateDeploymentStrategyCommand = async (output, context) => {
2922
2624
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2923
2625
  return de_UpdateDeploymentStrategyCommandError(output, context);
2924
2626
  }
2925
- const contents = map({
2627
+ const contents = (0, smithy_client_1.map)({
2926
2628
  $metadata: deserializeMetadata(output),
2927
2629
  });
2928
2630
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2929
- if (data.DeploymentDurationInMinutes != null) {
2930
- contents.DeploymentDurationInMinutes = (0, smithy_client_1.expectInt32)(data.DeploymentDurationInMinutes);
2931
- }
2932
- if (data.Description != null) {
2933
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
2934
- }
2935
- if (data.FinalBakeTimeInMinutes != null) {
2936
- contents.FinalBakeTimeInMinutes = (0, smithy_client_1.expectInt32)(data.FinalBakeTimeInMinutes);
2937
- }
2938
- if (data.GrowthFactor != null) {
2939
- contents.GrowthFactor = (0, smithy_client_1.limitedParseFloat32)(data.GrowthFactor);
2940
- }
2941
- if (data.GrowthType != null) {
2942
- contents.GrowthType = (0, smithy_client_1.expectString)(data.GrowthType);
2943
- }
2944
- if (data.Id != null) {
2945
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
2946
- }
2947
- if (data.Name != null) {
2948
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
2949
- }
2950
- if (data.ReplicateTo != null) {
2951
- contents.ReplicateTo = (0, smithy_client_1.expectString)(data.ReplicateTo);
2952
- }
2631
+ const doc = (0, smithy_client_1.take)(data, {
2632
+ DeploymentDurationInMinutes: smithy_client_1.expectInt32,
2633
+ Description: smithy_client_1.expectString,
2634
+ FinalBakeTimeInMinutes: smithy_client_1.expectInt32,
2635
+ GrowthFactor: smithy_client_1.limitedParseFloat32,
2636
+ GrowthType: smithy_client_1.expectString,
2637
+ Id: smithy_client_1.expectString,
2638
+ Name: smithy_client_1.expectString,
2639
+ ReplicateTo: smithy_client_1.expectString,
2640
+ });
2641
+ Object.assign(contents, doc);
2953
2642
  return contents;
2954
2643
  };
2955
2644
  exports.de_UpdateDeploymentStrategyCommand = de_UpdateDeploymentStrategyCommand;
@@ -2971,10 +2660,9 @@ const de_UpdateDeploymentStrategyCommandError = async (output, context) => {
2971
2660
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2972
2661
  default:
2973
2662
  const parsedBody = parsedOutput.body;
2974
- (0, smithy_client_1.throwDefaultError)({
2663
+ return throwDefaultError({
2975
2664
  output,
2976
2665
  parsedBody,
2977
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
2978
2666
  errorCode,
2979
2667
  });
2980
2668
  }
@@ -2983,28 +2671,19 @@ const de_UpdateEnvironmentCommand = async (output, context) => {
2983
2671
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2984
2672
  return de_UpdateEnvironmentCommandError(output, context);
2985
2673
  }
2986
- const contents = map({
2674
+ const contents = (0, smithy_client_1.map)({
2987
2675
  $metadata: deserializeMetadata(output),
2988
2676
  });
2989
2677
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2990
- if (data.ApplicationId != null) {
2991
- contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
2992
- }
2993
- if (data.Description != null) {
2994
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
2995
- }
2996
- if (data.Id != null) {
2997
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
2998
- }
2999
- if (data.Monitors != null) {
3000
- contents.Monitors = de_MonitorList(data.Monitors, context);
3001
- }
3002
- if (data.Name != null) {
3003
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
3004
- }
3005
- if (data.State != null) {
3006
- contents.State = (0, smithy_client_1.expectString)(data.State);
3007
- }
2678
+ const doc = (0, smithy_client_1.take)(data, {
2679
+ ApplicationId: smithy_client_1.expectString,
2680
+ Description: smithy_client_1.expectString,
2681
+ Id: smithy_client_1.expectString,
2682
+ Monitors: smithy_client_1._json,
2683
+ Name: smithy_client_1.expectString,
2684
+ State: smithy_client_1.expectString,
2685
+ });
2686
+ Object.assign(contents, doc);
3008
2687
  return contents;
3009
2688
  };
3010
2689
  exports.de_UpdateEnvironmentCommand = de_UpdateEnvironmentCommand;
@@ -3026,10 +2705,9 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
3026
2705
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3027
2706
  default:
3028
2707
  const parsedBody = parsedOutput.body;
3029
- (0, smithy_client_1.throwDefaultError)({
2708
+ return throwDefaultError({
3030
2709
  output,
3031
2710
  parsedBody,
3032
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
3033
2711
  errorCode,
3034
2712
  });
3035
2713
  }
@@ -3038,31 +2716,20 @@ const de_UpdateExtensionCommand = async (output, context) => {
3038
2716
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3039
2717
  return de_UpdateExtensionCommandError(output, context);
3040
2718
  }
3041
- const contents = map({
2719
+ const contents = (0, smithy_client_1.map)({
3042
2720
  $metadata: deserializeMetadata(output),
3043
2721
  });
3044
2722
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3045
- if (data.Actions != null) {
3046
- contents.Actions = de_ActionsMap(data.Actions, context);
3047
- }
3048
- if (data.Arn != null) {
3049
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3050
- }
3051
- if (data.Description != null) {
3052
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
3053
- }
3054
- if (data.Id != null) {
3055
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
3056
- }
3057
- if (data.Name != null) {
3058
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
3059
- }
3060
- if (data.Parameters != null) {
3061
- contents.Parameters = de_ParameterMap(data.Parameters, context);
3062
- }
3063
- if (data.VersionNumber != null) {
3064
- contents.VersionNumber = (0, smithy_client_1.expectInt32)(data.VersionNumber);
3065
- }
2723
+ const doc = (0, smithy_client_1.take)(data, {
2724
+ Actions: smithy_client_1._json,
2725
+ Arn: smithy_client_1.expectString,
2726
+ Description: smithy_client_1.expectString,
2727
+ Id: smithy_client_1.expectString,
2728
+ Name: smithy_client_1.expectString,
2729
+ Parameters: smithy_client_1._json,
2730
+ VersionNumber: smithy_client_1.expectInt32,
2731
+ });
2732
+ Object.assign(contents, doc);
3066
2733
  return contents;
3067
2734
  };
3068
2735
  exports.de_UpdateExtensionCommand = de_UpdateExtensionCommand;
@@ -3087,10 +2754,9 @@ const de_UpdateExtensionCommandError = async (output, context) => {
3087
2754
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3088
2755
  default:
3089
2756
  const parsedBody = parsedOutput.body;
3090
- (0, smithy_client_1.throwDefaultError)({
2757
+ return throwDefaultError({
3091
2758
  output,
3092
2759
  parsedBody,
3093
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
3094
2760
  errorCode,
3095
2761
  });
3096
2762
  }
@@ -3099,28 +2765,19 @@ const de_UpdateExtensionAssociationCommand = async (output, context) => {
3099
2765
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3100
2766
  return de_UpdateExtensionAssociationCommandError(output, context);
3101
2767
  }
3102
- const contents = map({
2768
+ const contents = (0, smithy_client_1.map)({
3103
2769
  $metadata: deserializeMetadata(output),
3104
2770
  });
3105
2771
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3106
- if (data.Arn != null) {
3107
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3108
- }
3109
- if (data.ExtensionArn != null) {
3110
- contents.ExtensionArn = (0, smithy_client_1.expectString)(data.ExtensionArn);
3111
- }
3112
- if (data.ExtensionVersionNumber != null) {
3113
- contents.ExtensionVersionNumber = (0, smithy_client_1.expectInt32)(data.ExtensionVersionNumber);
3114
- }
3115
- if (data.Id != null) {
3116
- contents.Id = (0, smithy_client_1.expectString)(data.Id);
3117
- }
3118
- if (data.Parameters != null) {
3119
- contents.Parameters = de_ParameterValueMap(data.Parameters, context);
3120
- }
3121
- if (data.ResourceArn != null) {
3122
- contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
3123
- }
2772
+ const doc = (0, smithy_client_1.take)(data, {
2773
+ Arn: smithy_client_1.expectString,
2774
+ ExtensionArn: smithy_client_1.expectString,
2775
+ ExtensionVersionNumber: smithy_client_1.expectInt32,
2776
+ Id: smithy_client_1.expectString,
2777
+ Parameters: smithy_client_1._json,
2778
+ ResourceArn: smithy_client_1.expectString,
2779
+ });
2780
+ Object.assign(contents, doc);
3124
2781
  return contents;
3125
2782
  };
3126
2783
  exports.de_UpdateExtensionAssociationCommand = de_UpdateExtensionAssociationCommand;
@@ -3142,10 +2799,9 @@ const de_UpdateExtensionAssociationCommandError = async (output, context) => {
3142
2799
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3143
2800
  default:
3144
2801
  const parsedBody = parsedOutput.body;
3145
- (0, smithy_client_1.throwDefaultError)({
2802
+ return throwDefaultError({
3146
2803
  output,
3147
2804
  parsedBody,
3148
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
3149
2805
  errorCode,
3150
2806
  });
3151
2807
  }
@@ -3154,7 +2810,7 @@ const de_ValidateConfigurationCommand = async (output, context) => {
3154
2810
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3155
2811
  return de_ValidateConfigurationCommandError(output, context);
3156
2812
  }
3157
- const contents = map({
2813
+ const contents = (0, smithy_client_1.map)({
3158
2814
  $metadata: deserializeMetadata(output),
3159
2815
  });
3160
2816
  await collectBody(output.body, context);
@@ -3179,27 +2835,23 @@ const de_ValidateConfigurationCommandError = async (output, context) => {
3179
2835
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3180
2836
  default:
3181
2837
  const parsedBody = parsedOutput.body;
3182
- (0, smithy_client_1.throwDefaultError)({
2838
+ return throwDefaultError({
3183
2839
  output,
3184
2840
  parsedBody,
3185
- exceptionCtor: AppConfigServiceException_1.AppConfigServiceException,
3186
2841
  errorCode,
3187
2842
  });
3188
2843
  }
3189
2844
  };
3190
- const map = smithy_client_1.map;
2845
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(AppConfigServiceException_1.AppConfigServiceException);
3191
2846
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3192
- const contents = map({});
2847
+ const contents = (0, smithy_client_1.map)({});
3193
2848
  const data = parsedOutput.body;
3194
- if (data.Details != null) {
3195
- contents.Details = de_BadRequestDetails((0, smithy_client_1.expectUnion)(data.Details), context);
3196
- }
3197
- if (data.Message != null) {
3198
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3199
- }
3200
- if (data.Reason != null) {
3201
- contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
3202
- }
2849
+ const doc = (0, smithy_client_1.take)(data, {
2850
+ Details: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2851
+ Message: smithy_client_1.expectString,
2852
+ Reason: smithy_client_1.expectString,
2853
+ });
2854
+ Object.assign(contents, doc);
3203
2855
  const exception = new models_0_1.BadRequestException({
3204
2856
  $metadata: deserializeMetadata(parsedOutput),
3205
2857
  ...contents,
@@ -3207,11 +2859,12 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3207
2859
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3208
2860
  };
3209
2861
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
3210
- const contents = map({});
2862
+ const contents = (0, smithy_client_1.map)({});
3211
2863
  const data = parsedOutput.body;
3212
- if (data.Message != null) {
3213
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3214
- }
2864
+ const doc = (0, smithy_client_1.take)(data, {
2865
+ Message: smithy_client_1.expectString,
2866
+ });
2867
+ Object.assign(contents, doc);
3215
2868
  const exception = new models_0_1.ConflictException({
3216
2869
  $metadata: deserializeMetadata(parsedOutput),
3217
2870
  ...contents,
@@ -3219,11 +2872,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
3219
2872
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3220
2873
  };
3221
2874
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
3222
- const contents = map({});
2875
+ const contents = (0, smithy_client_1.map)({});
3223
2876
  const data = parsedOutput.body;
3224
- if (data.Message != null) {
3225
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3226
- }
2877
+ const doc = (0, smithy_client_1.take)(data, {
2878
+ Message: smithy_client_1.expectString,
2879
+ });
2880
+ Object.assign(contents, doc);
3227
2881
  const exception = new models_0_1.InternalServerException({
3228
2882
  $metadata: deserializeMetadata(parsedOutput),
3229
2883
  ...contents,
@@ -3231,20 +2885,15 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
3231
2885
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3232
2886
  };
3233
2887
  const de_PayloadTooLargeExceptionRes = async (parsedOutput, context) => {
3234
- const contents = map({});
2888
+ const contents = (0, smithy_client_1.map)({});
3235
2889
  const data = parsedOutput.body;
3236
- if (data.Limit != null) {
3237
- contents.Limit = (0, smithy_client_1.limitedParseFloat32)(data.Limit);
3238
- }
3239
- if (data.Measure != null) {
3240
- contents.Measure = (0, smithy_client_1.expectString)(data.Measure);
3241
- }
3242
- if (data.Message != null) {
3243
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3244
- }
3245
- if (data.Size != null) {
3246
- contents.Size = (0, smithy_client_1.limitedParseFloat32)(data.Size);
3247
- }
2890
+ const doc = (0, smithy_client_1.take)(data, {
2891
+ Limit: smithy_client_1.limitedParseFloat32,
2892
+ Measure: smithy_client_1.expectString,
2893
+ Message: smithy_client_1.expectString,
2894
+ Size: smithy_client_1.limitedParseFloat32,
2895
+ });
2896
+ Object.assign(contents, doc);
3248
2897
  const exception = new models_0_1.PayloadTooLargeException({
3249
2898
  $metadata: deserializeMetadata(parsedOutput),
3250
2899
  ...contents,
@@ -3252,14 +2901,13 @@ const de_PayloadTooLargeExceptionRes = async (parsedOutput, context) => {
3252
2901
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3253
2902
  };
3254
2903
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3255
- const contents = map({});
2904
+ const contents = (0, smithy_client_1.map)({});
3256
2905
  const data = parsedOutput.body;
3257
- if (data.Message != null) {
3258
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3259
- }
3260
- if (data.ResourceName != null) {
3261
- contents.ResourceName = (0, smithy_client_1.expectString)(data.ResourceName);
3262
- }
2906
+ const doc = (0, smithy_client_1.take)(data, {
2907
+ Message: smithy_client_1.expectString,
2908
+ ResourceName: smithy_client_1.expectString,
2909
+ });
2910
+ Object.assign(contents, doc);
3263
2911
  const exception = new models_0_1.ResourceNotFoundException({
3264
2912
  $metadata: deserializeMetadata(parsedOutput),
3265
2913
  ...contents,
@@ -3267,232 +2915,31 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3267
2915
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3268
2916
  };
3269
2917
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
3270
- const contents = map({});
2918
+ const contents = (0, smithy_client_1.map)({});
3271
2919
  const data = parsedOutput.body;
3272
- if (data.Message != null) {
3273
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
3274
- }
2920
+ const doc = (0, smithy_client_1.take)(data, {
2921
+ Message: smithy_client_1.expectString,
2922
+ });
2923
+ Object.assign(contents, doc);
3275
2924
  const exception = new models_0_1.ServiceQuotaExceededException({
3276
2925
  $metadata: deserializeMetadata(parsedOutput),
3277
2926
  ...contents,
3278
2927
  });
3279
2928
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3280
2929
  };
3281
- const se_Action = (input, context) => {
3282
- return {
3283
- ...(input.Description != null && { Description: input.Description }),
3284
- ...(input.Name != null && { Name: input.Name }),
3285
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
3286
- ...(input.Uri != null && { Uri: input.Uri }),
3287
- };
3288
- };
3289
- const se_ActionList = (input, context) => {
3290
- return input
3291
- .filter((e) => e != null)
3292
- .map((entry) => {
3293
- return se_Action(entry, context);
3294
- });
3295
- };
3296
- const se_ActionsMap = (input, context) => {
3297
- return Object.entries(input).reduce((acc, [key, value]) => {
3298
- if (value === null) {
3299
- return acc;
3300
- }
3301
- acc[key] = se_ActionList(value, context);
3302
- return acc;
3303
- }, {});
3304
- };
3305
- const se_Monitor = (input, context) => {
3306
- return {
3307
- ...(input.AlarmArn != null && { AlarmArn: input.AlarmArn }),
3308
- ...(input.AlarmRoleArn != null && { AlarmRoleArn: input.AlarmRoleArn }),
3309
- };
3310
- };
3311
- const se_MonitorList = (input, context) => {
3312
- return input
3313
- .filter((e) => e != null)
3314
- .map((entry) => {
3315
- return se_Monitor(entry, context);
3316
- });
3317
- };
3318
- const se_Parameter = (input, context) => {
3319
- return {
3320
- ...(input.Description != null && { Description: input.Description }),
3321
- ...(input.Required != null && { Required: input.Required }),
3322
- };
3323
- };
3324
- const se_ParameterMap = (input, context) => {
3325
- return Object.entries(input).reduce((acc, [key, value]) => {
3326
- if (value === null) {
3327
- return acc;
3328
- }
3329
- acc[key] = se_Parameter(value, context);
3330
- return acc;
3331
- }, {});
3332
- };
3333
- const se_ParameterValueMap = (input, context) => {
3334
- return Object.entries(input).reduce((acc, [key, value]) => {
3335
- if (value === null) {
3336
- return acc;
3337
- }
3338
- acc[key] = value;
3339
- return acc;
3340
- }, {});
3341
- };
3342
- const se_TagMap = (input, context) => {
3343
- return Object.entries(input).reduce((acc, [key, value]) => {
3344
- if (value === null) {
3345
- return acc;
3346
- }
3347
- acc[key] = value;
3348
- return acc;
3349
- }, {});
3350
- };
3351
- const se_Validator = (input, context) => {
3352
- return {
3353
- ...(input.Content != null && { Content: input.Content }),
3354
- ...(input.Type != null && { Type: input.Type }),
3355
- };
3356
- };
3357
- const se_ValidatorList = (input, context) => {
3358
- return input
3359
- .filter((e) => e != null)
3360
- .map((entry) => {
3361
- return se_Validator(entry, context);
3362
- });
3363
- };
3364
- const de_Action = (output, context) => {
3365
- return {
3366
- Description: (0, smithy_client_1.expectString)(output.Description),
3367
- Name: (0, smithy_client_1.expectString)(output.Name),
3368
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
3369
- Uri: (0, smithy_client_1.expectString)(output.Uri),
3370
- };
3371
- };
3372
- const de_ActionInvocation = (output, context) => {
3373
- return {
3374
- ActionName: (0, smithy_client_1.expectString)(output.ActionName),
3375
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
3376
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
3377
- ExtensionIdentifier: (0, smithy_client_1.expectString)(output.ExtensionIdentifier),
3378
- InvocationId: (0, smithy_client_1.expectString)(output.InvocationId),
3379
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
3380
- Uri: (0, smithy_client_1.expectString)(output.Uri),
3381
- };
3382
- };
3383
- const de_ActionInvocations = (output, context) => {
3384
- const retVal = (output || [])
3385
- .filter((e) => e != null)
3386
- .map((entry) => {
3387
- if (entry === null) {
3388
- return null;
3389
- }
3390
- return de_ActionInvocation(entry, context);
3391
- });
3392
- return retVal;
3393
- };
3394
- const de_ActionList = (output, context) => {
3395
- const retVal = (output || [])
3396
- .filter((e) => e != null)
3397
- .map((entry) => {
3398
- if (entry === null) {
3399
- return null;
3400
- }
3401
- return de_Action(entry, context);
3402
- });
3403
- return retVal;
3404
- };
3405
- const de_ActionsMap = (output, context) => {
3406
- return Object.entries(output).reduce((acc, [key, value]) => {
3407
- if (value === null) {
3408
- return acc;
3409
- }
3410
- acc[key] = de_ActionList(value, context);
3411
- return acc;
3412
- }, {});
3413
- };
3414
- const de_Application = (output, context) => {
3415
- return {
3416
- Description: (0, smithy_client_1.expectString)(output.Description),
3417
- Id: (0, smithy_client_1.expectString)(output.Id),
3418
- Name: (0, smithy_client_1.expectString)(output.Name),
3419
- };
3420
- };
3421
- const de_ApplicationList = (output, context) => {
3422
- const retVal = (output || [])
3423
- .filter((e) => e != null)
3424
- .map((entry) => {
3425
- if (entry === null) {
3426
- return null;
3427
- }
3428
- return de_Application(entry, context);
3429
- });
3430
- return retVal;
3431
- };
3432
- const de_AppliedExtension = (output, context) => {
3433
- return {
3434
- ExtensionAssociationId: (0, smithy_client_1.expectString)(output.ExtensionAssociationId),
3435
- ExtensionId: (0, smithy_client_1.expectString)(output.ExtensionId),
3436
- Parameters: output.Parameters != null ? de_ParameterValueMap(output.Parameters, context) : undefined,
3437
- VersionNumber: (0, smithy_client_1.expectInt32)(output.VersionNumber),
3438
- };
3439
- };
3440
- const de_AppliedExtensions = (output, context) => {
3441
- const retVal = (output || [])
3442
- .filter((e) => e != null)
3443
- .map((entry) => {
3444
- if (entry === null) {
3445
- return null;
3446
- }
3447
- return de_AppliedExtension(entry, context);
3448
- });
3449
- return retVal;
3450
- };
3451
- const de_BadRequestDetails = (output, context) => {
3452
- if (output.InvalidConfiguration != null) {
3453
- return {
3454
- InvalidConfiguration: de_InvalidConfigurationDetailList(output.InvalidConfiguration, context),
3455
- };
3456
- }
3457
- return { $unknown: Object.entries(output)[0] };
3458
- };
3459
- const de_ConfigurationProfileSummary = (output, context) => {
3460
- return {
3461
- ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
3462
- Id: (0, smithy_client_1.expectString)(output.Id),
3463
- LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3464
- Name: (0, smithy_client_1.expectString)(output.Name),
3465
- Type: (0, smithy_client_1.expectString)(output.Type),
3466
- ValidatorTypes: output.ValidatorTypes != null ? de_ValidatorTypeList(output.ValidatorTypes, context) : undefined,
3467
- };
3468
- };
3469
- const de_ConfigurationProfileSummaryList = (output, context) => {
3470
- const retVal = (output || [])
3471
- .filter((e) => e != null)
3472
- .map((entry) => {
3473
- if (entry === null) {
3474
- return null;
3475
- }
3476
- return de_ConfigurationProfileSummary(entry, context);
3477
- });
3478
- return retVal;
3479
- };
3480
2930
  const de_DeploymentEvent = (output, context) => {
3481
- return {
3482
- ActionInvocations: output.ActionInvocations != null ? de_ActionInvocations(output.ActionInvocations, context) : undefined,
3483
- Description: (0, smithy_client_1.expectString)(output.Description),
3484
- EventType: (0, smithy_client_1.expectString)(output.EventType),
3485
- OccurredAt: output.OccurredAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.OccurredAt)) : undefined,
3486
- TriggeredBy: (0, smithy_client_1.expectString)(output.TriggeredBy),
3487
- };
2931
+ return (0, smithy_client_1.take)(output, {
2932
+ ActionInvocations: smithy_client_1._json,
2933
+ Description: smithy_client_1.expectString,
2934
+ EventType: smithy_client_1.expectString,
2935
+ OccurredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2936
+ TriggeredBy: smithy_client_1.expectString,
2937
+ });
3488
2938
  };
3489
2939
  const de_DeploymentEvents = (output, context) => {
3490
2940
  const retVal = (output || [])
3491
2941
  .filter((e) => e != null)
3492
2942
  .map((entry) => {
3493
- if (entry === null) {
3494
- return null;
3495
- }
3496
2943
  return de_DeploymentEvent(entry, context);
3497
2944
  });
3498
2945
  return retVal;
@@ -3501,228 +2948,44 @@ const de_DeploymentList = (output, context) => {
3501
2948
  const retVal = (output || [])
3502
2949
  .filter((e) => e != null)
3503
2950
  .map((entry) => {
3504
- if (entry === null) {
3505
- return null;
3506
- }
3507
2951
  return de_DeploymentSummary(entry, context);
3508
2952
  });
3509
2953
  return retVal;
3510
2954
  };
3511
2955
  const de_DeploymentStrategy = (output, context) => {
3512
- return {
3513
- DeploymentDurationInMinutes: (0, smithy_client_1.expectInt32)(output.DeploymentDurationInMinutes),
3514
- Description: (0, smithy_client_1.expectString)(output.Description),
3515
- FinalBakeTimeInMinutes: (0, smithy_client_1.expectInt32)(output.FinalBakeTimeInMinutes),
3516
- GrowthFactor: (0, smithy_client_1.limitedParseFloat32)(output.GrowthFactor),
3517
- GrowthType: (0, smithy_client_1.expectString)(output.GrowthType),
3518
- Id: (0, smithy_client_1.expectString)(output.Id),
3519
- Name: (0, smithy_client_1.expectString)(output.Name),
3520
- ReplicateTo: (0, smithy_client_1.expectString)(output.ReplicateTo),
3521
- };
2956
+ return (0, smithy_client_1.take)(output, {
2957
+ DeploymentDurationInMinutes: smithy_client_1.expectInt32,
2958
+ Description: smithy_client_1.expectString,
2959
+ FinalBakeTimeInMinutes: smithy_client_1.expectInt32,
2960
+ GrowthFactor: smithy_client_1.limitedParseFloat32,
2961
+ GrowthType: smithy_client_1.expectString,
2962
+ Id: smithy_client_1.expectString,
2963
+ Name: smithy_client_1.expectString,
2964
+ ReplicateTo: smithy_client_1.expectString,
2965
+ });
3522
2966
  };
3523
2967
  const de_DeploymentStrategyList = (output, context) => {
3524
2968
  const retVal = (output || [])
3525
2969
  .filter((e) => e != null)
3526
2970
  .map((entry) => {
3527
- if (entry === null) {
3528
- return null;
3529
- }
3530
2971
  return de_DeploymentStrategy(entry, context);
3531
2972
  });
3532
2973
  return retVal;
3533
2974
  };
3534
2975
  const de_DeploymentSummary = (output, context) => {
3535
- return {
3536
- CompletedAt: output.CompletedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CompletedAt)) : undefined,
3537
- ConfigurationName: (0, smithy_client_1.expectString)(output.ConfigurationName),
3538
- ConfigurationVersion: (0, smithy_client_1.expectString)(output.ConfigurationVersion),
3539
- DeploymentDurationInMinutes: (0, smithy_client_1.expectInt32)(output.DeploymentDurationInMinutes),
3540
- DeploymentNumber: (0, smithy_client_1.expectInt32)(output.DeploymentNumber),
3541
- FinalBakeTimeInMinutes: (0, smithy_client_1.expectInt32)(output.FinalBakeTimeInMinutes),
3542
- GrowthFactor: (0, smithy_client_1.limitedParseFloat32)(output.GrowthFactor),
3543
- GrowthType: (0, smithy_client_1.expectString)(output.GrowthType),
3544
- PercentageComplete: (0, smithy_client_1.limitedParseFloat32)(output.PercentageComplete),
3545
- StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.StartedAt)) : undefined,
3546
- State: (0, smithy_client_1.expectString)(output.State),
3547
- };
3548
- };
3549
- const de_Environment = (output, context) => {
3550
- return {
3551
- ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
3552
- Description: (0, smithy_client_1.expectString)(output.Description),
3553
- Id: (0, smithy_client_1.expectString)(output.Id),
3554
- Monitors: output.Monitors != null ? de_MonitorList(output.Monitors, context) : undefined,
3555
- Name: (0, smithy_client_1.expectString)(output.Name),
3556
- State: (0, smithy_client_1.expectString)(output.State),
3557
- };
3558
- };
3559
- const de_EnvironmentList = (output, context) => {
3560
- const retVal = (output || [])
3561
- .filter((e) => e != null)
3562
- .map((entry) => {
3563
- if (entry === null) {
3564
- return null;
3565
- }
3566
- return de_Environment(entry, context);
3567
- });
3568
- return retVal;
3569
- };
3570
- const de_ExtensionAssociationSummaries = (output, context) => {
3571
- const retVal = (output || [])
3572
- .filter((e) => e != null)
3573
- .map((entry) => {
3574
- if (entry === null) {
3575
- return null;
3576
- }
3577
- return de_ExtensionAssociationSummary(entry, context);
2976
+ return (0, smithy_client_1.take)(output, {
2977
+ CompletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2978
+ ConfigurationName: smithy_client_1.expectString,
2979
+ ConfigurationVersion: smithy_client_1.expectString,
2980
+ DeploymentDurationInMinutes: smithy_client_1.expectInt32,
2981
+ DeploymentNumber: smithy_client_1.expectInt32,
2982
+ FinalBakeTimeInMinutes: smithy_client_1.expectInt32,
2983
+ GrowthFactor: smithy_client_1.limitedParseFloat32,
2984
+ GrowthType: smithy_client_1.expectString,
2985
+ PercentageComplete: smithy_client_1.limitedParseFloat32,
2986
+ StartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2987
+ State: smithy_client_1.expectString,
3578
2988
  });
3579
- return retVal;
3580
- };
3581
- const de_ExtensionAssociationSummary = (output, context) => {
3582
- return {
3583
- ExtensionArn: (0, smithy_client_1.expectString)(output.ExtensionArn),
3584
- Id: (0, smithy_client_1.expectString)(output.Id),
3585
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
3586
- };
3587
- };
3588
- const de_ExtensionSummaries = (output, context) => {
3589
- const retVal = (output || [])
3590
- .filter((e) => e != null)
3591
- .map((entry) => {
3592
- if (entry === null) {
3593
- return null;
3594
- }
3595
- return de_ExtensionSummary(entry, context);
3596
- });
3597
- return retVal;
3598
- };
3599
- const de_ExtensionSummary = (output, context) => {
3600
- return {
3601
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3602
- Description: (0, smithy_client_1.expectString)(output.Description),
3603
- Id: (0, smithy_client_1.expectString)(output.Id),
3604
- Name: (0, smithy_client_1.expectString)(output.Name),
3605
- VersionNumber: (0, smithy_client_1.expectInt32)(output.VersionNumber),
3606
- };
3607
- };
3608
- const de_HostedConfigurationVersionSummary = (output, context) => {
3609
- return {
3610
- ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
3611
- ConfigurationProfileId: (0, smithy_client_1.expectString)(output.ConfigurationProfileId),
3612
- ContentType: (0, smithy_client_1.expectString)(output.ContentType),
3613
- Description: (0, smithy_client_1.expectString)(output.Description),
3614
- VersionLabel: (0, smithy_client_1.expectString)(output.VersionLabel),
3615
- VersionNumber: (0, smithy_client_1.expectInt32)(output.VersionNumber),
3616
- };
3617
- };
3618
- const de_HostedConfigurationVersionSummaryList = (output, context) => {
3619
- const retVal = (output || [])
3620
- .filter((e) => e != null)
3621
- .map((entry) => {
3622
- if (entry === null) {
3623
- return null;
3624
- }
3625
- return de_HostedConfigurationVersionSummary(entry, context);
3626
- });
3627
- return retVal;
3628
- };
3629
- const de_InvalidConfigurationDetail = (output, context) => {
3630
- return {
3631
- Constraint: (0, smithy_client_1.expectString)(output.Constraint),
3632
- Location: (0, smithy_client_1.expectString)(output.Location),
3633
- Reason: (0, smithy_client_1.expectString)(output.Reason),
3634
- Type: (0, smithy_client_1.expectString)(output.Type),
3635
- Value: (0, smithy_client_1.expectString)(output.Value),
3636
- };
3637
- };
3638
- const de_InvalidConfigurationDetailList = (output, context) => {
3639
- const retVal = (output || [])
3640
- .filter((e) => e != null)
3641
- .map((entry) => {
3642
- if (entry === null) {
3643
- return null;
3644
- }
3645
- return de_InvalidConfigurationDetail(entry, context);
3646
- });
3647
- return retVal;
3648
- };
3649
- const de_Monitor = (output, context) => {
3650
- return {
3651
- AlarmArn: (0, smithy_client_1.expectString)(output.AlarmArn),
3652
- AlarmRoleArn: (0, smithy_client_1.expectString)(output.AlarmRoleArn),
3653
- };
3654
- };
3655
- const de_MonitorList = (output, context) => {
3656
- const retVal = (output || [])
3657
- .filter((e) => e != null)
3658
- .map((entry) => {
3659
- if (entry === null) {
3660
- return null;
3661
- }
3662
- return de_Monitor(entry, context);
3663
- });
3664
- return retVal;
3665
- };
3666
- const de_Parameter = (output, context) => {
3667
- return {
3668
- Description: (0, smithy_client_1.expectString)(output.Description),
3669
- Required: (0, smithy_client_1.expectBoolean)(output.Required),
3670
- };
3671
- };
3672
- const de_ParameterMap = (output, context) => {
3673
- return Object.entries(output).reduce((acc, [key, value]) => {
3674
- if (value === null) {
3675
- return acc;
3676
- }
3677
- acc[key] = de_Parameter(value, context);
3678
- return acc;
3679
- }, {});
3680
- };
3681
- const de_ParameterValueMap = (output, context) => {
3682
- return Object.entries(output).reduce((acc, [key, value]) => {
3683
- if (value === null) {
3684
- return acc;
3685
- }
3686
- acc[key] = (0, smithy_client_1.expectString)(value);
3687
- return acc;
3688
- }, {});
3689
- };
3690
- const de_TagMap = (output, context) => {
3691
- return Object.entries(output).reduce((acc, [key, value]) => {
3692
- if (value === null) {
3693
- return acc;
3694
- }
3695
- acc[key] = (0, smithy_client_1.expectString)(value);
3696
- return acc;
3697
- }, {});
3698
- };
3699
- const de_Validator = (output, context) => {
3700
- return {
3701
- Content: (0, smithy_client_1.expectString)(output.Content),
3702
- Type: (0, smithy_client_1.expectString)(output.Type),
3703
- };
3704
- };
3705
- const de_ValidatorList = (output, context) => {
3706
- const retVal = (output || [])
3707
- .filter((e) => e != null)
3708
- .map((entry) => {
3709
- if (entry === null) {
3710
- return null;
3711
- }
3712
- return de_Validator(entry, context);
3713
- });
3714
- return retVal;
3715
- };
3716
- const de_ValidatorTypeList = (output, context) => {
3717
- const retVal = (output || [])
3718
- .filter((e) => e != null)
3719
- .map((entry) => {
3720
- if (entry === null) {
3721
- return null;
3722
- }
3723
- return (0, smithy_client_1.expectString)(entry);
3724
- });
3725
- return retVal;
3726
2989
  };
3727
2990
  const deserializeMetadata = (output) => ({
3728
2991
  httpStatusCode: output.statusCode,