@aws-sdk/client-greengrassv2 3.92.0 → 3.94.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 (29) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/GreengrassV2.js +15 -0
  3. package/dist-cjs/commands/DeleteDeploymentCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +15 -3
  6. package/dist-cjs/protocols/Aws_restJson1.js +86 -2
  7. package/dist-es/GreengrassV2.js +15 -0
  8. package/dist-es/commands/DeleteDeploymentCommand.js +39 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +10 -0
  11. package/dist-es/protocols/Aws_restJson1.js +133 -20
  12. package/dist-types/GreengrassV2.d.ts +96 -2
  13. package/dist-types/GreengrassV2Client.d.ts +3 -2
  14. package/dist-types/commands/CreateComponentVersionCommand.d.ts +12 -0
  15. package/dist-types/commands/DeleteDeploymentCommand.d.ts +39 -0
  16. package/dist-types/commands/GetComponentVersionArtifactCommand.d.ts +1 -1
  17. package/dist-types/commands/GetCoreDeviceCommand.d.ts +23 -0
  18. package/dist-types/commands/ListCoreDevicesCommand.d.ts +23 -0
  19. package/dist-types/commands/ListInstalledComponentsCommand.d.ts +26 -1
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/models/models_0.d.ts +85 -12
  22. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  23. package/dist-types/ts3.4/GreengrassV2.d.ts +5 -0
  24. package/dist-types/ts3.4/GreengrassV2Client.d.ts +3 -2
  25. package/dist-types/ts3.4/commands/DeleteDeploymentCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +23 -2
  28. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  29. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.94.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.93.0...v3.94.0) (2022-05-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-greengrassv2:** This release adds the new DeleteDeployment API operation that you can use to delete deployment resources. This release also adds support for discontinued AWS-provided components, so AWS can communicate when a component has any issues that you should consider before you deploy it. ([fe02b18](https://github.com/aws/aws-sdk-js-v3/commit/fe02b188ba05be51d8edf649c9df4edfdc3da288))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.92.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.91.0...v3.92.0) (2022-05-16)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-greengrassv2
@@ -9,6 +9,7 @@ const CreateComponentVersionCommand_1 = require("./commands/CreateComponentVersi
9
9
  const CreateDeploymentCommand_1 = require("./commands/CreateDeploymentCommand");
10
10
  const DeleteComponentCommand_1 = require("./commands/DeleteComponentCommand");
11
11
  const DeleteCoreDeviceCommand_1 = require("./commands/DeleteCoreDeviceCommand");
12
+ const DeleteDeploymentCommand_1 = require("./commands/DeleteDeploymentCommand");
12
13
  const DescribeComponentCommand_1 = require("./commands/DescribeComponentCommand");
13
14
  const DisassociateServiceRoleFromAccountCommand_1 = require("./commands/DisassociateServiceRoleFromAccountCommand");
14
15
  const GetComponentCommand_1 = require("./commands/GetComponentCommand");
@@ -143,6 +144,20 @@ class GreengrassV2 extends GreengrassV2Client_1.GreengrassV2Client {
143
144
  return this.send(command, optionsOrCb);
144
145
  }
145
146
  }
147
+ deleteDeployment(args, optionsOrCb, cb) {
148
+ const command = new DeleteDeploymentCommand_1.DeleteDeploymentCommand(args);
149
+ if (typeof optionsOrCb === "function") {
150
+ this.send(command, optionsOrCb);
151
+ }
152
+ else if (typeof cb === "function") {
153
+ if (typeof optionsOrCb !== "object")
154
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
+ this.send(command, optionsOrCb || {}, cb);
156
+ }
157
+ else {
158
+ return this.send(command, optionsOrCb);
159
+ }
160
+ }
146
161
  describeComponent(args, optionsOrCb, cb) {
147
162
  const command = new DescribeComponentCommand_1.DescribeComponentCommand(args);
148
163
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteDeploymentCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteDeploymentCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "GreengrassV2Client";
18
+ const commandName = "DeleteDeploymentCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteDeploymentRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DeleteDeploymentCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteDeploymentCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DeleteDeploymentCommand = DeleteDeploymentCommand;
@@ -9,6 +9,7 @@ tslib_1.__exportStar(require("./CreateComponentVersionCommand"), exports);
9
9
  tslib_1.__exportStar(require("./CreateDeploymentCommand"), exports);
10
10
  tslib_1.__exportStar(require("./DeleteComponentCommand"), exports);
11
11
  tslib_1.__exportStar(require("./DeleteCoreDeviceCommand"), exports);
12
+ tslib_1.__exportStar(require("./DeleteDeploymentCommand"), exports);
12
13
  tslib_1.__exportStar(require("./DescribeComponentCommand"), exports);
13
14
  tslib_1.__exportStar(require("./DisassociateServiceRoleFromAccountCommand"), exports);
14
15
  tslib_1.__exportStar(require("./GetComponentCommand"), exports);
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateComponentVersionRequest = exports.LambdaFunctionRecipeSource = exports.LambdaExecutionParameters = exports.LambdaLinuxProcessParams = exports.LambdaIsolationMode = exports.LambdaContainerParams = exports.LambdaVolumeMount = exports.LambdaDeviceMount = exports.LambdaFilesystemPermission = exports.LambdaInputPayloadEncodingType = exports.LambdaEventSource = exports.LambdaEventSourceType = exports.CoreDevice = exports.CoreDeviceStatus = exports.ConnectivityInfo = exports.ComponentVisibilityScope = exports.ComponentVersionListItem = exports.ComponentDeploymentSpecification = exports.ComponentRunWith = exports.SystemResourceLimits = exports.ComponentDependencyRequirement = exports.ComponentDependencyType = exports.ComponentConfigurationUpdate = exports.ComponentCandidate = exports.Component = exports.ComponentLatestVersion = exports.ComponentPlatform = exports.CloudComponentStatus = exports.CloudComponentState = exports.ConflictException = exports.CancelDeploymentResponse = exports.CancelDeploymentRequest = exports.BatchDisassociateClientDeviceFromCoreDeviceResponse = exports.DisassociateClientDeviceFromCoreDeviceErrorEntry = exports.BatchDisassociateClientDeviceFromCoreDeviceRequest = exports.DisassociateClientDeviceFromCoreDeviceEntry = exports.ThrottlingException = exports.ResourceNotFoundException = exports.BatchAssociateClientDeviceWithCoreDeviceResponse = exports.BatchAssociateClientDeviceWithCoreDeviceRequest = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.InternalServerException = exports.AssociateServiceRoleToAccountResponse = exports.AssociateServiceRoleToAccountRequest = exports.AssociatedClientDevice = exports.AssociateClientDeviceWithCoreDeviceErrorEntry = exports.AssociateClientDeviceWithCoreDeviceEntry = exports.AccessDeniedException = void 0;
4
- exports.ListCoreDevicesRequest = exports.ListComponentVersionsResponse = exports.ListComponentVersionsRequest = exports.ListComponentsResponse = exports.ListComponentsRequest = exports.ListClientDevicesAssociatedWithCoreDeviceResponse = exports.ListClientDevicesAssociatedWithCoreDeviceRequest = exports.GetServiceRoleForAccountResponse = exports.GetServiceRoleForAccountRequest = exports.GetDeploymentResponse = exports.GetDeploymentRequest = exports.GetCoreDeviceResponse = exports.GetCoreDeviceRequest = exports.GetConnectivityInfoResponse = exports.GetConnectivityInfoRequest = exports.GetComponentVersionArtifactResponse = exports.GetComponentVersionArtifactRequest = exports.GetComponentResponse = exports.GetComponentRequest = exports.RecipeOutputFormat = exports.EffectiveDeployment = exports.EffectiveDeploymentExecutionStatus = exports.DisassociateServiceRoleFromAccountResponse = exports.DisassociateServiceRoleFromAccountRequest = exports.DescribeComponentResponse = exports.DescribeComponentRequest = exports.DeploymentHistoryFilter = exports.Deployment = exports.DeploymentStatus = exports.DeleteCoreDeviceRequest = exports.DeleteComponentRequest = exports.CreateDeploymentResponse = exports.CreateDeploymentRequest = exports.DeploymentIoTJobConfiguration = exports.IoTJobTimeoutConfig = exports.IoTJobExecutionsRolloutConfig = exports.IoTJobExponentialRolloutRate = exports.IoTJobRateIncreaseCriteria = exports.IoTJobAbortConfig = exports.IoTJobAbortCriteria = exports.IoTJobExecutionFailureType = exports.IoTJobAbortAction = exports.DeploymentPolicies = exports.DeploymentFailureHandlingPolicy = exports.DeploymentConfigurationValidationPolicy = exports.DeploymentComponentUpdatePolicy = exports.DeploymentComponentUpdatePolicyAction = exports.ServiceQuotaExceededException = exports.RequestAlreadyInProgressException = exports.CreateComponentVersionResponse = void 0;
5
- exports.UpdateConnectivityInfoResponse = exports.UpdateConnectivityInfoRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ResolveComponentCandidatesResponse = exports.ResolvedComponentVersion = exports.ResolveComponentCandidatesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListInstalledComponentsResponse = exports.InstalledComponent = exports.InstalledComponentLifecycleState = exports.ListInstalledComponentsRequest = exports.ListEffectiveDeploymentsResponse = exports.ListEffectiveDeploymentsRequest = exports.ListDeploymentsResponse = exports.ListDeploymentsRequest = exports.ListCoreDevicesResponse = void 0;
3
+ exports.LambdaFunctionRecipeSource = exports.LambdaExecutionParameters = exports.LambdaLinuxProcessParams = exports.LambdaIsolationMode = exports.LambdaContainerParams = exports.LambdaVolumeMount = exports.LambdaDeviceMount = exports.LambdaFilesystemPermission = exports.LambdaInputPayloadEncodingType = exports.LambdaEventSource = exports.LambdaEventSourceType = exports.CoreDevice = exports.CoreDeviceStatus = exports.ConnectivityInfo = exports.ComponentVisibilityScope = exports.ComponentVersionListItem = exports.ComponentDeploymentSpecification = exports.ComponentRunWith = exports.SystemResourceLimits = exports.ComponentDependencyRequirement = exports.ComponentDependencyType = exports.ComponentConfigurationUpdate = exports.ComponentCandidate = exports.Component = exports.ComponentLatestVersion = exports.ComponentPlatform = exports.CloudComponentStatus = exports.VendorGuidance = exports.CloudComponentState = exports.ConflictException = exports.CancelDeploymentResponse = exports.CancelDeploymentRequest = exports.BatchDisassociateClientDeviceFromCoreDeviceResponse = exports.DisassociateClientDeviceFromCoreDeviceErrorEntry = exports.BatchDisassociateClientDeviceFromCoreDeviceRequest = exports.DisassociateClientDeviceFromCoreDeviceEntry = exports.ThrottlingException = exports.ResourceNotFoundException = exports.BatchAssociateClientDeviceWithCoreDeviceResponse = exports.BatchAssociateClientDeviceWithCoreDeviceRequest = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.InternalServerException = exports.AssociateServiceRoleToAccountResponse = exports.AssociateServiceRoleToAccountRequest = exports.AssociatedClientDevice = exports.AssociateClientDeviceWithCoreDeviceErrorEntry = exports.AssociateClientDeviceWithCoreDeviceEntry = exports.AccessDeniedException = void 0;
4
+ exports.ListComponentVersionsRequest = exports.ListComponentsResponse = exports.ListComponentsRequest = exports.ListClientDevicesAssociatedWithCoreDeviceResponse = exports.ListClientDevicesAssociatedWithCoreDeviceRequest = exports.GetServiceRoleForAccountResponse = exports.GetServiceRoleForAccountRequest = exports.GetDeploymentResponse = exports.GetDeploymentRequest = exports.GetCoreDeviceResponse = exports.GetCoreDeviceRequest = exports.GetConnectivityInfoResponse = exports.GetConnectivityInfoRequest = exports.GetComponentVersionArtifactResponse = exports.GetComponentVersionArtifactRequest = exports.GetComponentResponse = exports.GetComponentRequest = exports.RecipeOutputFormat = exports.EffectiveDeployment = exports.EffectiveDeploymentExecutionStatus = exports.DisassociateServiceRoleFromAccountResponse = exports.DisassociateServiceRoleFromAccountRequest = exports.DescribeComponentResponse = exports.DescribeComponentRequest = exports.DeploymentHistoryFilter = exports.Deployment = exports.DeploymentStatus = exports.DeleteDeploymentRequest = exports.DeleteCoreDeviceRequest = exports.DeleteComponentRequest = exports.CreateDeploymentResponse = exports.CreateDeploymentRequest = exports.DeploymentIoTJobConfiguration = exports.IoTJobTimeoutConfig = exports.IoTJobExecutionsRolloutConfig = exports.IoTJobExponentialRolloutRate = exports.IoTJobRateIncreaseCriteria = exports.IoTJobAbortConfig = exports.IoTJobAbortCriteria = exports.IoTJobExecutionFailureType = exports.IoTJobAbortAction = exports.DeploymentPolicies = exports.DeploymentFailureHandlingPolicy = exports.DeploymentConfigurationValidationPolicy = exports.DeploymentComponentUpdatePolicy = exports.DeploymentComponentUpdatePolicyAction = exports.ServiceQuotaExceededException = exports.RequestAlreadyInProgressException = exports.CreateComponentVersionResponse = exports.CreateComponentVersionRequest = void 0;
5
+ exports.UpdateConnectivityInfoResponse = exports.UpdateConnectivityInfoRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ResolveComponentCandidatesResponse = exports.ResolvedComponentVersion = exports.ResolveComponentCandidatesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListInstalledComponentsResponse = exports.InstalledComponent = exports.InstalledComponentLifecycleState = exports.ListInstalledComponentsRequest = exports.ListEffectiveDeploymentsResponse = exports.ListEffectiveDeploymentsRequest = exports.ListDeploymentsResponse = exports.ListDeploymentsRequest = exports.ListCoreDevicesResponse = exports.ListCoreDevicesRequest = exports.ListComponentVersionsResponse = void 0;
6
6
  const GreengrassV2ServiceException_1 = require("./GreengrassV2ServiceException");
7
7
  class AccessDeniedException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
8
8
  constructor(opts) {
@@ -191,6 +191,12 @@ var CloudComponentState;
191
191
  CloudComponentState["INITIATED"] = "INITIATED";
192
192
  CloudComponentState["REQUESTED"] = "REQUESTED";
193
193
  })(CloudComponentState = exports.CloudComponentState || (exports.CloudComponentState = {}));
194
+ var VendorGuidance;
195
+ (function (VendorGuidance) {
196
+ VendorGuidance["ACTIVE"] = "ACTIVE";
197
+ VendorGuidance["DELETED"] = "DELETED";
198
+ VendorGuidance["DISCONTINUED"] = "DISCONTINUED";
199
+ })(VendorGuidance = exports.VendorGuidance || (exports.VendorGuidance = {}));
194
200
  var CloudComponentStatus;
195
201
  (function (CloudComponentStatus) {
196
202
  CloudComponentStatus.filterSensitiveLog = (obj) => ({
@@ -493,6 +499,12 @@ var DeleteCoreDeviceRequest;
493
499
  ...obj,
494
500
  });
495
501
  })(DeleteCoreDeviceRequest = exports.DeleteCoreDeviceRequest || (exports.DeleteCoreDeviceRequest = {}));
502
+ var DeleteDeploymentRequest;
503
+ (function (DeleteDeploymentRequest) {
504
+ DeleteDeploymentRequest.filterSensitiveLog = (obj) => ({
505
+ ...obj,
506
+ });
507
+ })(DeleteDeploymentRequest = exports.DeleteDeploymentRequest || (exports.DeleteDeploymentRequest = {}));
496
508
  var DeploymentStatus;
497
509
  (function (DeploymentStatus) {
498
510
  DeploymentStatus["ACTIVE"] = "ACTIVE";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListEffectiveDeploymentsCommand = exports.deserializeAws_restJson1ListDeploymentsCommand = exports.deserializeAws_restJson1ListCoreDevicesCommand = exports.deserializeAws_restJson1ListComponentVersionsCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand = exports.deserializeAws_restJson1GetServiceRoleForAccountCommand = exports.deserializeAws_restJson1GetDeploymentCommand = exports.deserializeAws_restJson1GetCoreDeviceCommand = exports.deserializeAws_restJson1GetConnectivityInfoCommand = exports.deserializeAws_restJson1GetComponentVersionArtifactCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand = exports.deserializeAws_restJson1DescribeComponentCommand = exports.deserializeAws_restJson1DeleteCoreDeviceCommand = exports.deserializeAws_restJson1DeleteComponentCommand = exports.deserializeAws_restJson1CreateDeploymentCommand = exports.deserializeAws_restJson1CreateComponentVersionCommand = exports.deserializeAws_restJson1CancelDeploymentCommand = exports.deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand = exports.deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand = exports.deserializeAws_restJson1AssociateServiceRoleToAccountCommand = exports.serializeAws_restJson1UpdateConnectivityInfoCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ResolveComponentCandidatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListInstalledComponentsCommand = exports.serializeAws_restJson1ListEffectiveDeploymentsCommand = exports.serializeAws_restJson1ListDeploymentsCommand = exports.serializeAws_restJson1ListCoreDevicesCommand = exports.serializeAws_restJson1ListComponentVersionsCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand = exports.serializeAws_restJson1GetServiceRoleForAccountCommand = exports.serializeAws_restJson1GetDeploymentCommand = exports.serializeAws_restJson1GetCoreDeviceCommand = exports.serializeAws_restJson1GetConnectivityInfoCommand = exports.serializeAws_restJson1GetComponentVersionArtifactCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1DisassociateServiceRoleFromAccountCommand = exports.serializeAws_restJson1DescribeComponentCommand = exports.serializeAws_restJson1DeleteCoreDeviceCommand = exports.serializeAws_restJson1DeleteComponentCommand = exports.serializeAws_restJson1CreateDeploymentCommand = exports.serializeAws_restJson1CreateComponentVersionCommand = exports.serializeAws_restJson1CancelDeploymentCommand = exports.serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand = exports.serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand = exports.serializeAws_restJson1AssociateServiceRoleToAccountCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateConnectivityInfoCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ResolveComponentCandidatesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListInstalledComponentsCommand = void 0;
3
+ exports.deserializeAws_restJson1ListCoreDevicesCommand = exports.deserializeAws_restJson1ListComponentVersionsCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand = exports.deserializeAws_restJson1GetServiceRoleForAccountCommand = exports.deserializeAws_restJson1GetDeploymentCommand = exports.deserializeAws_restJson1GetCoreDeviceCommand = exports.deserializeAws_restJson1GetConnectivityInfoCommand = exports.deserializeAws_restJson1GetComponentVersionArtifactCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand = exports.deserializeAws_restJson1DescribeComponentCommand = exports.deserializeAws_restJson1DeleteDeploymentCommand = exports.deserializeAws_restJson1DeleteCoreDeviceCommand = exports.deserializeAws_restJson1DeleteComponentCommand = exports.deserializeAws_restJson1CreateDeploymentCommand = exports.deserializeAws_restJson1CreateComponentVersionCommand = exports.deserializeAws_restJson1CancelDeploymentCommand = exports.deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand = exports.deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand = exports.deserializeAws_restJson1AssociateServiceRoleToAccountCommand = exports.serializeAws_restJson1UpdateConnectivityInfoCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ResolveComponentCandidatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListInstalledComponentsCommand = exports.serializeAws_restJson1ListEffectiveDeploymentsCommand = exports.serializeAws_restJson1ListDeploymentsCommand = exports.serializeAws_restJson1ListCoreDevicesCommand = exports.serializeAws_restJson1ListComponentVersionsCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand = exports.serializeAws_restJson1GetServiceRoleForAccountCommand = exports.serializeAws_restJson1GetDeploymentCommand = exports.serializeAws_restJson1GetCoreDeviceCommand = exports.serializeAws_restJson1GetConnectivityInfoCommand = exports.serializeAws_restJson1GetComponentVersionArtifactCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1DisassociateServiceRoleFromAccountCommand = exports.serializeAws_restJson1DescribeComponentCommand = exports.serializeAws_restJson1DeleteDeploymentCommand = exports.serializeAws_restJson1DeleteCoreDeviceCommand = exports.serializeAws_restJson1DeleteComponentCommand = exports.serializeAws_restJson1CreateDeploymentCommand = exports.serializeAws_restJson1CreateComponentVersionCommand = exports.serializeAws_restJson1CancelDeploymentCommand = exports.serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand = exports.serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand = exports.serializeAws_restJson1AssociateServiceRoleToAccountCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateConnectivityInfoCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ResolveComponentCandidatesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListInstalledComponentsCommand = exports.deserializeAws_restJson1ListEffectiveDeploymentsCommand = exports.deserializeAws_restJson1ListDeploymentsCommand = 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 uuid_1 = require("uuid");
@@ -245,6 +245,32 @@ const serializeAws_restJson1DeleteCoreDeviceCommand = async (input, context) =>
245
245
  });
246
246
  };
247
247
  exports.serializeAws_restJson1DeleteCoreDeviceCommand = serializeAws_restJson1DeleteCoreDeviceCommand;
248
+ const serializeAws_restJson1DeleteDeploymentCommand = async (input, context) => {
249
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
250
+ const headers = {};
251
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments/{deploymentId}";
252
+ if (input.deploymentId !== undefined) {
253
+ const labelValue = input.deploymentId;
254
+ if (labelValue.length <= 0) {
255
+ throw new Error("Empty value provided for input HTTP label: deploymentId.");
256
+ }
257
+ resolvedPath = resolvedPath.replace("{deploymentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
258
+ }
259
+ else {
260
+ throw new Error("No value provided for input HTTP label: deploymentId.");
261
+ }
262
+ let body;
263
+ return new protocol_http_1.HttpRequest({
264
+ protocol,
265
+ hostname,
266
+ port,
267
+ method: "DELETE",
268
+ headers,
269
+ path: resolvedPath,
270
+ body,
271
+ });
272
+ };
273
+ exports.serializeAws_restJson1DeleteDeploymentCommand = serializeAws_restJson1DeleteDeploymentCommand;
248
274
  const serializeAws_restJson1DescribeComponentCommand = async (input, context) => {
249
275
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
250
276
  const headers = {};
@@ -1098,6 +1124,9 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
1098
1124
  case "AccessDeniedException":
1099
1125
  case "com.amazonaws.greengrassv2#AccessDeniedException":
1100
1126
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1127
+ case "ConflictException":
1128
+ case "com.amazonaws.greengrassv2#ConflictException":
1129
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1101
1130
  case "InternalServerException":
1102
1131
  case "com.amazonaws.greengrassv2#InternalServerException":
1103
1132
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -1219,6 +1248,54 @@ const deserializeAws_restJson1DeleteCoreDeviceCommandError = async (output, cont
1219
1248
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1220
1249
  }
1221
1250
  };
1251
+ const deserializeAws_restJson1DeleteDeploymentCommand = async (output, context) => {
1252
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1253
+ return deserializeAws_restJson1DeleteDeploymentCommandError(output, context);
1254
+ }
1255
+ const contents = {
1256
+ $metadata: deserializeMetadata(output),
1257
+ };
1258
+ await collectBody(output.body, context);
1259
+ return Promise.resolve(contents);
1260
+ };
1261
+ exports.deserializeAws_restJson1DeleteDeploymentCommand = deserializeAws_restJson1DeleteDeploymentCommand;
1262
+ const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, context) => {
1263
+ const parsedOutput = {
1264
+ ...output,
1265
+ body: await parseBody(output.body, context),
1266
+ };
1267
+ let response;
1268
+ let errorCode = "UnknownError";
1269
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1270
+ switch (errorCode) {
1271
+ case "AccessDeniedException":
1272
+ case "com.amazonaws.greengrassv2#AccessDeniedException":
1273
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1274
+ case "ConflictException":
1275
+ case "com.amazonaws.greengrassv2#ConflictException":
1276
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1277
+ case "InternalServerException":
1278
+ case "com.amazonaws.greengrassv2#InternalServerException":
1279
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1280
+ case "ResourceNotFoundException":
1281
+ case "com.amazonaws.greengrassv2#ResourceNotFoundException":
1282
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1283
+ case "ThrottlingException":
1284
+ case "com.amazonaws.greengrassv2#ThrottlingException":
1285
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1286
+ case "ValidationException":
1287
+ case "com.amazonaws.greengrassv2#ValidationException":
1288
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1289
+ default:
1290
+ const parsedBody = parsedOutput.body;
1291
+ response = new GreengrassV2ServiceException_1.GreengrassV2ServiceException({
1292
+ name: parsedBody.code || parsedBody.Code || errorCode,
1293
+ $fault: "client",
1294
+ $metadata: deserializeMetadata(output),
1295
+ });
1296
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1297
+ }
1298
+ };
1222
1299
  const deserializeAws_restJson1DescribeComponentCommand = async (output, context) => {
1223
1300
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1224
1301
  return deserializeAws_restJson1DescribeComponentCommandError(output, context);
@@ -1785,6 +1862,9 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
1785
1862
  case "InternalServerException":
1786
1863
  case "com.amazonaws.greengrassv2#InternalServerException":
1787
1864
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1865
+ case "ResourceNotFoundException":
1866
+ case "com.amazonaws.greengrassv2#ResourceNotFoundException":
1867
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1788
1868
  case "ThrottlingException":
1789
1869
  case "com.amazonaws.greengrassv2#ThrottlingException":
1790
1870
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
@@ -2905,6 +2985,8 @@ const deserializeAws_restJson1CloudComponentStatus = (output, context) => {
2905
2985
  ? deserializeAws_restJson1StringMap(output.errors, context)
2906
2986
  : undefined,
2907
2987
  message: (0, smithy_client_1.expectString)(output.message),
2988
+ vendorGuidance: (0, smithy_client_1.expectString)(output.vendorGuidance),
2989
+ vendorGuidanceMessage: (0, smithy_client_1.expectString)(output.vendorGuidanceMessage),
2908
2990
  };
2909
2991
  };
2910
2992
  const deserializeAws_restJson1Component = (output, context) => {
@@ -3263,7 +3345,9 @@ const deserializeAws_restJson1ResolvedComponentVersion = (output, context) => {
3263
3345
  arn: (0, smithy_client_1.expectString)(output.arn),
3264
3346
  componentName: (0, smithy_client_1.expectString)(output.componentName),
3265
3347
  componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
3348
+ message: (0, smithy_client_1.expectString)(output.message),
3266
3349
  recipe: output.recipe !== undefined && output.recipe !== null ? context.base64Decoder(output.recipe) : undefined,
3350
+ vendorGuidance: (0, smithy_client_1.expectString)(output.vendorGuidance),
3267
3351
  };
3268
3352
  };
3269
3353
  const deserializeAws_restJson1ResolvedComponentVersionsList = (output, context) => {
@@ -7,6 +7,7 @@ import { CreateComponentVersionCommand, } from "./commands/CreateComponentVersio
7
7
  import { CreateDeploymentCommand, } from "./commands/CreateDeploymentCommand";
8
8
  import { DeleteComponentCommand, } from "./commands/DeleteComponentCommand";
9
9
  import { DeleteCoreDeviceCommand, } from "./commands/DeleteCoreDeviceCommand";
10
+ import { DeleteDeploymentCommand, } from "./commands/DeleteDeploymentCommand";
10
11
  import { DescribeComponentCommand, } from "./commands/DescribeComponentCommand";
11
12
  import { DisassociateServiceRoleFromAccountCommand, } from "./commands/DisassociateServiceRoleFromAccountCommand";
12
13
  import { GetComponentCommand, } from "./commands/GetComponentCommand";
@@ -145,6 +146,20 @@ var GreengrassV2 = (function (_super) {
145
146
  return this.send(command, optionsOrCb);
146
147
  }
147
148
  };
149
+ GreengrassV2.prototype.deleteDeployment = function (args, optionsOrCb, cb) {
150
+ var command = new DeleteDeploymentCommand(args);
151
+ if (typeof optionsOrCb === "function") {
152
+ this.send(command, optionsOrCb);
153
+ }
154
+ else if (typeof cb === "function") {
155
+ if (typeof optionsOrCb !== "object")
156
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
+ this.send(command, optionsOrCb || {}, cb);
158
+ }
159
+ else {
160
+ return this.send(command, optionsOrCb);
161
+ }
162
+ };
148
163
  GreengrassV2.prototype.describeComponent = function (args, optionsOrCb, cb) {
149
164
  var command = new DescribeComponentCommand(args);
150
165
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteDeploymentRequest } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteDeploymentCommand, serializeAws_restJson1DeleteDeploymentCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteDeploymentCommand = (function (_super) {
7
+ __extends(DeleteDeploymentCommand, _super);
8
+ function DeleteDeploymentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteDeploymentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GreengrassV2Client";
18
+ var commandName = "DeleteDeploymentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteDeploymentRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: function (output) { return output; },
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteDeploymentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteDeploymentCommand(input, context);
33
+ };
34
+ DeleteDeploymentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteDeploymentCommand(output, context);
36
+ };
37
+ return DeleteDeploymentCommand;
38
+ }($Command));
39
+ export { DeleteDeploymentCommand };
@@ -6,6 +6,7 @@ export * from "./CreateComponentVersionCommand";
6
6
  export * from "./CreateDeploymentCommand";
