@aws-sdk/client-greengrassv2 3.87.0 → 3.95.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 +27 -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,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-greengrassv2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.94.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.93.0...v3.94.0) (2022-05-18)
15
+
16
+
17
+ ### Features
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.92.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.91.0...v3.92.0) (2022-05-16)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-greengrassv2
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
7
34
 
8
35
  **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";