@aws-sdk/client-greengrassv2 3.52.0 → 3.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-greengrassv2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
26
+
27
+
28
+ ### Features
29
+
30
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
37
 
8
38
  **Note:** Version bump only for package @aws-sdk/client-greengrassv2
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GreengrassV2ServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./GreengrassV2"), exports);
5
6
  tslib_1.__exportStar(require("./GreengrassV2Client"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var GreengrassV2ServiceException_1 = require("./models/GreengrassV2ServiceException");
11
+ Object.defineProperty(exports, "GreengrassV2ServiceException", { enumerable: true, get: function () { return GreengrassV2ServiceException_1.GreengrassV2ServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GreengrassV2ServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class GreengrassV2ServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, GreengrassV2ServiceException.prototype);
9
+ }
10
+ }
11
+ exports.GreengrassV2ServiceException = GreengrassV2ServiceException;
@@ -1,8 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeploymentPolicies = exports.DeploymentFailureHandlingPolicy = exports.DeploymentConfigurationValidationPolicy = exports.DeploymentComponentUpdatePolicy = exports.DeploymentComponentUpdatePolicyAction = exports.CreateComponentVersionResponse = 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.CancelDeploymentResponse = exports.CancelDeploymentRequest = exports.BatchDisassociateClientDeviceFromCoreDeviceResponse = exports.DisassociateClientDeviceFromCoreDeviceErrorEntry = exports.BatchDisassociateClientDeviceFromCoreDeviceRequest = exports.DisassociateClientDeviceFromCoreDeviceEntry = exports.BatchAssociateClientDeviceWithCoreDeviceResponse = exports.BatchAssociateClientDeviceWithCoreDeviceRequest = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.AssociateServiceRoleToAccountResponse = exports.AssociateServiceRoleToAccountRequest = exports.AssociatedClientDevice = exports.AssociateClientDeviceWithCoreDeviceErrorEntry = exports.AssociateClientDeviceWithCoreDeviceEntry = void 0;
4
- exports.InstalledComponent = exports.InstalledComponentLifecycleState = exports.ListInstalledComponentsRequest = exports.ListEffectiveDeploymentsResponse = exports.ListEffectiveDeploymentsRequest = exports.ListDeploymentsResponse = exports.ListDeploymentsRequest = exports.ListCoreDevicesResponse = 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 = 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 = void 0;
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;
6
+ const GreengrassV2ServiceException_1 = require("./GreengrassV2ServiceException");
7
+ class AccessDeniedException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ this.name = "AccessDeniedException";
15
+ this.$fault = "client";
16
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
6
20
  var AssociateClientDeviceWithCoreDeviceEntry;
7
21
  (function (AssociateClientDeviceWithCoreDeviceEntry) {
8
22
  AssociateClientDeviceWithCoreDeviceEntry.filterSensitiveLog = (obj) => ({
@@ -33,6 +47,20 @@ var AssociateServiceRoleToAccountResponse;
33
47
  ...obj,
34
48
  });
35
49
  })(AssociateServiceRoleToAccountResponse = exports.AssociateServiceRoleToAccountResponse || (exports.AssociateServiceRoleToAccountResponse = {}));
50
+ class InternalServerException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "InternalServerException",
54
+ $fault: "server",
55
+ ...opts,
56
+ });
57
+ this.name = "InternalServerException";
58
+ this.$fault = "server";
59
+ Object.setPrototypeOf(this, InternalServerException.prototype);
60
+ this.retryAfterSeconds = opts.retryAfterSeconds;
61
+ }
62
+ }
63
+ exports.InternalServerException = InternalServerException;
36
64
  var ValidationExceptionField;
