@aws-sdk/client-appconfig 3.121.0 → 3.129.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +24 -23
  3. package/dist-cjs/AppConfig.js +150 -0
  4. package/dist-cjs/commands/CreateExtensionAssociationCommand.js +36 -0
  5. package/dist-cjs/commands/CreateExtensionCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteExtensionAssociationCommand.js +36 -0
  7. package/dist-cjs/commands/DeleteExtensionCommand.js +36 -0
  8. package/dist-cjs/commands/GetExtensionAssociationCommand.js +36 -0
  9. package/dist-cjs/commands/GetExtensionCommand.js +36 -0
  10. package/dist-cjs/commands/ListExtensionAssociationsCommand.js +36 -0
  11. package/dist-cjs/commands/ListExtensionsCommand.js +36 -0
  12. package/dist-cjs/commands/UpdateExtensionAssociationCommand.js +36 -0
  13. package/dist-cjs/commands/UpdateExtensionCommand.js +36 -0
  14. package/dist-cjs/commands/index.js +10 -0
  15. package/dist-cjs/endpoints.js +19 -2
  16. package/dist-cjs/models/models_0.js +146 -16
  17. package/dist-cjs/pagination/ListExtensionAssociationsPaginator.js +36 -0
  18. package/dist-cjs/pagination/ListExtensionsPaginator.js +36 -0
  19. package/dist-cjs/pagination/index.js +2 -0
  20. package/dist-cjs/protocols/Aws_restJson1.js +1162 -115
  21. package/dist-es/AppConfig.js +150 -0
  22. package/dist-es/commands/CreateExtensionAssociationCommand.js +39 -0
  23. package/dist-es/commands/CreateExtensionCommand.js +39 -0
  24. package/dist-es/commands/DeleteExtensionAssociationCommand.js +39 -0
  25. package/dist-es/commands/DeleteExtensionCommand.js +39 -0
  26. package/dist-es/commands/GetExtensionAssociationCommand.js +39 -0
  27. package/dist-es/commands/GetExtensionCommand.js +39 -0
  28. package/dist-es/commands/ListExtensionAssociationsCommand.js +39 -0
  29. package/dist-es/commands/ListExtensionsCommand.js +39 -0
  30. package/dist-es/commands/UpdateExtensionAssociationCommand.js +39 -0
  31. package/dist-es/commands/UpdateExtensionCommand.js +39 -0
  32. package/dist-es/commands/index.js +10 -0
  33. package/dist-es/endpoints.js +19 -2
  34. package/dist-es/models/models_0.js +103 -13
  35. package/dist-es/pagination/ListExtensionAssociationsPaginator.js +75 -0
  36. package/dist-es/pagination/ListExtensionsPaginator.js +75 -0
  37. package/dist-es/pagination/index.js +2 -0
  38. package/dist-es/protocols/Aws_restJson1.js +1507 -253
  39. package/dist-types/AppConfig.d.ts +159 -51
  40. package/dist-types/AppConfigClient.d.ts +36 -25
  41. package/dist-types/commands/CreateApplicationCommand.d.ts +5 -5
  42. package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +5 -6
  43. package/dist-types/commands/CreateEnvironmentCommand.d.ts +1 -1
  44. package/dist-types/commands/CreateExtensionAssociationCommand.d.ts +47 -0
  45. package/dist-types/commands/CreateExtensionCommand.d.ts +43 -0
  46. package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +2 -1
  47. package/dist-types/commands/DeleteExtensionAssociationCommand.d.ts +36 -0
  48. package/dist-types/commands/DeleteExtensionCommand.d.ts +36 -0
  49. package/dist-types/commands/GetConfigurationCommand.d.ts +6 -5
  50. package/dist-types/commands/GetEnvironmentCommand.d.ts +6 -5
  51. package/dist-types/commands/GetExtensionAssociationCommand.d.ts +38 -0
  52. package/dist-types/commands/GetExtensionCommand.d.ts +35 -0
  53. package/dist-types/commands/ListExtensionAssociationsCommand.d.ts +38 -0
  54. package/dist-types/commands/ListExtensionsCommand.d.ts +38 -0
  55. package/dist-types/commands/TagResourceCommand.d.ts +3 -5
  56. package/dist-types/commands/UpdateExtensionAssociationCommand.d.ts +38 -0
  57. package/dist-types/commands/UpdateExtensionCommand.d.ts +38 -0
  58. package/dist-types/commands/index.d.ts +10 -0
  59. package/dist-types/models/models_0.d.ts +678 -98
  60. package/dist-types/pagination/ListExtensionAssociationsPaginator.d.ts +4 -0
  61. package/dist-types/pagination/ListExtensionsPaginator.d.ts +4 -0
  62. package/dist-types/pagination/index.d.ts +2 -0
  63. package/dist-types/protocols/Aws_restJson1.d.ts +30 -0
  64. package/dist-types/ts3.4/AppConfig.d.ts +50 -0
  65. package/dist-types/ts3.4/AppConfigClient.d.ts +12 -2
  66. package/dist-types/ts3.4/commands/CreateExtensionAssociationCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/CreateExtensionCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/DeleteExtensionAssociationCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/DeleteExtensionCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/GetExtensionAssociationCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/GetExtensionCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/ListExtensionAssociationsCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/ListExtensionsCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/UpdateExtensionAssociationCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/UpdateExtensionCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  77. package/dist-types/ts3.4/models/models_0.d.ts +298 -9
  78. package/dist-types/ts3.4/pagination/ListExtensionAssociationsPaginator.d.ts +4 -0
  79. package/dist-types/ts3.4/pagination/ListExtensionsPaginator.d.ts +4 -0
  80. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  81. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +30 -0
  82. package/package.json +26 -26
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1GetHostedConfigurationVersionCommand = exports.deserializeAws_restJson1GetEnvironmentCommand = exports.deserializeAws_restJson1GetDeploymentStrategyCommand = exports.deserializeAws_restJson1GetDeploymentCommand = exports.deserializeAws_restJson1GetConfigurationProfileCommand = exports.deserializeAws_restJson1GetConfigurationCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = exports.deserializeAws_restJson1DeleteEnvironmentCommand = exports.deserializeAws_restJson1DeleteDeploymentStrategyCommand = exports.deserializeAws_restJson1DeleteConfigurationProfileCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateHostedConfigurationVersionCommand = exports.deserializeAws_restJson1CreateEnvironmentCommand = exports.deserializeAws_restJson1CreateDeploymentStrategyCommand = exports.deserializeAws_restJson1CreateConfigurationProfileCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1ValidateConfigurationCommand = exports.serializeAws_restJson1UpdateEnvironmentCommand = exports.serializeAws_restJson1UpdateDeploymentStrategyCommand = exports.serializeAws_restJson1UpdateConfigurationProfileCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopDeploymentCommand = exports.serializeAws_restJson1StartDeploymentCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListHostedConfigurationVersionsCommand = exports.serializeAws_restJson1ListEnvironmentsCommand = exports.serializeAws_restJson1ListDeploymentStrategiesCommand = exports.serializeAws_restJson1ListDeploymentsCommand = exports.serializeAws_restJson1ListConfigurationProfilesCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetHostedConfigurationVersionCommand = exports.serializeAws_restJson1GetEnvironmentCommand = exports.serializeAws_restJson1GetDeploymentStrategyCommand = exports.serializeAws_restJson1GetDeploymentCommand = exports.serializeAws_restJson1GetConfigurationProfileCommand = exports.serializeAws_restJson1GetConfigurationCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DeleteHostedConfigurationVersionCommand = exports.serializeAws_restJson1DeleteEnvironmentCommand = exports.serializeAws_restJson1DeleteDeploymentStrategyCommand = exports.serializeAws_restJson1DeleteConfigurationProfileCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateHostedConfigurationVersionCommand = exports.serializeAws_restJson1CreateEnvironmentCommand = exports.serializeAws_restJson1CreateDeploymentStrategyCommand = exports.serializeAws_restJson1CreateConfigurationProfileCommand = exports.serializeAws_restJson1CreateApplicationCommand = void 0;
4
- exports.deserializeAws_restJson1ValidateConfigurationCommand = exports.deserializeAws_restJson1UpdateEnvironmentCommand = exports.deserializeAws_restJson1UpdateDeploymentStrategyCommand = exports.deserializeAws_restJson1UpdateConfigurationProfileCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopDeploymentCommand = exports.deserializeAws_restJson1StartDeploymentCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListHostedConfigurationVersionsCommand = exports.deserializeAws_restJson1ListEnvironmentsCommand = exports.deserializeAws_restJson1ListDeploymentStrategiesCommand = exports.deserializeAws_restJson1ListDeploymentsCommand = exports.deserializeAws_restJson1ListConfigurationProfilesCommand = exports.deserializeAws_restJson1ListApplicationsCommand = void 0;
3
+ exports.deserializeAws_restJson1CreateHostedConfigurationVersionCommand = exports.deserializeAws_restJson1CreateExtensionAssociationCommand = exports.deserializeAws_restJson1CreateExtensionCommand = exports.deserializeAws_restJson1CreateEnvironmentCommand = exports.deserializeAws_restJson1CreateDeploymentStrategyCommand = exports.deserializeAws_restJson1CreateConfigurationProfileCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1ValidateConfigurationCommand = exports.serializeAws_restJson1UpdateExtensionAssociationCommand = exports.serializeAws_restJson1UpdateExtensionCommand = exports.serializeAws_restJson1UpdateEnvironmentCommand = exports.serializeAws_restJson1UpdateDeploymentStrategyCommand = exports.serializeAws_restJson1UpdateConfigurationProfileCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopDeploymentCommand = exports.serializeAws_restJson1StartDeploymentCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListHostedConfigurationVersionsCommand = exports.serializeAws_restJson1ListExtensionsCommand = exports.serializeAws_restJson1ListExtensionAssociationsCommand = exports.serializeAws_restJson1ListEnvironmentsCommand = exports.serializeAws_restJson1ListDeploymentStrategiesCommand = exports.serializeAws_restJson1ListDeploymentsCommand = exports.serializeAws_restJson1ListConfigurationProfilesCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetHostedConfigurationVersionCommand = exports.serializeAws_restJson1GetExtensionAssociationCommand = exports.serializeAws_restJson1GetExtensionCommand = exports.serializeAws_restJson1GetEnvironmentCommand = exports.serializeAws_restJson1GetDeploymentStrategyCommand = exports.serializeAws_restJson1GetDeploymentCommand = exports.serializeAws_restJson1GetConfigurationProfileCommand = exports.serializeAws_restJson1GetConfigurationCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DeleteHostedConfigurationVersionCommand = exports.serializeAws_restJson1DeleteExtensionAssociationCommand = exports.serializeAws_restJson1DeleteExtensionCommand = exports.serializeAws_restJson1DeleteEnvironmentCommand = exports.serializeAws_restJson1DeleteDeploymentStrategyCommand = exports.serializeAws_restJson1DeleteConfigurationProfileCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateHostedConfigurationVersionCommand = exports.serializeAws_restJson1CreateExtensionAssociationCommand = exports.serializeAws_restJson1CreateExtensionCommand = exports.serializeAws_restJson1CreateEnvironmentCommand = exports.serializeAws_restJson1CreateDeploymentStrategyCommand = exports.serializeAws_restJson1CreateConfigurationProfileCommand = exports.serializeAws_restJson1CreateApplicationCommand = void 0;
4
+ exports.deserializeAws_restJson1ValidateConfigurationCommand = exports.deserializeAws_restJson1UpdateExtensionAssociationCommand = exports.deserializeAws_restJson1UpdateExtensionCommand = exports.deserializeAws_restJson1UpdateEnvironmentCommand = exports.deserializeAws_restJson1UpdateDeploymentStrategyCommand = exports.deserializeAws_restJson1UpdateConfigurationProfileCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopDeploymentCommand = exports.deserializeAws_restJson1StartDeploymentCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListHostedConfigurationVersionsCommand = exports.deserializeAws_restJson1ListExtensionsCommand = exports.deserializeAws_restJson1ListExtensionAssociationsCommand = exports.deserializeAws_restJson1ListEnvironmentsCommand = exports.deserializeAws_restJson1ListDeploymentStrategiesCommand = exports.deserializeAws_restJson1ListDeploymentsCommand = exports.deserializeAws_restJson1ListConfigurationProfilesCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1GetHostedConfigurationVersionCommand = exports.deserializeAws_restJson1GetExtensionAssociationCommand = exports.deserializeAws_restJson1GetExtensionCommand = exports.deserializeAws_restJson1GetEnvironmentCommand = exports.deserializeAws_restJson1GetDeploymentStrategyCommand = exports.deserializeAws_restJson1GetDeploymentCommand = exports.deserializeAws_restJson1GetConfigurationProfileCommand = exports.deserializeAws_restJson1GetConfigurationCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = exports.deserializeAws_restJson1DeleteExtensionAssociationCommand = exports.deserializeAws_restJson1DeleteExtensionCommand = exports.deserializeAws_restJson1DeleteEnvironmentCommand = exports.deserializeAws_restJson1DeleteDeploymentStrategyCommand = exports.deserializeAws_restJson1DeleteConfigurationProfileCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const AppConfigServiceException_1 = require("../models/AppConfigServiceException");
@@ -14,9 +14,9 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
14
14
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
15
15
  let body;
