@aws-sdk/client-greengrassv2 3.933.0 → 3.935.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.
package/dist-cjs/index.js CHANGED
@@ -143,12 +143,6 @@ let InternalServerException$1 = class InternalServerException extends Greengrass
143
143
  this.retryAfterSeconds = opts.retryAfterSeconds;
144
144
  }
145
145
  };
146
- const ValidationExceptionReason = {
147
- CANNOT_PARSE: "CANNOT_PARSE",
148
- FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
149
- OTHER: "OTHER",
150
- UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
151
- };
152
146
  let ValidationException$1 = class ValidationException extends GreengrassV2ServiceException$1 {
153
147
  name = "ValidationException";
154
148
  $fault = "client";
@@ -215,46 +209,6 @@ let ConflictException$1 = class ConflictException extends GreengrassV2ServiceExc
215
209
  this.resourceType = opts.resourceType;
216
210
  }
217
211
  };
218
- const CloudComponentState = {
219
- DEPLOYABLE: "DEPLOYABLE",
220
- DEPRECATED: "DEPRECATED",
221
- FAILED: "FAILED",
222
- INITIATED: "INITIATED",
223
- REQUESTED: "REQUESTED",
224
- };
225
- const VendorGuidance = {
226
- ACTIVE: "ACTIVE",
227
- DELETED: "DELETED",
228
- DISCONTINUED: "DISCONTINUED",
229
- };
230
- const ComponentDependencyType = {
231
- HARD: "HARD",
232
- SOFT: "SOFT",
233
- };
234
- const ComponentVisibilityScope = {
235
- PRIVATE: "PRIVATE",
236
- PUBLIC: "PUBLIC",
237
- };
238
- const CoreDeviceStatus = {
239
- HEALTHY: "HEALTHY",
240
- UNHEALTHY: "UNHEALTHY",
241
- };
242
- const LambdaEventSourceType = {
243
- IOT_CORE: "IOT_CORE",
244
- PUB_SUB: "PUB_SUB",
245
- };
246
- const LambdaInputPayloadEncodingType = {
247
- BINARY: "binary",
248
- JSON: "json",
249
- };
250
- const LambdaFilesystemPermission = {
251
- RO: "ro",
252
- RW: "rw",
253
- };
254
- const LambdaIsolationMode = {
255
- GREENGRASS_CONTAINER: "GreengrassContainer",
256
- NO_CONTAINER: "NoContainer",
257
- };
258
212
  let RequestAlreadyInProgressException$1 = class RequestAlreadyInProgressException extends GreengrassV2ServiceException$1 {
259
213
  name = "RequestAlreadyInProgressException";
260
214
  $fault = "client";
@@ -287,70 +241,6 @@ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extend
287
241
  this.serviceCode = opts.serviceCode;
288
242
  }
289
243
  };