7
7
  export * from "./DeleteComponentCommand";
8
8
  export * from "./DeleteCoreDeviceCommand";
9
+ export * from "./DeleteDeploymentCommand";
9
10
  export * from "./DescribeComponentCommand";
10
11
  export * from "./DisassociateServiceRoleFromAccountCommand";
11
12
  export * from "./GetComponentCommand";
@@ -153,6 +153,12 @@ export var CloudComponentState;
153
153
  CloudComponentState["INITIATED"] = "INITIATED";
154
154
  CloudComponentState["REQUESTED"] = "REQUESTED";
155
155
  })(CloudComponentState || (CloudComponentState = {}));
156
+ export var VendorGuidance;
157
+ (function (VendorGuidance) {
158
+ VendorGuidance["ACTIVE"] = "ACTIVE";
159
+ VendorGuidance["DELETED"] = "DELETED";
160
+ VendorGuidance["DISCONTINUED"] = "DISCONTINUED";
161
+ })(VendorGuidance || (VendorGuidance = {}));
156
162
  export var CloudComponentStatus;
157
163
  (function (CloudComponentStatus) {
158
164
  CloudComponentStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -381,6 +387,10 @@ export var DeleteCoreDeviceRequest;
381
387
  (function (DeleteCoreDeviceRequest) {
382
388
  DeleteCoreDeviceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
383
389
  })(DeleteCoreDeviceRequest || (DeleteCoreDeviceRequest = {}));
390
+ export var DeleteDeploymentRequest;
391
+ (function (DeleteDeploymentRequest) {
392
+ DeleteDeploymentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
393
+ })(DeleteDeploymentRequest || (DeleteDeploymentRequest = {}));
384
394
  export var DeploymentStatus;
385
395
  (function (DeploymentStatus) {
386
396
  DeploymentStatus["ACTIVE"] = "ACTIVE";
@@ -263,6 +263,37 @@ export var serializeAws_restJson1DeleteCoreDeviceCommand = function (input, cont
263
263
  }
264
264
  });
265
265
  }); };