16
16
  body = JSON.stringify({
17
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
18
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
19
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
17
+ ...(input.Description != null && { Description: input.Description }),
18
+ ...(input.Name != null && { Name: input.Name }),
19
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
20
20
  });
21
21
  return new protocol_http_1.HttpRequest({
22
22
  protocol,
@@ -48,15 +48,13 @@ const serializeAws_restJson1CreateConfigurationProfileCommand = async (input, co
48
48
  }
49
49
  let body;
50
50
  body = JSON.stringify({
51
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
52
- ...(input.LocationUri !== undefined && input.LocationUri !== null && { LocationUri: input.LocationUri }),
53
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
54
- ...(input.RetrievalRoleArn !== undefined &&
55
- input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn }),
56
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
57
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
58
- ...(input.Validators !== undefined &&
59
- input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
51
+ ...(input.Description != null && { Description: input.Description }),
52
+ ...(input.LocationUri != null && { LocationUri: input.LocationUri }),
53
+ ...(input.Name != null && { Name: input.Name }),
54
+ ...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
55
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
56
+ ...(input.Type != null && { Type: input.Type }),
57
+ ...(input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
60
58
  });
61
59
  return new protocol_http_1.HttpRequest({
62
60
  protocol,
@@ -77,17 +75,16 @@ const serializeAws_restJson1CreateDeploymentStrategyCommand = async (input, cont
77
75
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies";
78
76
  let body;
79
77
  body = JSON.stringify({
80
- ...(input.DeploymentDurationInMinutes !== undefined &&
81
- input.DeploymentDurationInMinutes !== null && { DeploymentDurationInMinutes: input.DeploymentDurationInMinutes }),
82
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
83
- ...(input.FinalBakeTimeInMinutes !== undefined &&
84
- input.FinalBakeTimeInMinutes !== null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
85
- ...(input.GrowthFactor !== undefined &&
86
- input.GrowthFactor !== null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
87
- ...(input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType }),
88
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
89
- ...(input.ReplicateTo !== undefined && input.ReplicateTo !== null && { ReplicateTo: input.ReplicateTo }),
90
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
78
+ ...(input.DeploymentDurationInMinutes != null && {
79
+ DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
80
+ }),
81
+ ...(input.Description != null && { Description: input.Description }),
82
+ ...(input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
83
+ ...(input.GrowthFactor != null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
84
+ ...(input.GrowthType != null && { GrowthType: input.GrowthType }),
85
+ ...(input.Name != null && { Name: input.Name }),
86
+ ...(input.ReplicateTo != null && { ReplicateTo: input.ReplicateTo }),
87
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
91
88
  });
92
89
  return new protocol_http_1.HttpRequest({
93
90
  protocol,
@@ -119,11 +116,10 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
119
116
  }
120
117
  let body;
121
118
  body = JSON.stringify({
122
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
123
- ...(input.Monitors !== undefined &&
124
- input.Monitors !== null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) }),
125
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
126
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
119
+ ...(input.Description != null && { Description: input.Description }),
120
+ ...(input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) }),
121
+ ...(input.Name != null && { Name: input.Name }),
122
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
127
123
  });
128
124
  return new protocol_http_1.HttpRequest({
129
125
  protocol,
@@ -136,6 +132,59 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
136
132
  });
137
133
  };
138
134
  exports.serializeAws_restJson1CreateEnvironmentCommand = serializeAws_restJson1CreateEnvironmentCommand;
135
+ const serializeAws_restJson1CreateExtensionCommand = async (input, context) => {
136
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
137
+ const headers = {
138
+ "content-type": "application/json",
139
+ ...(isSerializableHeaderValue(input.LatestVersionNumber) && {
140
+ "latest-version-number": input.LatestVersionNumber.toString(),
141
+ }),
142
+ };
143
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/extensions";
144
+ let body;
145
+ body = JSON.stringify({
146
+ ...(input.Actions != null && { Actions: serializeAws_restJson1ActionsMap(input.Actions, context) }),
147
+ ...(input.Description != null && { Description: input.Description }),
148
+ ...(input.Name != null && { Name: input.Name }),
149
+ ...(input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) }),
150
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
151
+ });
152
+ return new protocol_http_1.HttpRequest({
153
+ protocol,
154
+ hostname,
155
+ port,
156
+ method: "POST",
157
+ headers,
158
+ path: resolvedPath,
159
+ body,
160
+ });
161
+ };
162
+ exports.serializeAws_restJson1CreateExtensionCommand = serializeAws_restJson1CreateExtensionCommand;
163
+ const serializeAws_restJson1CreateExtensionAssociationCommand = async (input, context) => {
164
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
165
+ const headers = {
166
+ "content-type": "application/json",
167
+ };
168
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/extensionassociations";
169
+ let body;
170
+ body = JSON.stringify({
171
+ ...(input.ExtensionIdentifier != null && { ExtensionIdentifier: input.ExtensionIdentifier }),
172
+ ...(input.ExtensionVersionNumber != null && { ExtensionVersionNumber: input.ExtensionVersionNumber }),
173
+ ...(input.Parameters != null && { Parameters: serializeAws_restJson1ParameterValueMap(input.Parameters, context) }),
174
+ ...(input.ResourceIdentifier != null && { ResourceIdentifier: input.ResourceIdentifier }),
175
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
176
+ });
177
+ return new protocol_http_1.HttpRequest({
178
+ protocol,
179
+ hostname,
180
+ port,
181
+ method: "POST",
182
+ headers,
183
+ path: resolvedPath,
184
+ body,
185
+ });
186
+ };
187
+ exports.serializeAws_restJson1CreateExtensionAssociationCommand = serializeAws_restJson1CreateExtensionAssociationCommand;
139
188
  const serializeAws_restJson1CreateHostedConfigurationVersionCommand = async (input, context) => {
140
189
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
190
  const headers = {
@@ -310,6 +359,63 @@ const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) =>
310
359
  });
311
360
  };
312
361
  exports.serializeAws_restJson1DeleteEnvironmentCommand = serializeAws_restJson1DeleteEnvironmentCommand;
362
+ const serializeAws_restJson1DeleteExtensionCommand = async (input, context) => {
363
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
+ const headers = {};
365
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
366
+ if (input.ExtensionIdentifier !== undefined) {
367
+ const labelValue = input.ExtensionIdentifier;
368
+ if (labelValue.length <= 0) {
369
+ throw new Error("Empty value provided for input HTTP label: ExtensionIdentifier.");
370
+ }
371
+ resolvedPath = resolvedPath.replace("{ExtensionIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
372
+ }
373
+ else {
374
+ throw new Error("No value provided for input HTTP label: ExtensionIdentifier.");
375
+ }
376
+ const query = {
377
+ ...(input.VersionNumber !== undefined && { version: input.VersionNumber.toString() }),
378
+ };
379
+ let body;
380
+ return new protocol_http_1.HttpRequest({
381
+ protocol,
382
+ hostname,
383
+ port,
384
+ method: "DELETE",
385
+ headers,
386
+ path: resolvedPath,
387
+ query,
388
+ body,
389
+ });
390
+ };
391
+ exports.serializeAws_restJson1DeleteExtensionCommand = serializeAws_restJson1DeleteExtensionCommand;
392
+ const serializeAws_restJson1DeleteExtensionAssociationCommand = async (input, context) => {
393
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
394
+ const headers = {};
395
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
396
+ "/extensionassociations/{ExtensionAssociationId}";
397
+ if (input.ExtensionAssociationId !== undefined) {
398
+ const labelValue = input.ExtensionAssociationId;
399
+ if (labelValue.length <= 0) {
400
+ throw new Error("Empty value provided for input HTTP label: ExtensionAssociationId.");
401
+ }
402
+ resolvedPath = resolvedPath.replace("{ExtensionAssociationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
403
+ }
404
+ else {
405
+ throw new Error("No value provided for input HTTP label: ExtensionAssociationId.");
406
+ }
407
+ let body;
408
+ return new protocol_http_1.HttpRequest({
409
+ protocol,
410
+ hostname,
411
+ port,
412
+ method: "DELETE",
413
+ headers,
414
+ path: resolvedPath,
415
+ body,
416
+ });
417
+ };
418
+ exports.serializeAws_restJson1DeleteExtensionAssociationCommand = serializeAws_restJson1DeleteExtensionAssociationCommand;
313
419
  const serializeAws_restJson1DeleteHostedConfigurationVersionCommand = async (input, context) => {
314
420
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
421
  const headers = {};
@@ -585,6 +691,63 @@ const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
585
691
  });
586
692
  };
587
693
  exports.serializeAws_restJson1GetEnvironmentCommand = serializeAws_restJson1GetEnvironmentCommand;
694
+ const serializeAws_restJson1GetExtensionCommand = async (input, context) => {
695
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
696
+ const headers = {};
697
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
698
+ if (input.ExtensionIdentifier !== undefined) {
699
+ const labelValue = input.ExtensionIdentifier;
700
+ if (labelValue.length <= 0) {
701
+ throw new Error("Empty value provided for input HTTP label: ExtensionIdentifier.");
702
+ }
703
+ resolvedPath = resolvedPath.replace("{ExtensionIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
704
+ }
705
+ else {
706
+ throw new Error("No value provided for input HTTP label: ExtensionIdentifier.");
707
+ }
708
+ const query = {
709
+ ...(input.VersionNumber !== undefined && { version_number: input.VersionNumber.toString() }),
710
+ };
711
+ let body;
712
+ return new protocol_http_1.HttpRequest({
713
+ protocol,
714
+ hostname,
715
+ port,
716
+ method: "GET",
717
+ headers,
718
+ path: resolvedPath,
719
+ query,
720
+ body,
721
+ });
722
+ };
723
+ exports.serializeAws_restJson1GetExtensionCommand = serializeAws_restJson1GetExtensionCommand;
724
+ const serializeAws_restJson1GetExtensionAssociationCommand = async (input, context) => {
725
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
726
+ const headers = {};
727
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
728
+ "/extensionassociations/{ExtensionAssociationId}";
729
+ if (input.ExtensionAssociationId !== undefined) {
730
+ const labelValue = input.ExtensionAssociationId;
731
+ if (labelValue.length <= 0) {
732
+ throw new Error("Empty value provided for input HTTP label: ExtensionAssociationId.");
733
+ }
734
+ resolvedPath = resolvedPath.replace("{ExtensionAssociationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
735
+ }
736
+ else {
737
+ throw new Error("No value provided for input HTTP label: ExtensionAssociationId.");
738
+ }
739
+ let body;
740
+ return new protocol_http_1.HttpRequest({
741
+ protocol,
742
+ hostname,
743
+ port,
744
+ method: "GET",
745
+ headers,
746
+ path: resolvedPath,
747
+ body,
748
+ });
749
+ };
750
+ exports.serializeAws_restJson1GetExtensionAssociationCommand = serializeAws_restJson1GetExtensionAssociationCommand;
588
751
  const serializeAws_restJson1GetHostedConfigurationVersionCommand = async (input, context) => {
589
752
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
590
753
  const headers = {};
@@ -781,6 +944,54 @@ const serializeAws_restJson1ListEnvironmentsCommand = async (input, context) =>
781
944
  });
782
945
  };
783
946
  exports.serializeAws_restJson1ListEnvironmentsCommand = serializeAws_restJson1ListEnvironmentsCommand;
947
+ const serializeAws_restJson1ListExtensionAssociationsCommand = async (input, context) => {
948
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
949
+ const headers = {};
950
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/extensionassociations";
951
+ const query = {
952
+ ...(input.ResourceIdentifier !== undefined && { resource_identifier: input.ResourceIdentifier }),
953
+ ...(input.ExtensionIdentifier !== undefined && { extension_identifier: input.ExtensionIdentifier }),
954
+ ...(input.ExtensionVersionNumber !== undefined && {
955
+ extension_version_number: input.ExtensionVersionNumber.toString(),
956
+ }),
957
+ ...(input.MaxResults !== undefined && { max_results: input.MaxResults.toString() }),
958
+ ...(input.NextToken !== undefined && { next_token: input.NextToken }),
959
+ };
960
+ let body;
961
+ return new protocol_http_1.HttpRequest({
962
+ protocol,
963
+ hostname,
964
+ port,
965
+ method: "GET",
966
+ headers,
967
+ path: resolvedPath,
968
+ query,
969
+ body,
970
+ });
971
+ };
972
+ exports.serializeAws_restJson1ListExtensionAssociationsCommand = serializeAws_restJson1ListExtensionAssociationsCommand;
973
+ const serializeAws_restJson1ListExtensionsCommand = async (input, context) => {
974
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
975
+ const headers = {};
976
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/extensions";
977
+ const query = {
978
+ ...(input.MaxResults !== undefined && { max_results: input.MaxResults.toString() }),
979
+ ...(input.NextToken !== undefined && { next_token: input.NextToken }),
980
+ ...(input.Name !== undefined && { name: input.Name }),
981
+ };
982
+ let body;
983
+ return new protocol_http_1.HttpRequest({
984
+ protocol,
985
+ hostname,
986
+ port,
987
+ method: "GET",
988
+ headers,
989
+ path: resolvedPath,
990
+ query,
991
+ body,
992
+ });
993
+ };
994
+ exports.serializeAws_restJson1ListExtensionsCommand = serializeAws_restJson1ListExtensionsCommand;
784
995
  const serializeAws_restJson1ListHostedConfigurationVersionsCommand = async (input, context) => {
785
996
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
786
997
  const headers = {};
@@ -878,14 +1089,11 @@ const serializeAws_restJson1StartDeploymentCommand = async (input, context) => {
878
1089
  }
879
1090
  let body;
880
1091
  body = JSON.stringify({
881
- ...(input.ConfigurationProfileId !== undefined &&
882
- input.ConfigurationProfileId !== null && { ConfigurationProfileId: input.ConfigurationProfileId }),
883
- ...(input.ConfigurationVersion !== undefined &&
884
- input.ConfigurationVersion !== null && { ConfigurationVersion: input.ConfigurationVersion }),
885
- ...(input.DeploymentStrategyId !== undefined &&
886
- input.DeploymentStrategyId !== null && { DeploymentStrategyId: input.DeploymentStrategyId }),
887
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
888
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1092
+ ...(input.ConfigurationProfileId != null && { ConfigurationProfileId: input.ConfigurationProfileId }),
1093
+ ...(input.ConfigurationVersion != null && { ConfigurationVersion: input.ConfigurationVersion }),
1094
+ ...(input.DeploymentStrategyId != null && { DeploymentStrategyId: input.DeploymentStrategyId }),
1095
+ ...(input.Description != null && { Description: input.Description }),
1096
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
889
1097
  });
890
1098
  return new protocol_http_1.HttpRequest({
891
1099
  protocol,
@@ -963,7 +1171,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
963
1171
  }
964
1172
  let body;
965
1173
  body = JSON.stringify({
966
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1174
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
967
1175
  });
968
1176
  return new protocol_http_1.HttpRequest({
969
1177
  protocol,
@@ -1024,8 +1232,8 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
1024
1232
  }
1025
1233
  let body;
1026
1234
  body = JSON.stringify({
1027
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1028
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1235
+ ...(input.Description != null && { Description: input.Description }),
1236
+ ...(input.Name != null && { Name: input.Name }),
1029
1237
  });
1030
1238
  return new protocol_http_1.HttpRequest({
1031
1239
  protocol,
@@ -1067,12 +1275,10 @@ const serializeAws_restJson1UpdateConfigurationProfileCommand = async (input, co
1067
1275
  }
1068
1276
  let body;
1069
1277
  body = JSON.stringify({
1070
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1071
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1072
- ...(input.RetrievalRoleArn !== undefined &&
1073
- input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn }),
1074
- ...(input.Validators !== undefined &&
1075
- input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
1278
+ ...(input.Description != null && { Description: input.Description }),
1279
+ ...(input.Name != null && { Name: input.Name }),
1280
+ ...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
1281
+ ...(input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
1076
1282
  });
1077
1283
  return new protocol_http_1.HttpRequest({
1078
1284
  protocol,
@@ -1104,14 +1310,13 @@ const serializeAws_restJson1UpdateDeploymentStrategyCommand = async (input, cont
1104
1310
  }
1105
1311
  let body;
1106
1312
  body = JSON.stringify({
1107
- ...(input.DeploymentDurationInMinutes !== undefined &&
1108
- input.DeploymentDurationInMinutes !== null && { DeploymentDurationInMinutes: input.DeploymentDurationInMinutes }),
1109
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1110
- ...(input.FinalBakeTimeInMinutes !== undefined &&
1111
- input.FinalBakeTimeInMinutes !== null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
1112
- ...(input.GrowthFactor !== undefined &&
1113
- input.GrowthFactor !== null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
1114
- ...(input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType }),
1313
+ ...(input.DeploymentDurationInMinutes != null && {
1314
+ DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
1315
+ }),
1316
+ ...(input.Description != null && { Description: input.Description }),
1317
+ ...(input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
1318
+ ...(input.GrowthFactor != null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
1319
+ ...(input.GrowthType != null && { GrowthType: input.GrowthType }),
1115
1320
  });
1116
1321
  return new protocol_http_1.HttpRequest({
1117
1322
  protocol,
@@ -1153,10 +1358,9 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
1153
1358
  }
1154
1359
  let body;
1155
1360
  body = JSON.stringify({
1156
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1157
- ...(input.Monitors !== undefined &&
1158
- input.Monitors !== null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) }),
1159
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1361
+ ...(input.Description != null && { Description: input.Description }),
1362
+ ...(input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) }),
1363
+ ...(input.Name != null && { Name: input.Name }),
1160
1364
  });
1161
1365
  return new protocol_http_1.HttpRequest({
1162
1366
  protocol,
@@ -1169,6 +1373,72 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
1169
1373
  });
1170
1374
  };
1171
1375
  exports.serializeAws_restJson1UpdateEnvironmentCommand = serializeAws_restJson1UpdateEnvironmentCommand;
1376
+ const serializeAws_restJson1UpdateExtensionCommand = async (input, context) => {
1377
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1378
+ const headers = {
1379
+ "content-type": "application/json",
1380
+ };
1381
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
1382
+ if (input.ExtensionIdentifier !== undefined) {
1383
+ const labelValue = input.ExtensionIdentifier;
1384
+ if (labelValue.length <= 0) {
1385
+ throw new Error("Empty value provided for input HTTP label: ExtensionIdentifier.");
1386
+ }
1387
+ resolvedPath = resolvedPath.replace("{ExtensionIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1388
+ }
1389
+ else {
1390
+ throw new Error("No value provided for input HTTP label: ExtensionIdentifier.");
1391
+ }
1392
+ let body;
1393
+ body = JSON.stringify({
1394
+ ...(input.Actions != null && { Actions: serializeAws_restJson1ActionsMap(input.Actions, context) }),
1395
+ ...(input.Description != null && { Description: input.Description }),
1396
+ ...(input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) }),
1397
+ ...(input.VersionNumber != null && { VersionNumber: input.VersionNumber }),
1398
+ });
1399
+ return new protocol_http_1.HttpRequest({
1400
+ protocol,
1401
+ hostname,
1402
+ port,
1403
+ method: "PATCH",
1404
+ headers,
1405
+ path: resolvedPath,
1406
+ body,
1407
+ });
1408
+ };
1409
+ exports.serializeAws_restJson1UpdateExtensionCommand = serializeAws_restJson1UpdateExtensionCommand;
1410
+ const serializeAws_restJson1UpdateExtensionAssociationCommand = async (input, context) => {
1411
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1412
+ const headers = {
1413
+ "content-type": "application/json",
1414
+ };
1415
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1416
+ "/extensionassociations/{ExtensionAssociationId}";
1417
+ if (input.ExtensionAssociationId !== undefined) {
1418
+ const labelValue = input.ExtensionAssociationId;
1419
+ if (labelValue.length <= 0) {
1420
+ throw new Error("Empty value provided for input HTTP label: ExtensionAssociationId.");
1421
+ }
1422
+ resolvedPath = resolvedPath.replace("{ExtensionAssociationId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1423
+ }
1424
+ else {
1425
+ throw new Error("No value provided for input HTTP label: ExtensionAssociationId.");
1426
+ }
1427
+ let body;
1428
+ body = JSON.stringify({
1429
+ ...(input.Parameters != null && { Parameters: serializeAws_restJson1ParameterValueMap(input.Parameters, context) }),
1430
+ });
1431
+ return new protocol_http_1.HttpRequest({
1432
+ protocol,
1433
+ hostname,
1434
+ port,
1435
+ method: "PATCH",
1436
+ headers,
1437
+ path: resolvedPath,
1438
+ body,
1439
+ });
1440
+ };
1441
+ exports.serializeAws_restJson1UpdateExtensionAssociationCommand = serializeAws_restJson1UpdateExtensionAssociationCommand;
1172
1442
  const serializeAws_restJson1ValidateConfigurationCommand = async (input, context) => {
1173
1443
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1174
1444
  const headers = {};
@@ -1464,40 +1734,46 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
1464
1734
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1465
1735
  }
1466
1736
  };
1467
- const deserializeAws_restJson1CreateHostedConfigurationVersionCommand = async (output, context) => {
1737
+ const deserializeAws_restJson1CreateExtensionCommand = async (output, context) => {
1468
1738
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1469
- return deserializeAws_restJson1CreateHostedConfigurationVersionCommandError(output, context);
1739
+ return deserializeAws_restJson1CreateExtensionCommandError(output, context);
1470
1740
  }
1471
1741
  const contents = {
1472
1742
  $metadata: deserializeMetadata(output),
1473
- ApplicationId: undefined,
1474
- ConfigurationProfileId: undefined,
1475
- Content: undefined,
1476
- ContentType: undefined,
1743
+ Actions: undefined,
1744
+ Arn: undefined,
1477
1745
  Description: undefined,
1746
+ Id: undefined,
1747
+ Name: undefined,
1748
+ Parameters: undefined,
1478
1749
  VersionNumber: undefined,
1479
1750
  };
1480
- if (output.headers["application-id"] !== undefined) {
1481
- contents.ApplicationId = output.headers["application-id"];
1751
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1752
+ if (data.Actions !== undefined && data.Actions !== null) {
1753
+ contents.Actions = deserializeAws_restJson1ActionsMap(data.Actions, context);
1482
1754
  }
1483
- if (output.headers["configuration-profile-id"] !== undefined) {
1484
- contents.ConfigurationProfileId = output.headers["configuration-profile-id"];
1755
+ if (data.Arn !== undefined && data.Arn !== null) {
1756
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1485
1757
  }
1486
- if (output.headers["version-number"] !== undefined) {
1487
- contents.VersionNumber = (0, smithy_client_1.strictParseInt32)(output.headers["version-number"]);
1758
+ if (data.Description !== undefined && data.Description !== null) {
1759
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
1488
1760
  }
1489
- if (output.headers["description"] !== undefined) {
1490
- contents.Description = output.headers["description"];
1761
+ if (data.Id !== undefined && data.Id !== null) {
1762
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1491
1763
  }
1492
- if (output.headers["content-type"] !== undefined) {
1493
- contents.ContentType = output.headers["content-type"];
1764
+ if (data.Name !== undefined && data.Name !== null) {
1765
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
1766
+ }
1767
+ if (data.Parameters !== undefined && data.Parameters !== null) {
1768
+ contents.Parameters = deserializeAws_restJson1ParameterMap(data.Parameters, context);
1769
+ }
1770
+ if (data.VersionNumber !== undefined && data.VersionNumber !== null) {
1771
+ contents.VersionNumber = (0, smithy_client_1.expectInt32)(data.VersionNumber);
1494
1772
  }
1495
- const data = await collectBody(output.body, context);
1496
- contents.Content = data;
1497
1773
  return Promise.resolve(contents);
1498
1774
  };
1499
- exports.deserializeAws_restJson1CreateHostedConfigurationVersionCommand = deserializeAws_restJson1CreateHostedConfigurationVersionCommand;
1500
- const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = async (output, context) => {
1775
+ exports.deserializeAws_restJson1CreateExtensionCommand = deserializeAws_restJson1CreateExtensionCommand;
1776
+ const deserializeAws_restJson1CreateExtensionCommandError = async (output, context) => {
1501
1777
  const parsedOutput = {
1502
1778
  ...output,
1503
1779
  body: await parseBody(output.body, context),
@@ -1514,12 +1790,6 @@ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = asy
1514
1790
  case "InternalServerException":
1515
1791
  case "com.amazonaws.appconfig#InternalServerException":
1516
1792
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1517
- case "PayloadTooLargeException":
1518
- case "com.amazonaws.appconfig#PayloadTooLargeException":
1519
- throw await deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context);
1520
- case "ResourceNotFoundException":
1521
- case "com.amazonaws.appconfig#ResourceNotFoundException":
1522
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1523
1793
  case "ServiceQuotaExceededException":
1524
1794
  case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1525
1795
  throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
@@ -1535,18 +1805,42 @@ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = asy
1535
1805
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1536
1806
  }
1537
1807
  };
1538
- const deserializeAws_restJson1DeleteApplicationCommand = async (output, context) => {
1539
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1540
- return deserializeAws_restJson1DeleteApplicationCommandError(output, context);
1808
+ const deserializeAws_restJson1CreateExtensionAssociationCommand = async (output, context) => {
1809
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1810
+ return deserializeAws_restJson1CreateExtensionAssociationCommandError(output, context);
1541
1811
  }
1542
1812
  const contents = {
1543
1813
  $metadata: deserializeMetadata(output),
1814
+ Arn: undefined,
1815
+ ExtensionArn: undefined,
1816
+ ExtensionVersionNumber: undefined,
1817
+ Id: undefined,
1818
+ Parameters: undefined,
1819
+ ResourceArn: undefined,
1544
1820
  };
1545
- await collectBody(output.body, context);
1821
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1822
+ if (data.Arn !== undefined && data.Arn !== null) {
1823
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1824
+ }
1825
+ if (data.ExtensionArn !== undefined && data.ExtensionArn !== null) {
1826
+ contents.ExtensionArn = (0, smithy_client_1.expectString)(data.ExtensionArn);
1827
+ }
1828
+ if (data.ExtensionVersionNumber !== undefined && data.ExtensionVersionNumber !== null) {
1829
+ contents.ExtensionVersionNumber = (0, smithy_client_1.expectInt32)(data.ExtensionVersionNumber);
1830
+ }
1831
+ if (data.Id !== undefined && data.Id !== null) {
1832
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1833
+ }
1834
+ if (data.Parameters !== undefined && data.Parameters !== null) {
1835
+ contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
1836
+ }
1837
+ if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
1838
+ contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
1839
+ }
1546
1840
  return Promise.resolve(contents);
1547
1841
  };
1548
- exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJson1DeleteApplicationCommand;
1549
- const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
1842
+ exports.deserializeAws_restJson1CreateExtensionAssociationCommand = deserializeAws_restJson1CreateExtensionAssociationCommand;
1843
+ const deserializeAws_restJson1CreateExtensionAssociationCommandError = async (output, context) => {
1550
1844
  const parsedOutput = {
1551
1845
  ...output,
1552
1846
  body: await parseBody(output.body, context),
@@ -1563,7 +1857,121 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
1563
1857
  case "ResourceNotFoundException":
1564
1858
  case "com.amazonaws.appconfig#ResourceNotFoundException":
1565
1859
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1566
- default:
1860
+ case "ServiceQuotaExceededException":
1861
+ case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1862
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1863
+ default:
1864
+ const parsedBody = parsedOutput.body;
1865
+ const $metadata = deserializeMetadata(output);
1866
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1867
+ response = new AppConfigServiceException_1.AppConfigServiceException({
1868
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1869
+ $fault: "client",
1870
+ $metadata,
1871
+ });
1872
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1873
+ }
1874
+ };
1875
+ const deserializeAws_restJson1CreateHostedConfigurationVersionCommand = async (output, context) => {
1876
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1877
+ return deserializeAws_restJson1CreateHostedConfigurationVersionCommandError(output, context);
1878
+ }
1879
+ const contents = {
1880
+ $metadata: deserializeMetadata(output),
1881
+ ApplicationId: undefined,
1882
+ ConfigurationProfileId: undefined,
1883
+ Content: undefined,
1884
+ ContentType: undefined,
1885
+ Description: undefined,
1886
+ VersionNumber: undefined,
1887
+ };
1888
+ if (output.headers["application-id"] !== undefined) {
1889
+ contents.ApplicationId = output.headers["application-id"];
1890
+ }
1891
+ if (output.headers["configuration-profile-id"] !== undefined) {
1892
+ contents.ConfigurationProfileId = output.headers["configuration-profile-id"];
1893
+ }
1894
+ if (output.headers["version-number"] !== undefined) {
1895
+ contents.VersionNumber = (0, smithy_client_1.strictParseInt32)(output.headers["version-number"]);
1896
+ }
1897
+ if (output.headers["description"] !== undefined) {
1898
+ contents.Description = output.headers["description"];
1899
+ }
1900
+ if (output.headers["content-type"] !== undefined) {
1901
+ contents.ContentType = output.headers["content-type"];
1902
+ }
1903
+ const data = await collectBody(output.body, context);
1904
+ contents.Content = data;
1905
+ return Promise.resolve(contents);
1906
+ };
1907
+ exports.deserializeAws_restJson1CreateHostedConfigurationVersionCommand = deserializeAws_restJson1CreateHostedConfigurationVersionCommand;
1908
+ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = async (output, context) => {
1909
+ const parsedOutput = {
1910
+ ...output,
1911
+ body: await parseBody(output.body, context),
1912
+ };
1913
+ let response;
1914
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1915
+ switch (errorCode) {
1916
+ case "BadRequestException":
1917
+ case "com.amazonaws.appconfig#BadRequestException":
1918
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1919
+ case "ConflictException":
1920
+ case "com.amazonaws.appconfig#ConflictException":
1921
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1922
+ case "InternalServerException":
1923
+ case "com.amazonaws.appconfig#InternalServerException":
1924
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1925
+ case "PayloadTooLargeException":
1926
+ case "com.amazonaws.appconfig#PayloadTooLargeException":
1927
+ throw await deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context);
1928
+ case "ResourceNotFoundException":
1929
+ case "com.amazonaws.appconfig#ResourceNotFoundException":
1930
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1931
+ case "ServiceQuotaExceededException":
1932
+ case "com.amazonaws.appconfig#ServiceQuotaExceededException":
1933
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1934
+ default:
1935
+ const parsedBody = parsedOutput.body;
1936
+ const $metadata = deserializeMetadata(output);
1937
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1938
+ response = new AppConfigServiceException_1.AppConfigServiceException({
1939
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1940
+ $fault: "client",
1941
+ $metadata,
1942
+ });
1943
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1944
+ }
1945
+ };
1946
+ const deserializeAws_restJson1DeleteApplicationCommand = async (output, context) => {
1947
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1948
+ return deserializeAws_restJson1DeleteApplicationCommandError(output, context);
1949
+ }
1950
+ const contents = {
1951
+ $metadata: deserializeMetadata(output),
1952
+ };
1953
+ await collectBody(output.body, context);
1954
+ return Promise.resolve(contents);
1955
+ };
1956
+ exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJson1DeleteApplicationCommand;
1957
+ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
1958
+ const parsedOutput = {
1959
+ ...output,
1960
+ body: await parseBody(output.body, context),
1961
+ };
1962
+ let response;
1963
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1964
+ switch (errorCode) {
1965
+ case "BadRequestException":
1966
+ case "com.amazonaws.appconfig#BadRequestException":
1967
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1968
+ case "InternalServerException":
1969
+ case "com.amazonaws.appconfig#InternalServerException":
1970
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1971
+ case "ResourceNotFoundException":
1972
+ case "com.amazonaws.appconfig#ResourceNotFoundException":
1973
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1974
+ default:
1567
1975
  const parsedBody = parsedOutput.body;
1568
1976
  const $metadata = deserializeMetadata(output);
1569
1977
  const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
@@ -1701,6 +2109,86 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
1701
2109
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1702
2110
  }
1703
2111
  };
2112
+ const deserializeAws_restJson1DeleteExtensionCommand = async (output, context) => {
2113
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2114
+ return deserializeAws_restJson1DeleteExtensionCommandError(output, context);
2115
+ }
2116
+ const contents = {
2117
+ $metadata: deserializeMetadata(output),
2118
+ };
2119
+ await collectBody(output.body, context);
2120
+ return Promise.resolve(contents);
2121
+ };
2122
+ exports.deserializeAws_restJson1DeleteExtensionCommand = deserializeAws_restJson1DeleteExtensionCommand;
2123
+ const deserializeAws_restJson1DeleteExtensionCommandError = async (output, context) => {
2124
+ const parsedOutput = {
2125
+ ...output,
2126
+ body: await parseBody(output.body, context),
2127
+ };
2128
+ let response;
2129
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2130
+ switch (errorCode) {
2131
+ case "BadRequestException":
2132
+ case "com.amazonaws.appconfig#BadRequestException":
2133
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2134
+ case "InternalServerException":
2135
+ case "com.amazonaws.appconfig#InternalServerException":
2136
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2137
+ case "ResourceNotFoundException":
2138
+ case "com.amazonaws.appconfig#ResourceNotFoundException":
2139
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2140
+ default:
2141
+ const parsedBody = parsedOutput.body;
2142
+ const $metadata = deserializeMetadata(output);
2143
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2144
+ response = new AppConfigServiceException_1.AppConfigServiceException({
2145
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2146
+ $fault: "client",
2147
+ $metadata,
2148
+ });
2149
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2150
+ }
2151
+ };
2152
+ const deserializeAws_restJson1DeleteExtensionAssociationCommand = async (output, context) => {
2153
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2154
+ return deserializeAws_restJson1DeleteExtensionAssociationCommandError(output, context);
2155
+ }
2156
+ const contents = {
2157
+ $metadata: deserializeMetadata(output),
2158
+ };
2159
+ await collectBody(output.body, context);
2160
+ return Promise.resolve(contents);
2161
+ };
2162
+ exports.deserializeAws_restJson1DeleteExtensionAssociationCommand = deserializeAws_restJson1DeleteExtensionAssociationCommand;
2163
+ const deserializeAws_restJson1DeleteExtensionAssociationCommandError = async (output, context) => {
2164
+ const parsedOutput = {
2165
+ ...output,
2166
+ body: await parseBody(output.body, context),
2167
+ };
2168
+ let response;
2169
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2170
+ switch (errorCode) {
2171
+ case "BadRequestException":
2172
+ case "com.amazonaws.appconfig#BadRequestException":
2173
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2174
+ case "InternalServerException":
2175
+ case "com.amazonaws.appconfig#InternalServerException":
2176
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2177
+ case "ResourceNotFoundException":
2178
+ case "com.amazonaws.appconfig#ResourceNotFoundException":
2179
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2180
+ default:
2181
+ const parsedBody = parsedOutput.body;
2182
+ const $metadata = deserializeMetadata(output);
2183
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2184
+ response = new AppConfigServiceException_1.AppConfigServiceException({
2185
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2186
+ $fault: "client",
2187
+ $metadata,
2188
+ });
2189
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2190
+ }
2191
+ };
1704
2192
  const deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = async (output, context) => {
1705
2193
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1706
2194
  return deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError(output, context);
@@ -1922,6 +2410,7 @@ const deserializeAws_restJson1GetDeploymentCommand = async (output, context) =>
1922
2410
  const contents = {
1923
2411
  $metadata: deserializeMetadata(output),
1924
2412
  ApplicationId: undefined,
2413
+ AppliedExtensions: undefined,
1925
2414
  CompletedAt: undefined,
1926
2415
  ConfigurationLocationUri: undefined,
1927
2416
  ConfigurationName: undefined,
@@ -1944,6 +2433,9 @@ const deserializeAws_restJson1GetDeploymentCommand = async (output, context) =>
1944
2433
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
1945
2434
  contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
1946
2435
  }
2436
+ if (data.AppliedExtensions !== undefined && data.AppliedExtensions !== null) {
2437
+ contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
2438
+ }
1947
2439
  if (data.CompletedAt !== undefined && data.CompletedAt !== null) {
1948
2440
  contents.CompletedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CompletedAt));
1949
2441
  }
@@ -2163,6 +2655,138 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
2163
2655
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2164
2656
  }
2165
2657
  };
2658
+ const deserializeAws_restJson1GetExtensionCommand = async (output, context) => {
2659
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2660
+ return deserializeAws_restJson1GetExtensionCommandError(output, context);
2661
+ }
2662
+ const contents = {
2663
+ $metadata: deserializeMetadata(output),
2664
+ Actions: undefined,
2665
+ Arn: undefined,
2666
+ Description: undefined,
2667
+ Id: undefined,
2668
+ Name: undefined,
2669
+ Parameters: undefined,
2670
+ VersionNumber: undefined,
2671
+ };
2672
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2673
+ if (data.Actions !== undefined && data.Actions !== null) {
2674
+ contents.Actions = deserializeAws_restJson1ActionsMap(data.Actions, context);
2675
+ }
2676
+ if (data.Arn !== undefined && data.Arn !== null) {
2677
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2678
+ }
2679
+ if (data.Description !== undefined && data.Description !== null) {
2680
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
2681
+ }
2682
+ if (data.Id !== undefined && data.Id !== null) {
2683
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2684
+ }
2685
+ if (data.Name !== undefined && data.Name !== null) {
2686
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
2687
+ }
2688
+ if (data.Parameters !== undefined && data.Parameters !== null) {
2689
+ contents.Parameters = deserializeAws_restJson1ParameterMap(data.Parameters, context);
2690
+ }
2691
+ if (data.VersionNumber !== undefined && data.VersionNumber !== null) {
2692
+ contents.VersionNumber = (0, smithy_client_1.expectInt32)(data.VersionNumber);
2693
+ }
2694
+ return Promise.resolve(contents);
2695
+ };
2696
+ exports.deserializeAws_restJson1GetExtensionCommand = deserializeAws_restJson1GetExtensionCommand;
2697
+ const deserializeAws_restJson1GetExtensionCommandError = async (output, context) => {
2698
+ const parsedOutput = {
2699
+ ...output,
2700
+ body: await parseBody(output.body, context),
2701
+ };
2702
+ let response;
2703
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2704
+ switch (errorCode) {
2705
+ case "BadRequestException":
2706
+ case "com.amazonaws.appconfig#BadRequestException":
2707
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2708
+ case "InternalServerException":
2709
+ case "com.amazonaws.appconfig#InternalServerException":
2710
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2711
+ case "ResourceNotFoundException":
2712
+ case "com.amazonaws.appconfig#ResourceNotFoundException":
2713
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2714
+ default:
2715
+ const parsedBody = parsedOutput.body;
2716
+ const $metadata = deserializeMetadata(output);
2717
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2718
+ response = new AppConfigServiceException_1.AppConfigServiceException({
2719
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2720
+ $fault: "client",
2721
+ $metadata,
2722
+ });
2723
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2724
+ }
2725
+ };
2726
+ const deserializeAws_restJson1GetExtensionAssociationCommand = async (output, context) => {
2727
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2728
+ return deserializeAws_restJson1GetExtensionAssociationCommandError(output, context);
2729
+ }
2730
+ const contents = {
2731
+ $metadata: deserializeMetadata(output),
2732
+ Arn: undefined,
2733
+ ExtensionArn: undefined,
2734
+ ExtensionVersionNumber: undefined,
2735
+ Id: undefined,
2736
+ Parameters: undefined,
2737
+ ResourceArn: undefined,
2738
+ };
2739
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2740
+ if (data.Arn !== undefined && data.Arn !== null) {
2741
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2742
+ }
2743
+ if (data.ExtensionArn !== undefined && data.ExtensionArn !== null) {
2744
+ contents.ExtensionArn = (0, smithy_client_1.expectString)(data.ExtensionArn);
2745
+ }
2746
+ if (data.ExtensionVersionNumber !== undefined && data.ExtensionVersionNumber !== null) {
2747
+ contents.ExtensionVersionNumber = (0, smithy_client_1.expectInt32)(data.ExtensionVersionNumber);
2748
+ }
2749
+ if (data.Id !== undefined && data.Id !== null) {
2750
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2751
+ }
2752
+ if (data.Parameters !== undefined && data.Parameters !== null) {
2753
+ contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
2754
+ }
2755
+ if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
2756
+ contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
2757
+ }
2758
+ return Promise.resolve(contents);
2759
+ };
2760
+ exports.deserializeAws_restJson1GetExtensionAssociationCommand = deserializeAws_restJson1GetExtensionAssociationCommand;
2761
+ const deserializeAws_restJson1GetExtensionAssociationCommandError = async (output, context) => {
2762
+ const parsedOutput = {
2763
+ ...output,
2764
+ body: await parseBody(output.body, context),
2765
+ };
2766
+ let response;
2767
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2768
+ switch (errorCode) {
2769
+ case "BadRequestException":
2770
+ case "com.amazonaws.appconfig#BadRequestException":
2771
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2772
+ case "InternalServerException":
2773
+ case "com.amazonaws.appconfig#InternalServerException":
2774
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2775
+ case "ResourceNotFoundException":
2776
+ case "com.amazonaws.appconfig#ResourceNotFoundException":
2777
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2778
+ default:
2779
+ const parsedBody = parsedOutput.body;
2780
+ const $metadata = deserializeMetadata(output);
2781
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2782
+ response = new AppConfigServiceException_1.AppConfigServiceException({
2783
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2784
+ $fault: "client",
2785
+ $metadata,
2786
+ });
2787
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2788
+ }
2789
+ };
2166
2790
  const deserializeAws_restJson1GetHostedConfigurationVersionCommand = async (output, context) => {
2167
2791
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2168
2792
  return deserializeAws_restJson1GetHostedConfigurationVersionCommandError(output, context);
@@ -2422,15 +3046,108 @@ const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context)
2422
3046
  };