290
- const DeploymentComponentUpdatePolicyAction = {
291
- NOTIFY_COMPONENTS: "NOTIFY_COMPONENTS",
292
- SKIP_NOTIFY_COMPONENTS: "SKIP_NOTIFY_COMPONENTS",
293
- };
294
- const DeploymentFailureHandlingPolicy = {
295
- DO_NOTHING: "DO_NOTHING",
296
- ROLLBACK: "ROLLBACK",
297
- };
298
- const IoTJobAbortAction = {
299
- CANCEL: "CANCEL",
300
- };
301
- const IoTJobExecutionFailureType = {
302
- ALL: "ALL",
303
- FAILED: "FAILED",
304
- REJECTED: "REJECTED",
305
- TIMED_OUT: "TIMED_OUT",
306
- };
307
- const DeploymentStatus = {
308
- ACTIVE: "ACTIVE",
309
- CANCELED: "CANCELED",
310
- COMPLETED: "COMPLETED",
311
- FAILED: "FAILED",
312
- INACTIVE: "INACTIVE",
313
- };
314
- const DeploymentHistoryFilter = {
315
- ALL: "ALL",
316
- LATEST_ONLY: "LATEST_ONLY",
317
- };
318
- const EffectiveDeploymentExecutionStatus = {
319
- CANCELED: "CANCELED",
320
- COMPLETED: "COMPLETED",
321
- FAILED: "FAILED",
322
- IN_PROGRESS: "IN_PROGRESS",
323
- QUEUED: "QUEUED",
324
- REJECTED: "REJECTED",
325
- SUCCEEDED: "SUCCEEDED",
326
- TIMED_OUT: "TIMED_OUT",
327
- };
328
- const RecipeOutputFormat = {
329
- JSON: "JSON",
330
- YAML: "YAML",
331
- };
332
- const IotEndpointType = {
333
- fips: "fips",
334
- standard: "standard",
335
- };
336
- const S3EndpointType = {
337
- GLOBAL: "GLOBAL",
338
- REGIONAL: "REGIONAL",
339
- };
340
- const InstalledComponentTopologyFilter = {
341
- ALL: "ALL",
342
- ROOT: "ROOT",
343
- };
344
- const InstalledComponentLifecycleState = {
345
- BROKEN: "BROKEN",
346
- ERRORED: "ERRORED",
347
- FINISHED: "FINISHED",
348
- INSTALLED: "INSTALLED",
349
- NEW: "NEW",
350
- RUNNING: "RUNNING",
351
- STARTING: "STARTING",
352
- STOPPING: "STOPPING",
353
- };
354
244
 
355
245
  const _AA = "AssociatedAt";
356
246
  const _ACD = "AssociatedClientDevice";