266
+ export var serializeAws_restJson1DeleteDeploymentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
267
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
268
+ return __generator(this, function (_c) {
269
+ switch (_c.label) {
270
+ case 0: return [4, context.endpoint()];
271
+ case 1:
272
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
273
+ headers = {};
274
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/deployments/{deploymentId}";
275
+ if (input.deploymentId !== undefined) {
276
+ labelValue = input.deploymentId;
277
+ if (labelValue.length <= 0) {
278
+ throw new Error("Empty value provided for input HTTP label: deploymentId.");
279
+ }
280
+ resolvedPath = resolvedPath.replace("{deploymentId}", __extendedEncodeURIComponent(labelValue));
281
+ }
282
+ else {
283
+ throw new Error("No value provided for input HTTP label: deploymentId.");
284
+ }
285
+ return [2, new __HttpRequest({
286
+ protocol: protocol,
287
+ hostname: hostname,
288
+ port: port,
289
+ method: "DELETE",
290
+ headers: headers,
291
+ path: resolvedPath,
292
+ body: body,
293
+ })];
294
+ }
295
+ });
296
+ }); };
266
297
  export var serializeAws_restJson1DescribeComponentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
267
298
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
268
299
  return __generator(this, function (_c) {
@@ -1308,10 +1339,84 @@ var deserializeAws_restJson1CreateDeploymentCommandError = function (output, con
1308
1339
  switch (_b) {
1309
1340
  case "AccessDeniedException": return [3, 2];
1310
1341
  case "com.amazonaws.greengrassv2#AccessDeniedException": return [3, 2];
1311
- case "InternalServerException": return [3, 4];
1312
- case "com.amazonaws.greengrassv2#InternalServerException": return [3, 4];
1313
- case "RequestAlreadyInProgressException": return [3, 6];
1314
- case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException": return [3, 6];
1342
+ case "ConflictException": return [3, 4];
1343
+ case "com.amazonaws.greengrassv2#ConflictException": return [3, 4];
1344
+ case "InternalServerException": return [3, 6];
1345
+ case "com.amazonaws.greengrassv2#InternalServerException": return [3, 6];
1346
+ case "RequestAlreadyInProgressException": return [3, 8];
1347
+ case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException": return [3, 8];
1348
+ case "ResourceNotFoundException": return [3, 10];
1349
+ case "com.amazonaws.greengrassv2#ResourceNotFoundException": return [3, 10];
1350
+ case "ThrottlingException": return [3, 12];
1351
+ case "com.amazonaws.greengrassv2#ThrottlingException": return [3, 12];
1352
+ case "ValidationException": return [3, 14];
1353
+ case "com.amazonaws.greengrassv2#ValidationException": return [3, 14];
1354
+ }
1355
+ return [3, 16];
1356
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1357
+ case 3: throw _d.sent();
1358
+ case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1359
+ case 5: throw _d.sent();
1360
+ case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1361
+ case 7: throw _d.sent();
1362
+ case 8: return [4, deserializeAws_restJson1RequestAlreadyInProgressExceptionResponse(parsedOutput, context)];
1363
+ case 9: throw _d.sent();
1364
+ case 10: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1365
+ case 11: throw _d.sent();
1366
+ case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1367
+ case 13: throw _d.sent();
1368
+ case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1369
+ case 15: throw _d.sent();
1370
+ case 16:
1371
+ parsedBody = parsedOutput.body;
1372
+ response = new __BaseException({
1373
+ name: parsedBody.code || parsedBody.Code || errorCode,
1374
+ $fault: "client",
1375
+ $metadata: deserializeMetadata(output),
1376
+ });
1377
+ throw __decorateServiceException(response, parsedBody);
1378
+ }
1379
+ });
1380
+ }); };
1381
+ export var deserializeAws_restJson1DeleteComponentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1382
+ var contents;
1383
+ return __generator(this, function (_a) {
1384
+ switch (_a.label) {
1385
+ case 0:
1386
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1387
+ return [2, deserializeAws_restJson1DeleteComponentCommandError(output, context)];
1388
+ }
1389
+ contents = {
1390
+ $metadata: deserializeMetadata(output),
1391
+ };
1392
+ return [4, collectBody(output.body, context)];
1393
+ case 1:
1394
+ _a.sent();
1395
+ return [2, Promise.resolve(contents)];
1396
+ }
1397
+ });
1398
+ }); };
1399
+ var deserializeAws_restJson1DeleteComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1400
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
1401
+ var _c;
1402
+ return __generator(this, function (_d) {
1403
+ switch (_d.label) {
1404
+ case 0:
1405
+ _a = [__assign({}, output)];
1406
+ _c = {};
1407
+ return [4, parseBody(output.body, context)];
1408
+ case 1:
1409
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1410
+ errorCode = "UnknownError";
1411
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1412
+ _b = errorCode;
1413
+ switch (_b) {
1414
+ case "AccessDeniedException": return [3, 2];
1415
+ case "com.amazonaws.greengrassv2#AccessDeniedException": return [3, 2];
1416
+ case "ConflictException": return [3, 4];
1417
+ case "com.amazonaws.greengrassv2#ConflictException": return [3, 4];
1418
+ case "InternalServerException": return [3, 6];
1419
+ case "com.amazonaws.greengrassv2#InternalServerException": return [3, 6];
1315
1420
  case "ResourceNotFoundException": return [3, 8];
1316
1421
  case "com.amazonaws.greengrassv2#ResourceNotFoundException": return [3, 8];
1317
1422
  case "ThrottlingException": return [3, 10];
@@ -1322,9 +1427,9 @@ var deserializeAws_restJson1CreateDeploymentCommandError = function (output, con
1322
1427
  return [3, 14];
1323
1428
  case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1324
1429
  case 3: throw _d.sent();
1325
- case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1430
+ case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1326
1431
  case 5: throw _d.sent();
1327
- case 6: return [4, deserializeAws_restJson1RequestAlreadyInProgressExceptionResponse(parsedOutput, context)];
1432
+ case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1328
1433
  case 7: throw _d.sent();
1329
1434
  case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1330
1435
  case 9: throw _d.sent();
@@ -1343,13 +1448,13 @@ var deserializeAws_restJson1CreateDeploymentCommandError = function (output, con
1343
1448
  }
1344
1449
  });
1345
1450
  }); };