2423
3047
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2424
3048
  if (data.Items !== undefined && data.Items !== null) {
2425
- contents.Items = deserializeAws_restJson1EnvironmentList(data.Items, context);
3049
+ contents.Items = deserializeAws_restJson1EnvironmentList(data.Items, context);
3050
+ }
3051
+ if (data.NextToken !== undefined && data.NextToken !== null) {
3052
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3053
+ }
3054
+ return Promise.resolve(contents);
3055
+ };
3056
+ exports.deserializeAws_restJson1ListEnvironmentsCommand = deserializeAws_restJson1ListEnvironmentsCommand;
3057
+ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, context) => {
3058
+ const parsedOutput = {
3059
+ ...output,
3060
+ body: await parseBody(output.body, context),
3061
+ };
3062
+ let response;
3063
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3064
+ switch (errorCode) {
3065
+ case "BadRequestException":
3066
+ case "com.amazonaws.appconfig#BadRequestException":
3067
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3068
+ case "InternalServerException":
3069
+ case "com.amazonaws.appconfig#InternalServerException":
3070
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3071
+ case "ResourceNotFoundException":
3072
+ case "com.amazonaws.appconfig#ResourceNotFoundException":
3073
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3074
+ default:
3075
+ const parsedBody = parsedOutput.body;
3076
+ const $metadata = deserializeMetadata(output);
3077
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3078
+ response = new AppConfigServiceException_1.AppConfigServiceException({
3079
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3080
+ $fault: "client",
3081
+ $metadata,
3082
+ });
3083
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3084
+ }
3085
+ };
3086
+ const deserializeAws_restJson1ListExtensionAssociationsCommand = async (output, context) => {
3087
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3088
+ return deserializeAws_restJson1ListExtensionAssociationsCommandError(output, context);
3089
+ }
3090
+ const contents = {
3091
+ $metadata: deserializeMetadata(output),
3092
+ Items: undefined,
3093
+ NextToken: undefined,
3094
+ };
3095
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3096
+ if (data.Items !== undefined && data.Items !== null) {
3097
+ contents.Items = deserializeAws_restJson1ExtensionAssociationSummaries(data.Items, context);
3098
+ }
3099
+ if (data.NextToken !== undefined && data.NextToken !== null) {
3100
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3101
+ }
3102
+ return Promise.resolve(contents);
3103
+ };
3104
+ exports.deserializeAws_restJson1ListExtensionAssociationsCommand = deserializeAws_restJson1ListExtensionAssociationsCommand;
3105
+ const deserializeAws_restJson1ListExtensionAssociationsCommandError = async (output, context) => {
3106
+ const parsedOutput = {
3107
+ ...output,
3108
+ body: await parseBody(output.body, context),
3109
+ };
3110
+ let response;
3111
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3112
+ switch (errorCode) {
3113
+ case "BadRequestException":
3114
+ case "com.amazonaws.appconfig#BadRequestException":
3115
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3116
+ case "InternalServerException":
3117
+ case "com.amazonaws.appconfig#InternalServerException":
3118
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3119
+ default:
3120
+ const parsedBody = parsedOutput.body;
3121
+ const $metadata = deserializeMetadata(output);
3122
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3123
+ response = new AppConfigServiceException_1.AppConfigServiceException({
3124
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3125
+ $fault: "client",
3126
+ $metadata,
3127
+ });
3128
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3129
+ }
3130
+ };
3131
+ const deserializeAws_restJson1ListExtensionsCommand = async (output, context) => {
3132
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3133
+ return deserializeAws_restJson1ListExtensionsCommandError(output, context);
3134
+ }
3135
+ const contents = {
3136
+ $metadata: deserializeMetadata(output),
3137
+ Items: undefined,
3138
+ NextToken: undefined,
3139
+ };
3140
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3141
+ if (data.Items !== undefined && data.Items !== null) {
3142
+ contents.Items = deserializeAws_restJson1ExtensionSummaries(data.Items, context);
2426
3143
  }