37
65
  (function (ValidationExceptionField) {
38
66
  ValidationExceptionField.filterSensitiveLog = (obj) => ({
@@ -46,6 +74,21 @@ var ValidationExceptionReason;
46
74
  ValidationExceptionReason["OTHER"] = "OTHER";
47
75
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
48
76
  })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
77
+ class ValidationException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
78
+ constructor(opts) {
79
+ super({
80
+ name: "ValidationException",
81
+ $fault: "client",
82
+ ...opts,
83
+ });
84
+ this.name = "ValidationException";
85
+ this.$fault = "client";
86
+ Object.setPrototypeOf(this, ValidationException.prototype);
87
+ this.reason = opts.reason;
88
+ this.fields = opts.fields;
89
+ }
90
+ }
91
+ exports.ValidationException = ValidationException;
49
92
  var BatchAssociateClientDeviceWithCoreDeviceRequest;
50
93
  (function (BatchAssociateClientDeviceWithCoreDeviceRequest) {
51
94
  BatchAssociateClientDeviceWithCoreDeviceRequest.filterSensitiveLog = (obj) => ({
@@ -58,6 +101,37 @@ var BatchAssociateClientDeviceWithCoreDeviceResponse;
58
101
  ...obj,
59
102
  });
60
103
  })(BatchAssociateClientDeviceWithCoreDeviceResponse = exports.BatchAssociateClientDeviceWithCoreDeviceResponse || (exports.BatchAssociateClientDeviceWithCoreDeviceResponse = {}));
104
+ class ResourceNotFoundException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
105
+ constructor(opts) {
106
+ super({
107
+ name: "ResourceNotFoundException",
108
+ $fault: "client",
109
+ ...opts,
110
+ });
111
+ this.name = "ResourceNotFoundException";
112
+ this.$fault = "client";
113
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
114
+ this.resourceId = opts.resourceId;
115
+ this.resourceType = opts.resourceType;
116
+ }
117
+ }
118
+ exports.ResourceNotFoundException = ResourceNotFoundException;
119
+ class ThrottlingException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "ThrottlingException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ this.name = "ThrottlingException";
127
+ this.$fault = "client";
128
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
129
+ this.quotaCode = opts.quotaCode;
130
+ this.serviceCode = opts.serviceCode;
131
+ this.retryAfterSeconds = opts.retryAfterSeconds;
132
+ }
133
+ }
134
+ exports.ThrottlingException = ThrottlingException;
61
135
  var DisassociateClientDeviceFromCoreDeviceEntry;
62
136
  (function (DisassociateClientDeviceFromCoreDeviceEntry) {
63
137
  DisassociateClientDeviceFromCoreDeviceEntry.filterSensitiveLog = (obj) => ({
@@ -94,6 +168,21 @@ var CancelDeploymentResponse;
94
168
  ...obj,
95
169
  });
96
170
  })(CancelDeploymentResponse = exports.CancelDeploymentResponse || (exports.CancelDeploymentResponse = {}));
171
+ class ConflictException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
172
+ constructor(opts) {
173
+ super({
174
+ name: "ConflictException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ this.name = "ConflictException";
179
+ this.$fault = "client";
180
+ Object.setPrototypeOf(this, ConflictException.prototype);
181
+ this.resourceId = opts.resourceId;
182
+ this.resourceType = opts.resourceType;
183
+ }
184
+ }
185
+ exports.ConflictException = ConflictException;
97
186
  var CloudComponentState;
98
187
  (function (CloudComponentState) {
99
188
  CloudComponentState["DEPLOYABLE"] = "DEPLOYABLE";
@@ -269,6 +358,36 @@ var CreateComponentVersionResponse;
269
358
  ...obj,
270
359
  });
271
360
  })(CreateComponentVersionResponse = exports.CreateComponentVersionResponse || (exports.CreateComponentVersionResponse = {}));
361
+ class RequestAlreadyInProgressException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
362
+ constructor(opts) {
363
+ super({
364
+ name: "RequestAlreadyInProgressException",
365
+ $fault: "client",
366
+ ...opts,
367
+ });
368
+ this.name = "RequestAlreadyInProgressException";
369
+ this.$fault = "client";
370
+ Object.setPrototypeOf(this, RequestAlreadyInProgressException.prototype);
371
+ }
372
+ }
373
+ exports.RequestAlreadyInProgressException = RequestAlreadyInProgressException;
374
+ class ServiceQuotaExceededException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
375
+ constructor(opts) {
376
+ super({
377
+ name: "ServiceQuotaExceededException",
378
+ $fault: "client",
379
+ ...opts,
380
+ });
381
+ this.name = "ServiceQuotaExceededException";
382
+ this.$fault = "client";
383
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
384
+ this.resourceId = opts.resourceId;
385
+ this.resourceType = opts.resourceType;
386
+ this.quotaCode = opts.quotaCode;
387
+ this.serviceCode = opts.serviceCode;
388
+ }
389
+ }
390
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
272
391
  var DeploymentComponentUpdatePolicyAction;
273
392
  (function (DeploymentComponentUpdatePolicyAction) {
274
393
  DeploymentComponentUpdatePolicyAction["NOTIFY_COMPONENTS"] = "NOTIFY_COMPONENTS";