@@ -2297,6 +2187,117 @@ const paginateListEffectiveDeployments = core.createPaginator(GreengrassV2Client
2297
2187
 
2298
2188
  const paginateListInstalledComponents = core.createPaginator(GreengrassV2Client, ListInstalledComponentsCommand, "nextToken", "nextToken", "maxResults");
2299
2189
 
2190
+ const ValidationExceptionReason = {
2191
+ CANNOT_PARSE: "CANNOT_PARSE",
2192
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
2193
+ OTHER: "OTHER",
2194
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
2195
+ };
2196
+ const CloudComponentState = {
2197
+ DEPLOYABLE: "DEPLOYABLE",
2198
+ DEPRECATED: "DEPRECATED",
2199
+ FAILED: "FAILED",
2200
+ INITIATED: "INITIATED",
2201
+ REQUESTED: "REQUESTED",
2202
+ };
2203
+ const VendorGuidance = {
2204
+ ACTIVE: "ACTIVE",
2205
+ DELETED: "DELETED",
2206
+ DISCONTINUED: "DISCONTINUED",
2207
+ };
2208
+ const ComponentDependencyType = {
2209
+ HARD: "HARD",
2210
+ SOFT: "SOFT",
2211
+ };
2212
+ const ComponentVisibilityScope = {
2213
+ PRIVATE: "PRIVATE",
2214
+ PUBLIC: "PUBLIC",
2215
+ };
2216
+ const CoreDeviceStatus = {
2217
+ HEALTHY: "HEALTHY",
2218
+ UNHEALTHY: "UNHEALTHY",
2219
+ };
2220
+ const LambdaEventSourceType = {
2221
+ IOT_CORE: "IOT_CORE",
2222
+ PUB_SUB: "PUB_SUB",
2223
+ };
2224
+ const LambdaInputPayloadEncodingType = {
2225
+ BINARY: "binary",
2226
+ JSON: "json",
2227
+ };
2228
+ const LambdaFilesystemPermission = {
2229
+ RO: "ro",
2230
+ RW: "rw",
2231
+ };
2232
+ const LambdaIsolationMode = {
2233
+ GREENGRASS_CONTAINER: "GreengrassContainer",
2234
+ NO_CONTAINER: "NoContainer",
2235
+ };
2236
+ const DeploymentComponentUpdatePolicyAction = {
2237
+ NOTIFY_COMPONENTS: "NOTIFY_COMPONENTS",
2238
+ SKIP_NOTIFY_COMPONENTS: "SKIP_NOTIFY_COMPONENTS",
2239
+ };
2240
+ const DeploymentFailureHandlingPolicy = {
2241
+ DO_NOTHING: "DO_NOTHING",
2242
+ ROLLBACK: "ROLLBACK",
2243
+ };
2244
+ const IoTJobAbortAction = {
2245
+ CANCEL: "CANCEL",
2246
+ };
2247
+ const IoTJobExecutionFailureType = {
2248
+ ALL: "ALL",
2249
+ FAILED: "FAILED",
2250
+ REJECTED: "REJECTED",
2251
+ TIMED_OUT: "TIMED_OUT",
2252
+ };
2253
+ const DeploymentStatus = {
2254
+ ACTIVE: "ACTIVE",
2255
+ CANCELED: "CANCELED",
2256
+ COMPLETED: "COMPLETED",
2257
+ FAILED: "FAILED",
2258
+ INACTIVE: "INACTIVE",
2259
+ };
2260
+ const DeploymentHistoryFilter = {
2261
+ ALL: "ALL",
2262
+ LATEST_ONLY: "LATEST_ONLY",
2263
+ };
2264
+ const EffectiveDeploymentExecutionStatus = {
2265
+ CANCELED: "CANCELED",
2266
+ COMPLETED: "COMPLETED",
2267
+ FAILED: "FAILED",
2268
+ IN_PROGRESS: "IN_PROGRESS",
2269
+ QUEUED: "QUEUED",
2270
+ REJECTED: "REJECTED",
2271
+ SUCCEEDED: "SUCCEEDED",
2272
+ TIMED_OUT: "TIMED_OUT",
2273
+ };
2274
+ const RecipeOutputFormat = {
2275
+ JSON: "JSON",
2276
+ YAML: "YAML",
2277
+ };
2278
+ const IotEndpointType = {
2279
+ fips: "fips",
2280
+ standard: "standard",
2281
+ };
2282
+ const S3EndpointType = {
2283
+ GLOBAL: "GLOBAL",
2284
+ REGIONAL: "REGIONAL",
2285
+ };
2286
+ const InstalledComponentTopologyFilter = {
2287
+ ALL: "ALL",
2288
+ ROOT: "ROOT",
2289
+ };
2290
+ const InstalledComponentLifecycleState = {
2291
+ BROKEN: "BROKEN",
2292
+ ERRORED: "ERRORED",
2293
+ FINISHED: "FINISHED",
2294
+ INSTALLED: "INSTALLED",
2295
+ NEW: "NEW",
2296
+ RUNNING: "RUNNING",
2297
+ STARTING: "STARTING",
2298
+ STOPPING: "STOPPING",
2299
+ };
2300
+
2300
2301
  Object.defineProperty(exports, "$Command", {
2301
2302
  enumerable: true,
2302
2303
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./GreengrassV2Client";
2
2
  export * from "./GreengrassV2";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { GreengrassV2ServiceException } from "./models/GreengrassV2ServiceException";
@@ -0,0 +1,110 @@
1
+ export const ValidationExceptionReason = {
2
+ CANNOT_PARSE: "CANNOT_PARSE",
3
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
4
+ OTHER: "OTHER",
5
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
6
+ };
7
+ export const CloudComponentState = {
8
+ DEPLOYABLE: "DEPLOYABLE",
9
+ DEPRECATED: "DEPRECATED",
10
+ FAILED: "FAILED",
11
+ INITIATED: "INITIATED",
12
+ REQUESTED: "REQUESTED",
13
+ };
14
+ export const VendorGuidance = {
15
+ ACTIVE: "ACTIVE",
16
+ DELETED: "DELETED",
17
+ DISCONTINUED: "DISCONTINUED",
18
+ };
19
+ export const ComponentDependencyType = {
20
+ HARD: "HARD",
21
+ SOFT: "SOFT",
22
+ };
23
+ export const ComponentVisibilityScope = {
24
+ PRIVATE: "PRIVATE",
25
+ PUBLIC: "PUBLIC",
26
+ };
27
+ export const CoreDeviceStatus = {
28
+ HEALTHY: "HEALTHY",
29
+ UNHEALTHY: "UNHEALTHY",
30
+ };
31
+ export const LambdaEventSourceType = {
32
+ IOT_CORE: "IOT_CORE",
33
+ PUB_SUB: "PUB_SUB",
34
+ };
35
+ export const LambdaInputPayloadEncodingType = {
36
+ BINARY: "binary",
37
+ JSON: "json",
38
+ };
39
+ export const LambdaFilesystemPermission = {
40
+ RO: "ro",
41
+ RW: "rw",
42
+ };
43
+ export const LambdaIsolationMode = {
44
+ GREENGRASS_CONTAINER: "GreengrassContainer",
45
+ NO_CONTAINER: "NoContainer",
46
+ };
47
+ export const DeploymentComponentUpdatePolicyAction = {
48
+ NOTIFY_COMPONENTS: "NOTIFY_COMPONENTS",
49
+ SKIP_NOTIFY_COMPONENTS: "SKIP_NOTIFY_COMPONENTS",
50
+ };
51
+ export const DeploymentFailureHandlingPolicy = {
52
+ DO_NOTHING: "DO_NOTHING",
53
+ ROLLBACK: "ROLLBACK",
54
+ };
55
+ export const IoTJobAbortAction = {
56
+ CANCEL: "CANCEL",
57
+ };
58
+ export const IoTJobExecutionFailureType = {
59
+ ALL: "ALL",
60
+ FAILED: "FAILED",
61
+ REJECTED: "REJECTED",
62
+ TIMED_OUT: "TIMED_OUT",
63
+ };
64
+ export const DeploymentStatus = {
65
+ ACTIVE: "ACTIVE",
66
+ CANCELED: "CANCELED",
67
+ COMPLETED: "COMPLETED",
68
+ FAILED: "FAILED",
69
+ INACTIVE: "INACTIVE",
70
+ };
71
+ export const DeploymentHistoryFilter = {
72
+ ALL: "ALL",
73
+ LATEST_ONLY: "LATEST_ONLY",
74
+ };
75
+ export const EffectiveDeploymentExecutionStatus = {
76
+ CANCELED: "CANCELED",
77
+ COMPLETED: "COMPLETED",
78
+ FAILED: "FAILED",
79
+ IN_PROGRESS: "IN_PROGRESS",
80
+ QUEUED: "QUEUED",
81
+ REJECTED: "REJECTED",
82
+ SUCCEEDED: "SUCCEEDED",
83
+ TIMED_OUT: "TIMED_OUT",
84
+ };
85
+ export const RecipeOutputFormat = {
86
+ JSON: "JSON",
87
+ YAML: "YAML",
88
+ };
89
+ export const IotEndpointType = {
90
+ fips: "fips",
91
+ standard: "standard",
92
+ };
93
+ export const S3EndpointType = {
94
+ GLOBAL: "GLOBAL",
95
+ REGIONAL: "REGIONAL",
96
+ };
97
+ export const InstalledComponentTopologyFilter = {
98
+ ALL: "ALL",
99
+ ROOT: "ROOT",
100
+ };
101
+ export const InstalledComponentLifecycleState = {
102
+ BROKEN: "BROKEN",
103
+ ERRORED: "ERRORED",
104
+ FINISHED: "FINISHED",
105
+ INSTALLED: "INSTALLED",
106
+ NEW: "NEW",
107
+ RUNNING: "RUNNING",
108
+ STARTING: "STARTING",
109
+ STOPPING: "STOPPING",
110
+ };
@@ -0,0 +1,125 @@
1
+ import { GreengrassV2ServiceException as __BaseException } from "./GreengrassV2ServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class InternalServerException extends __BaseException {
15
+ name = "InternalServerException";
16
+ $fault = "server";
17
+ retryAfterSeconds;
18
+ constructor(opts) {
19
+ super({
20
+ name: "InternalServerException",
21
+ $fault: "server",
22
+ ...opts,
23
+ });
24
+ Object.setPrototypeOf(this, InternalServerException.prototype);
25
+ this.retryAfterSeconds = opts.retryAfterSeconds;
26
+ }
27
+ }
28
+ export class ValidationException extends __BaseException {
29
+ name = "ValidationException";
30
+ $fault = "client";
31
+ reason;
32
+ fields;
33
+ constructor(opts) {
34
+ super({
35
+ name: "ValidationException",
36
+ $fault: "client",
37
+ ...opts,
38
+ });
39
+ Object.setPrototypeOf(this, ValidationException.prototype);
40
+ this.reason = opts.reason;
41
+ this.fields = opts.fields;
42
+ }
43
+ }
44
+ export class ResourceNotFoundException extends __BaseException {
45
+ name = "ResourceNotFoundException";
46
+ $fault = "client";
47
+ resourceId;
48
+ resourceType;
49
+ constructor(opts) {
50
+ super({
51
+ name: "ResourceNotFoundException",
52
+ $fault: "client",
53
+ ...opts,
54
+ });
55
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
56
+ this.resourceId = opts.resourceId;
57
+ this.resourceType = opts.resourceType;
58
+ }
59
+ }
60
+ export class ThrottlingException extends __BaseException {
61
+ name = "ThrottlingException";
62
+ $fault = "client";
63
+ quotaCode;
64
+ serviceCode;
65
+ retryAfterSeconds;
66
+ constructor(opts) {
67
+ super({
68
+ name: "ThrottlingException",
69
+ $fault: "client",
70
+ ...opts,
71
+ });
72
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
73
+ this.quotaCode = opts.quotaCode;
74
+ this.serviceCode = opts.serviceCode;
75
+ this.retryAfterSeconds = opts.retryAfterSeconds;
76
+ }
77
+ }
78
+ export class ConflictException extends __BaseException {
79
+ name = "ConflictException";
80
+ $fault = "client";
81
+ resourceId;
82
+ resourceType;
83
+ constructor(opts) {
84
+ super({
85
+ name: "ConflictException",
86
+ $fault: "client",
87
+ ...opts,
88
+ });
89
+ Object.setPrototypeOf(this, ConflictException.prototype);
90
+ this.resourceId = opts.resourceId;
91
+ this.resourceType = opts.resourceType;
92
+ }
93
+ }
94
+ export class RequestAlreadyInProgressException extends __BaseException {
95
+ name = "RequestAlreadyInProgressException";
96
+ $fault = "client";
97
+ constructor(opts) {
98
+ super({
99
+ name: "RequestAlreadyInProgressException",
100
+ $fault: "client",
101
+ ...opts,
102
+ });
103
+ Object.setPrototypeOf(this, RequestAlreadyInProgressException.prototype);
104
+ }
105
+ }
106
+ export class ServiceQuotaExceededException extends __BaseException {
107
+ name = "ServiceQuotaExceededException";
108
+ $fault = "client";
109
+ resourceId;
110
+ resourceType;
111
+ quotaCode;
112
+ serviceCode;
113
+ constructor(opts) {
114
+ super({
115
+ name: "ServiceQuotaExceededException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
120
+ this.resourceId = opts.resourceId;
121
+ this.resourceType = opts.resourceType;
122
+ this.quotaCode = opts.quotaCode;
123
+ this.serviceCode = opts.serviceCode;
124
+ }
125
+ }