2427
3144
  if (data.NextToken !== undefined && data.NextToken !== null) {
2428
3145
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2429
3146
  }
2430
3147
  return Promise.resolve(contents);
2431
3148
  };
2432
- exports.deserializeAws_restJson1ListEnvironmentsCommand = deserializeAws_restJson1ListEnvironmentsCommand;
2433
- const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, context) => {
3149
+ exports.deserializeAws_restJson1ListExtensionsCommand = deserializeAws_restJson1ListExtensionsCommand;
3150
+ const deserializeAws_restJson1ListExtensionsCommandError = async (output, context) => {
2434
3151
  const parsedOutput = {
2435
3152
  ...output,
2436
3153
  body: await parseBody(output.body, context),
@@ -2444,9 +3161,6 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
2444
3161
  case "InternalServerException":
2445
3162
  case "com.amazonaws.appconfig#InternalServerException":
2446
3163
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2447
- case "ResourceNotFoundException":
2448
- case "com.amazonaws.appconfig#ResourceNotFoundException":
2449
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2450
3164
  default:
2451
3165
  const parsedBody = parsedOutput.body;
2452
3166
  const $metadata = deserializeMetadata(output);
@@ -2558,6 +3272,7 @@ const deserializeAws_restJson1StartDeploymentCommand = async (output, context) =
2558
3272
  const contents = {
2559
3273
  $metadata: deserializeMetadata(output),
2560
3274
  ApplicationId: undefined,
3275
+ AppliedExtensions: undefined,
2561
3276
  CompletedAt: undefined,
2562
3277
  ConfigurationLocationUri: undefined,
2563
3278
  ConfigurationName: undefined,
@@ -2580,6 +3295,9 @@ const deserializeAws_restJson1StartDeploymentCommand = async (output, context) =
2580
3295
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
2581
3296
  contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
2582
3297
  }
3298
+ if (data.AppliedExtensions !== undefined && data.AppliedExtensions !== null) {
3299
+ contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
3300
+ }
2583
3301
  if (data.CompletedAt !== undefined && data.CompletedAt !== null) {
2584
3302
  contents.CompletedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CompletedAt));
2585
3303
  }
@@ -2673,6 +3391,7 @@ const deserializeAws_restJson1StopDeploymentCommand = async (output, context) =>
2673
3391
  const contents = {
2674
3392
  $metadata: deserializeMetadata(output),
2675
3393
  ApplicationId: undefined,
3394
+ AppliedExtensions: undefined,
2676
3395
  CompletedAt: undefined,
2677
3396
  ConfigurationLocationUri: undefined,
2678
3397
  ConfigurationName: undefined,
@@ -2695,6 +3414,9 @@ const deserializeAws_restJson1StopDeploymentCommand = async (output, context) =>
2695
3414
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
2696
3415
  contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
2697
3416
  }
3417
+ if (data.AppliedExtensions !== undefined && data.AppliedExtensions !== null) {
3418
+ contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
3419
+ }
2698
3420
  if (data.CompletedAt !== undefined && data.CompletedAt !== null) {
2699
3421
  contents.CompletedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CompletedAt));