1346
- export var deserializeAws_restJson1DeleteComponentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1451
+ export var deserializeAws_restJson1DeleteCoreDeviceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1347
1452
  var contents;
1348
1453
  return __generator(this, function (_a) {
1349
1454
  switch (_a.label) {
1350
1455
  case 0:
1351
1456
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1352
- return [2, deserializeAws_restJson1DeleteComponentCommandError(output, context)];
1457
+ return [2, deserializeAws_restJson1DeleteCoreDeviceCommandError(output, context)];
1353
1458
  }
1354
1459
  contents = {
1355
1460
  $metadata: deserializeMetadata(output),
@@ -1361,7 +1466,7 @@ export var deserializeAws_restJson1DeleteComponentCommand = function (output, co
1361
1466
  }
1362
1467
  });
1363
1468
  }); };
1364
- var deserializeAws_restJson1DeleteComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1469
+ var deserializeAws_restJson1DeleteCoreDeviceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1365
1470
  var parsedOutput, _a, response, errorCode, _b, parsedBody;
1366
1471
  var _c;
1367
1472
  return __generator(this, function (_d) {
@@ -1413,13 +1518,13 @@ var deserializeAws_restJson1DeleteComponentCommandError = function (output, cont
1413
1518
  }
1414
1519
  });
1415
1520
  }); };