2700
3422
  }
@@ -3118,6 +3840,141 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
3118
3840
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3119
3841
  }
3120
3842
  };
3843
+ const deserializeAws_restJson1UpdateExtensionCommand = async (output, context) => {
3844
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3845
+ return deserializeAws_restJson1UpdateExtensionCommandError(output, context);
3846
+ }
3847
+ const contents = {
3848
+ $metadata: deserializeMetadata(output),
3849
+ Actions: undefined,
3850
+ Arn: undefined,
3851
+ Description: undefined,
3852
+ Id: undefined,
3853
+ Name: undefined,
3854
+ Parameters: undefined,
3855
+ VersionNumber: undefined,
3856
+ };
3857
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3858
+ if (data.Actions !== undefined && data.Actions !== null) {
3859
+ contents.Actions = deserializeAws_restJson1ActionsMap(data.Actions, context);
3860
+ }
3861
+ if (data.Arn !== undefined && data.Arn !== null) {
3862
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3863
+ }
3864
+ if (data.Description !== undefined && data.Description !== null) {
3865
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3866
+ }
3867
+ if (data.Id !== undefined && data.Id !== null) {
3868
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3869
+ }
3870
+ if (data.Name !== undefined && data.Name !== null) {
3871
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
3872
+ }
3873
+ if (data.Parameters !== undefined && data.Parameters !== null) {
3874
+ contents.Parameters = deserializeAws_restJson1ParameterMap(data.Parameters, context);
3875
+ }
3876
+ if (data.VersionNumber !== undefined && data.VersionNumber !== null) {
3877
+ contents.VersionNumber = (0, smithy_client_1.expectInt32)(data.VersionNumber);
3878
+ }
3879
+ return Promise.resolve(contents);
3880
+ };
3881
+ exports.deserializeAws_restJson1UpdateExtensionCommand = deserializeAws_restJson1UpdateExtensionCommand;
3882
+ const deserializeAws_restJson1UpdateExtensionCommandError = async (output, context) => {
3883
+ const parsedOutput = {
3884
+ ...output,
3885
+ body: await parseBody(output.body, context),
3886
+ };
3887
+ let response;
3888
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3889
+ switch (errorCode) {
3890
+ case "BadRequestException":
3891
+ case "com.amazonaws.appconfig#BadRequestException":
3892
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3893
+ case "ConflictException":
3894
+ case "com.amazonaws.appconfig#ConflictException":
3895
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3896
+ case "InternalServerException":
3897
+ case "com.amazonaws.appconfig#InternalServerException":
3898
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3899
+ case "ResourceNotFoundException":
3900
+ case "com.amazonaws.appconfig#ResourceNotFoundException":
3901
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3902
+ default:
3903
+ const parsedBody = parsedOutput.body;
3904
+ const $metadata = deserializeMetadata(output);
3905
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3906
+ response = new AppConfigServiceException_1.AppConfigServiceException({
3907
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3908
+ $fault: "client",
3909
+ $metadata,
3910
+ });
3911
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3912
+ }
3913
+ };
3914
+ const deserializeAws_restJson1UpdateExtensionAssociationCommand = async (output, context) => {
3915
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3916
+ return deserializeAws_restJson1UpdateExtensionAssociationCommandError(output, context);
3917
+ }
3918
+ const contents = {
3919
+ $metadata: deserializeMetadata(output),
3920
+ Arn: undefined,
3921
+ ExtensionArn: undefined,
3922
+ ExtensionVersionNumber: undefined,
3923
+ Id: undefined,
3924
+ Parameters: undefined,
3925
+ ResourceArn: undefined,
3926
+ };
3927
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3928
+ if (data.Arn !== undefined && data.Arn !== null) {
3929
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3930
+ }
3931
+ if (data.ExtensionArn !== undefined && data.ExtensionArn !== null) {
3932
+ contents.ExtensionArn = (0, smithy_client_1.expectString)(data.ExtensionArn);
3933
+ }
3934
+ if (data.ExtensionVersionNumber !== undefined && data.ExtensionVersionNumber !== null) {
3935
+ contents.ExtensionVersionNumber = (0, smithy_client_1.expectInt32)(data.ExtensionVersionNumber);
3936
+ }
3937
+ if (data.Id !== undefined && data.Id !== null) {
3938
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
3939
+ }
3940
+ if (data.Parameters !== undefined && data.Parameters !== null) {
3941
+ contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
3942
+ }
3943
+ if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
3944
+ contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
3945
+ }
3946
+ return Promise.resolve(contents);
3947
+ };
3948
+ exports.deserializeAws_restJson1UpdateExtensionAssociationCommand = deserializeAws_restJson1UpdateExtensionAssociationCommand;
3949
+ const deserializeAws_restJson1UpdateExtensionAssociationCommandError = async (output, context) => {
3950
+ const parsedOutput = {
3951
+ ...output,
3952
+ body: await parseBody(output.body, context),
3953
+ };
3954
+ let response;
3955
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3956
+ switch (errorCode) {
3957
+ case "BadRequestException":
3958
+ case "com.amazonaws.appconfig#BadRequestException":
3959
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3960
+ case "InternalServerException":
3961
+ case "com.amazonaws.appconfig#InternalServerException":
3962
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3963
+ case "ResourceNotFoundException":
3964
+ case "com.amazonaws.appconfig#ResourceNotFoundException":
3965
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3966
+ default:
3967
+ const parsedBody = parsedOutput.body;
3968
+ const $metadata = deserializeMetadata(output);
3969
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3970
+ response = new AppConfigServiceException_1.AppConfigServiceException({
3971
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3972
+ $fault: "client",
3973
+ $metadata,
3974
+ });
3975
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3976
+ }
3977
+ };
3121
3978
  const deserializeAws_restJson1ValidateConfigurationCommand = async (output, context) => {
3122
3979
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3123
3980
  return deserializeAws_restJson1ValidateConfigurationCommandError(output, context);
@@ -3248,10 +4105,39 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
3248
4105
  });
3249
4106
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3250
4107
  };
4108
+ const serializeAws_restJson1Action = (input, context) => {
4109
+ return {
4110
+ ...(input.Description != null && { Description: input.Description }),
4111
+ ...(input.Name != null && { Name: input.Name }),
4112
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
4113
+ ...(input.Uri != null && { Uri: input.Uri }),
4114
+ };
4115
+ };
4116
+ const serializeAws_restJson1ActionList = (input, context) => {
4117
+ return input
4118
+ .filter((e) => e != null)
4119
+ .map((entry) => {
4120
+ if (entry === null) {
4121
+ return null;
4122
+ }
4123
+ return serializeAws_restJson1Action(entry, context);
4124
+ });
4125
+ };
4126
+ const serializeAws_restJson1ActionsMap = (input, context) => {
4127
+ return Object.entries(input).reduce((acc, [key, value]) => {
4128
+ if (value === null) {
4129
+ return acc;
4130
+ }
4131
+ return {
4132
+ ...acc,
4133
+ [key]: serializeAws_restJson1ActionList(value, context),
4134
+ };
4135
+ }, {});
4136
+ };
3251
4137
  const serializeAws_restJson1Monitor = (input, context) => {
3252
4138
  return {
3253
- ...(input.AlarmArn !== undefined && input.AlarmArn !== null && { AlarmArn: input.AlarmArn }),
3254
- ...(input.AlarmRoleArn !== undefined && input.AlarmRoleArn !== null && { AlarmRoleArn: input.AlarmRoleArn }),
4139
+ ...(input.AlarmArn != null && { AlarmArn: input.AlarmArn }),
4140
+ ...(input.AlarmRoleArn != null && { AlarmRoleArn: input.AlarmRoleArn }),
3255
4141
  };
3256
4142
  };