1416
- export var deserializeAws_restJson1DeleteCoreDeviceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1521
+ export var deserializeAws_restJson1DeleteDeploymentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1417
1522
  var contents;
1418
1523
  return __generator(this, function (_a) {
1419
1524
  switch (_a.label) {
1420
1525
  case 0:
1421
1526
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1422
- return [2, deserializeAws_restJson1DeleteCoreDeviceCommandError(output, context)];
1527
+ return [2, deserializeAws_restJson1DeleteDeploymentCommandError(output, context)];
1423
1528
  }
1424
1529
  contents = {
1425
1530
  $metadata: deserializeMetadata(output),
@@ -1431,7 +1536,7 @@ export var deserializeAws_restJson1DeleteCoreDeviceCommand = function (output, c
1431
1536
  }
1432
1537
  });
1433
1538
  }); };
1434
- var deserializeAws_restJson1DeleteCoreDeviceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1539
+ var deserializeAws_restJson1DeleteDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1435
1540
  var parsedOutput, _a, response, errorCode, _b, parsedBody;
1436
1541
  var _c;
1437
1542
  return __generator(this, function (_d) {
@@ -2258,21 +2363,25 @@ var deserializeAws_restJson1ListComponentsCommandError = function (output, conte
2258
2363
  case "com.amazonaws.greengrassv2#AccessDeniedException": return [3, 2];
2259
2364
  case "InternalServerException": return [3, 4];
2260
2365
  case "com.amazonaws.greengrassv2#InternalServerException": return [3, 4];
2261
- case "ThrottlingException": return [3, 6];
2262
- case "com.amazonaws.greengrassv2#ThrottlingException": return [3, 6];
2263
- case "ValidationException": return [3, 8];
2264
- case "com.amazonaws.greengrassv2#ValidationException": return [3, 8];
2366
+ case "ResourceNotFoundException": return [3, 6];
2367
+ case "com.amazonaws.greengrassv2#ResourceNotFoundException": return [3, 6];
2368
+ case "ThrottlingException": return [3, 8];
2369
+ case "com.amazonaws.greengrassv2#ThrottlingException": return [3, 8];
2370
+ case "ValidationException": return [3, 10];
2371
+ case "com.amazonaws.greengrassv2#ValidationException": return [3, 10];
2265
2372
  }
2266
- return [3, 10];
2373
+ return [3, 12];
2267
2374
  case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2268
2375
  case 3: throw _d.sent();
2269
2376
  case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2270
2377
  case 5: throw _d.sent();
2271
- case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2378
+ case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2272
2379
  case 7: throw _d.sent();
2273
- case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2380
+ case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2274
2381
  case 9: throw _d.sent();
2275
- case 10:
2382
+ case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2383
+ case 11: throw _d.sent();
2384
+ case 12:
2276
2385
  parsedBody = parsedOutput.body;
2277
2386
  response = new __BaseException({
2278
2387
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -3493,6 +3602,8 @@ var deserializeAws_restJson1CloudComponentStatus = function (output, context) {
3493
3602
  ? deserializeAws_restJson1StringMap(output.errors, context)
3494
3603
  : undefined,
3495
3604
  message: __expectString(output.message),
3605
+ vendorGuidance: __expectString(output.vendorGuidance),
3606
+ vendorGuidanceMessage: __expectString(output.vendorGuidanceMessage),
3496
3607
  };
3497
3608
  };
3498
3609
  var deserializeAws_restJson1Component = function (output, context) {
@@ -3849,7 +3960,9 @@ var deserializeAws_restJson1ResolvedComponentVersion = function (output, context
3849
3960
  arn: __expectString(output.arn),
3850
3961
  componentName: __expectString(output.componentName),
3851
3962
  componentVersion: __expectString(output.componentVersion),
3963
+ message: __expectString(output.message),
3852
3964
  recipe: output.recipe !== undefined && output.recipe !== null ? context.base64Decoder(output.recipe) : undefined,
3965
+ vendorGuidance: __expectString(output.vendorGuidance),
3853
3966
  };
3854
3967
  };
3855
3968
  var deserializeAws_restJson1ResolvedComponentVersionsList = function (output, context) {