3257
4143
  const serializeAws_restJson1MonitorList = (input, context) => {
@@ -3264,6 +4150,34 @@ const serializeAws_restJson1MonitorList = (input, context) => {
3264
4150
  return serializeAws_restJson1Monitor(entry, context);
3265
4151
  });
3266
4152
  };
4153
+ const serializeAws_restJson1Parameter = (input, context) => {
4154
+ return {
4155
+ ...(input.Description != null && { Description: input.Description }),
4156
+ ...(input.Required != null && { Required: input.Required }),
4157
+ };
4158
+ };
4159
+ const serializeAws_restJson1ParameterMap = (input, context) => {
4160
+ return Object.entries(input).reduce((acc, [key, value]) => {
4161
+ if (value === null) {
4162
+ return acc;
4163
+ }
4164
+ return {
4165
+ ...acc,
4166
+ [key]: serializeAws_restJson1Parameter(value, context),
4167
+ };
4168
+ }, {});
4169
+ };
4170
+ const serializeAws_restJson1ParameterValueMap = (input, context) => {
4171
+ return Object.entries(input).reduce((acc, [key, value]) => {
4172
+ if (value === null) {
4173
+ return acc;
4174
+ }
4175
+ return {
4176
+ ...acc,
4177
+ [key]: value,
4178
+ };
4179
+ }, {});
4180
+ };
3267
4181
  const serializeAws_restJson1TagMap = (input, context) => {
3268
4182
  return Object.entries(input).reduce((acc, [key, value]) => {
3269
4183
  if (value === null) {
@@ -3277,8 +4191,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
3277
4191
  };
3278
4192
  const serializeAws_restJson1Validator = (input, context) => {
3279
4193
  return {
3280
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
3281
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4194
+ ...(input.Content != null && { Content: input.Content }),
4195
+ ...(input.Type != null && { Type: input.Type }),
3282
4196
  };
3283
4197
  };
3284
4198
  const serializeAws_restJson1ValidatorList = (input, context) => {
@@ -3291,6 +4205,58 @@ const serializeAws_restJson1ValidatorList = (input, context) => {
3291
4205
  return serializeAws_restJson1Validator(entry, context);
3292
4206
  });
3293
4207
  };
4208
+ const deserializeAws_restJson1Action = (output, context) => {
4209
+ return {
4210
+ Description: (0, smithy_client_1.expectString)(output.Description),
4211
+ Name: (0, smithy_client_1.expectString)(output.Name),
4212
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4213
+ Uri: (0, smithy_client_1.expectString)(output.Uri),
4214
+ };
4215
+ };
4216
+ const deserializeAws_restJson1ActionInvocation = (output, context) => {
4217
+ return {
4218
+ ActionName: (0, smithy_client_1.expectString)(output.ActionName),
4219
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4220
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4221
+ ExtensionIdentifier: (0, smithy_client_1.expectString)(output.ExtensionIdentifier),
4222
+ InvocationId: (0, smithy_client_1.expectString)(output.InvocationId),
4223
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4224
+ Uri: (0, smithy_client_1.expectString)(output.Uri),
4225
+ };
4226
+ };
4227
+ const deserializeAws_restJson1ActionInvocations = (output, context) => {
4228
+ const retVal = (output || [])
4229
+ .filter((e) => e != null)
4230
+ .map((entry) => {
4231
+ if (entry === null) {
4232
+ return null;
4233
+ }
4234
+ return deserializeAws_restJson1ActionInvocation(entry, context);
4235
+ });
4236
+ return retVal;
4237
+ };
4238
+ const deserializeAws_restJson1ActionList = (output, context) => {
4239
+ const retVal = (output || [])
4240
+ .filter((e) => e != null)
4241
+ .map((entry) => {
4242
+ if (entry === null) {
4243
+ return null;
4244
+ }
4245
+ return deserializeAws_restJson1Action(entry, context);
4246
+ });
4247
+ return retVal;
4248
+ };
4249
+ const deserializeAws_restJson1ActionsMap = (output, context) => {
4250
+ return Object.entries(output).reduce((acc, [key, value]) => {
4251
+ if (value === null) {
4252
+ return acc;
4253
+ }
4254
+ return {
4255
+ ...acc,
4256
+ [key]: deserializeAws_restJson1ActionList(value, context),
4257
+ };
4258
+ }, {});
4259
+ };
3294
4260
  const deserializeAws_restJson1Application = (output, context) => {
3295
4261
  return {
3296
4262
  Description: (0, smithy_client_1.expectString)(output.Description),
@@ -3309,6 +4275,25 @@ const deserializeAws_restJson1ApplicationList = (output, context) => {
3309
4275
  });
3310
4276
  return retVal;
3311
4277
  };
4278
+ const deserializeAws_restJson1AppliedExtension = (output, context) => {
4279
+ return {
4280
+ ExtensionAssociationId: (0, smithy_client_1.expectString)(output.ExtensionAssociationId),
4281
+ ExtensionId: (0, smithy_client_1.expectString)(output.ExtensionId),
4282
+ Parameters: output.Parameters != null ? deserializeAws_restJson1ParameterValueMap(output.Parameters, context) : undefined,
4283
+ VersionNumber: (0, smithy_client_1.expectInt32)(output.VersionNumber),
4284
+ };
4285
+ };
4286
+ const deserializeAws_restJson1AppliedExtensions = (output, context) => {
4287
+ const retVal = (output || [])
4288
+ .filter((e) => e != null)
4289
+ .map((entry) => {
4290
+ if (entry === null) {
4291
+ return null;
4292
+ }
4293
+ return deserializeAws_restJson1AppliedExtension(entry, context);
4294
+ });
4295
+ return retVal;
4296
+ };
3312
4297
  const deserializeAws_restJson1BadRequestDetails = (output, context) => {
3313
4298
  if (output.InvalidConfiguration !== undefined && output.InvalidConfiguration !== null) {
3314
4299
  return {
@@ -3324,7 +4309,7 @@ const deserializeAws_restJson1ConfigurationProfileSummary = (output, context) =>
3324
4309
  LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
3325
4310
  Name: (0, smithy_client_1.expectString)(output.Name),
3326
4311
  Type: (0, smithy_client_1.expectString)(output.Type),
3327
- ValidatorTypes: output.ValidatorTypes !== undefined && output.ValidatorTypes !== null
4312
+ ValidatorTypes: output.ValidatorTypes != null
3328
4313
  ? deserializeAws_restJson1ValidatorTypeList(output.ValidatorTypes, context)
3329
4314
  : undefined,
3330
4315
  };
@@ -3342,11 +4327,12 @@ const deserializeAws_restJson1ConfigurationProfileSummaryList = (output, context
3342
4327
  };
3343
4328
  const deserializeAws_restJson1DeploymentEvent = (output, context) => {
3344
4329
  return {
4330
+ ActionInvocations: output.ActionInvocations != null
4331
+ ? deserializeAws_restJson1ActionInvocations(output.ActionInvocations, context)
4332
+ : undefined,
3345
4333
  Description: (0, smithy_client_1.expectString)(output.Description),
3346
4334
  EventType: (0, smithy_client_1.expectString)(output.EventType),
3347
- OccurredAt: output.OccurredAt !== undefined && output.OccurredAt !== null
3348
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.OccurredAt))
3349
- : undefined,
4335
+ OccurredAt: output.OccurredAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.OccurredAt)) : undefined,
3350
4336
  TriggeredBy: (0, smithy_client_1.expectString)(output.TriggeredBy),
3351
4337
  };
3352
4338
  };
@@ -3397,9 +4383,7 @@ const deserializeAws_restJson1DeploymentStrategyList = (output, context) => {
3397
4383
  };
3398
4384
  const deserializeAws_restJson1DeploymentSummary = (output, context) => {
3399
4385
  return {
3400
- CompletedAt: output.CompletedAt !== undefined && output.CompletedAt !== null
3401
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CompletedAt))
3402
- : undefined,
4386
+ CompletedAt: output.CompletedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CompletedAt)) : undefined,
3403
4387
  ConfigurationName: (0, smithy_client_1.expectString)(output.ConfigurationName),
3404
4388
  ConfigurationVersion: (0, smithy_client_1.expectString)(output.ConfigurationVersion),
3405
4389
  DeploymentDurationInMinutes: (0, smithy_client_1.expectInt32)(output.DeploymentDurationInMinutes),
@@ -3408,9 +4392,7 @@ const deserializeAws_restJson1DeploymentSummary = (output, context) => {
3408
4392
  GrowthFactor: (0, smithy_client_1.limitedParseFloat32)(output.GrowthFactor),
3409
4393
  GrowthType: (0, smithy_client_1.expectString)(output.GrowthType),
3410
4394
  PercentageComplete: (0, smithy_client_1.limitedParseFloat32)(output.PercentageComplete),
3411
- StartedAt: output.StartedAt !== undefined && output.StartedAt !== null
3412
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartedAt))
3413
- : undefined,
4395
+ StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartedAt)) : undefined,
3414
4396
  State: (0, smithy_client_1.expectString)(output.State),
3415
4397
  };
3416
4398
  };
@@ -3419,9 +4401,7 @@ const deserializeAws_restJson1Environment = (output, context) => {
3419
4401
  ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
3420
4402
  Description: (0, smithy_client_1.expectString)(output.Description),
3421
4403
  Id: (0, smithy_client_1.expectString)(output.Id),
3422
- Monitors: output.Monitors !== undefined && output.Monitors !== null
3423
- ? deserializeAws_restJson1MonitorList(output.Monitors, context)
3424
- : undefined,
4404
+ Monitors: output.Monitors != null ? deserializeAws_restJson1MonitorList(output.Monitors, context) : undefined,
3425
4405
  Name: (0, smithy_client_1.expectString)(output.Name),
3426
4406
  State: (0, smithy_client_1.expectString)(output.State),
3427
4407
  };
@@ -3437,6 +4417,44 @@ const deserializeAws_restJson1EnvironmentList = (output, context) => {
3437
4417
  });
3438
4418
  return retVal;
3439
4419
  };
4420
+ const deserializeAws_restJson1ExtensionAssociationSummaries = (output, context) => {
4421
+ const retVal = (output || [])
4422
+ .filter((e) => e != null)
4423
+ .map((entry) => {
4424
+ if (entry === null) {
4425
+ return null;
4426
+ }
4427
+ return deserializeAws_restJson1ExtensionAssociationSummary(entry, context);
4428
+ });
4429
+ return retVal;
4430
+ };
4431
+ const deserializeAws_restJson1ExtensionAssociationSummary = (output, context) => {
4432
+ return {
4433
+ ExtensionArn: (0, smithy_client_1.expectString)(output.ExtensionArn),
4434
+ Id: (0, smithy_client_1.expectString)(output.Id),
4435
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4436
+ };
4437
+ };
4438
+ const deserializeAws_restJson1ExtensionSummaries = (output, context) => {
4439
+ const retVal = (output || [])
4440
+ .filter((e) => e != null)
4441
+ .map((entry) => {
4442
+ if (entry === null) {
4443
+ return null;
4444
+ }
4445
+ return deserializeAws_restJson1ExtensionSummary(entry, context);
4446
+ });
4447
+ return retVal;
4448
+ };
4449
+ const deserializeAws_restJson1ExtensionSummary = (output, context) => {
4450
+ return {
4451
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4452
+ Description: (0, smithy_client_1.expectString)(output.Description),
4453
+ Id: (0, smithy_client_1.expectString)(output.Id),
4454
+ Name: (0, smithy_client_1.expectString)(output.Name),
4455
+ VersionNumber: (0, smithy_client_1.expectInt32)(output.VersionNumber),
4456
+ };
4457
+ };
3440
4458
  const deserializeAws_restJson1HostedConfigurationVersionSummary = (output, context) => {
3441
4459
  return {
3442
4460
  ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
@@ -3463,6 +4481,7 @@ const deserializeAws_restJson1InvalidConfigurationDetail = (output, context) =>
3463
4481
  Location: (0, smithy_client_1.expectString)(output.Location),
3464
4482
  Reason: (0, smithy_client_1.expectString)(output.Reason),
3465
4483
  Type: (0, smithy_client_1.expectString)(output.Type),
4484
+ Value: (0, smithy_client_1.expectString)(output.Value),
3466
4485
  };
3467
4486
  };
3468
4487
  const deserializeAws_restJson1InvalidConfigurationDetailList = (output, context) => {
@@ -3493,6 +4512,34 @@ const deserializeAws_restJson1MonitorList = (output, context) => {
3493
4512
  });
3494
4513
  return retVal;
3495
4514
  };
4515
+ const deserializeAws_restJson1Parameter = (output, context) => {
4516
+ return {
4517
+ Description: (0, smithy_client_1.expectString)(output.Description),
4518
+ Required: (0, smithy_client_1.expectBoolean)(output.Required),
4519
+ };
4520
+ };
4521
+ const deserializeAws_restJson1ParameterMap = (output, context) => {
4522
+ return Object.entries(output).reduce((acc, [key, value]) => {
4523
+ if (value === null) {
4524
+ return acc;
4525
+ }
4526
+ return {
4527
+ ...acc,
4528
+ [key]: deserializeAws_restJson1Parameter(value, context),
4529
+ };
4530
+ }, {});
4531
+ };
4532
+ const deserializeAws_restJson1ParameterValueMap = (output, context) => {
4533
+ return Object.entries(output).reduce((acc, [key, value]) => {
4534
+ if (value === null) {
4535
+ return acc;
4536
+ }
4537
+ return {
4538
+ ...acc,
4539
+ [key]: (0, smithy_client_1.expectString)(value),
4540
+ };
4541
+ }, {});
4542
+ };
3496
4543
  const deserializeAws_restJson1TagMap = (output, context) => {
3497
4544
  return Object.entries(output).reduce((acc, [key, value]) => {
3498
4545
  if (value === null) {