@aws-sdk/client-greengrassv2 3.934.0 → 3.936.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.
@@ -1,235 +1 @@
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 const ValidationExceptionReason = {
29
- CANNOT_PARSE: "CANNOT_PARSE",
30
- FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
31
- OTHER: "OTHER",
32
- UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
33
- };
34
- export class ValidationException extends __BaseException {
35
- name = "ValidationException";
36
- $fault = "client";
37
- reason;
38
- fields;
39
- constructor(opts) {
40
- super({
41
- name: "ValidationException",
42
- $fault: "client",
43
- ...opts,
44
- });
45
- Object.setPrototypeOf(this, ValidationException.prototype);
46
- this.reason = opts.reason;
47
- this.fields = opts.fields;
48
- }
49
- }
50
- export class ResourceNotFoundException extends __BaseException {
51
- name = "ResourceNotFoundException";
52
- $fault = "client";
53
- resourceId;
54
- resourceType;
55
- constructor(opts) {
56
- super({
57
- name: "ResourceNotFoundException",
58
- $fault: "client",
59
- ...opts,
60
- });
61
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
62
- this.resourceId = opts.resourceId;
63
- this.resourceType = opts.resourceType;
64
- }
65
- }
66
- export class ThrottlingException extends __BaseException {
67
- name = "ThrottlingException";
68
- $fault = "client";
69
- quotaCode;
70
- serviceCode;
71
- retryAfterSeconds;
72
- constructor(opts) {
73
- super({
74
- name: "ThrottlingException",
75
- $fault: "client",
76
- ...opts,
77
- });
78
- Object.setPrototypeOf(this, ThrottlingException.prototype);
79
- this.quotaCode = opts.quotaCode;
80
- this.serviceCode = opts.serviceCode;
81
- this.retryAfterSeconds = opts.retryAfterSeconds;
82
- }
83
- }
84
- export class ConflictException extends __BaseException {
85
- name = "ConflictException";
86
- $fault = "client";
87
- resourceId;
88
- resourceType;
89
- constructor(opts) {
90
- super({
91
- name: "ConflictException",
92
- $fault: "client",
93
- ...opts,
94
- });
95
- Object.setPrototypeOf(this, ConflictException.prototype);
96
- this.resourceId = opts.resourceId;
97
- this.resourceType = opts.resourceType;
98
- }
99
- }
100
- export const CloudComponentState = {
101
- DEPLOYABLE: "DEPLOYABLE",
102
- DEPRECATED: "DEPRECATED",
103
- FAILED: "FAILED",
104
- INITIATED: "INITIATED",
105
- REQUESTED: "REQUESTED",
106
- };
107
- export const VendorGuidance = {
108
- ACTIVE: "ACTIVE",
109
- DELETED: "DELETED",
110
- DISCONTINUED: "DISCONTINUED",
111
- };
112
- export const ComponentDependencyType = {
113
- HARD: "HARD",
114
- SOFT: "SOFT",
115
- };
116
- export const ComponentVisibilityScope = {
117
- PRIVATE: "PRIVATE",
118
- PUBLIC: "PUBLIC",
119
- };
120
- export const CoreDeviceStatus = {
121
- HEALTHY: "HEALTHY",
122
- UNHEALTHY: "UNHEALTHY",
123
- };
124
- export const LambdaEventSourceType = {
125
- IOT_CORE: "IOT_CORE",
126
- PUB_SUB: "PUB_SUB",
127
- };
128
- export const LambdaInputPayloadEncodingType = {
129
- BINARY: "binary",
130
- JSON: "json",
131
- };
132
- export const LambdaFilesystemPermission = {
133
- RO: "ro",
134
- RW: "rw",
135
- };
136
- export const LambdaIsolationMode = {
137
- GREENGRASS_CONTAINER: "GreengrassContainer",
138
- NO_CONTAINER: "NoContainer",
139
- };
140
- export class RequestAlreadyInProgressException extends __BaseException {
141
- name = "RequestAlreadyInProgressException";
142
- $fault = "client";
143
- constructor(opts) {
144
- super({
145
- name: "RequestAlreadyInProgressException",
146
- $fault: "client",
147
- ...opts,
148
- });
149
- Object.setPrototypeOf(this, RequestAlreadyInProgressException.prototype);
150
- }
151
- }
152
- export class ServiceQuotaExceededException extends __BaseException {
153
- name = "ServiceQuotaExceededException";
154
- $fault = "client";
155
- resourceId;
156
- resourceType;
157
- quotaCode;
158
- serviceCode;
159
- constructor(opts) {
160
- super({
161
- name: "ServiceQuotaExceededException",
162
- $fault: "client",
163
- ...opts,
164
- });
165
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
166
- this.resourceId = opts.resourceId;
167
- this.resourceType = opts.resourceType;
168
- this.quotaCode = opts.quotaCode;
169
- this.serviceCode = opts.serviceCode;
170
- }
171
- }
172
- export const DeploymentComponentUpdatePolicyAction = {
173
- NOTIFY_COMPONENTS: "NOTIFY_COMPONENTS",
174
- SKIP_NOTIFY_COMPONENTS: "SKIP_NOTIFY_COMPONENTS",
175
- };
176
- export const DeploymentFailureHandlingPolicy = {
177
- DO_NOTHING: "DO_NOTHING",
178
- ROLLBACK: "ROLLBACK",
179
- };
180
- export const IoTJobAbortAction = {
181
- CANCEL: "CANCEL",
182
- };
183
- export const IoTJobExecutionFailureType = {
184
- ALL: "ALL",
185
- FAILED: "FAILED",
186
- REJECTED: "REJECTED",
187
- TIMED_OUT: "TIMED_OUT",
188
- };
189
- export const DeploymentStatus = {
190
- ACTIVE: "ACTIVE",
191
- CANCELED: "CANCELED",
192
- COMPLETED: "COMPLETED",
193
- FAILED: "FAILED",
194
- INACTIVE: "INACTIVE",
195
- };
196
- export const DeploymentHistoryFilter = {
197
- ALL: "ALL",
198
- LATEST_ONLY: "LATEST_ONLY",
199
- };
200
- export const EffectiveDeploymentExecutionStatus = {
201
- CANCELED: "CANCELED",
202
- COMPLETED: "COMPLETED",
203
- FAILED: "FAILED",
204
- IN_PROGRESS: "IN_PROGRESS",
205
- QUEUED: "QUEUED",
206
- REJECTED: "REJECTED",
207
- SUCCEEDED: "SUCCEEDED",
208
- TIMED_OUT: "TIMED_OUT",
209
- };
210
- export const RecipeOutputFormat = {
211
- JSON: "JSON",
212
- YAML: "YAML",
213
- };
214
- export const IotEndpointType = {
215
- fips: "fips",
216
- standard: "standard",
217
- };
218
- export const S3EndpointType = {
219
- GLOBAL: "GLOBAL",
220
- REGIONAL: "REGIONAL",
221
- };
222
- export const InstalledComponentTopologyFilter = {
223
- ALL: "ALL",
224
- ROOT: "ROOT",
225
- };
226
- export const InstalledComponentLifecycleState = {
227
- BROKEN: "BROKEN",
228
- ERRORED: "ERRORED",
229
- FINISHED: "FINISHED",
230
- INSTALLED: "INSTALLED",
231
- NEW: "NEW",
232
- RUNNING: "RUNNING",
233
- STARTING: "STARTING",
234
- STOPPING: "STOPPING",
235
- };
1
+ export {};
@@ -329,8 +329,8 @@ const _wU = "windowsUser";
329
329
  const _xaiet = "x-amz-iot-endpoint-type";
330
330
  const n0 = "com.amazonaws.greengrassv2";
331
331
  import { TypeRegistry } from "@smithy/core/schema";
332
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, RequestAlreadyInProgressException as __RequestAlreadyInProgressException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
332
333
  import { GreengrassV2ServiceException as __GreengrassV2ServiceException } from "../models/GreengrassV2ServiceException";
333
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, RequestAlreadyInProgressException as __RequestAlreadyInProgressException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
334
334
  export var AccessDeniedException = [
335
335
  -3,
336
336
  n0,
@@ -20,5 +20,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
20
20
  export type { GreengrassV2ExtensionConfiguration } from "./extensionConfiguration";
21
21
  export * from "./commands";
22
22
  export * from "./pagination";
23
- export * from "./models";
23
+ export * from "./models/enums";
24
+ export * from "./models/errors";
25
+ export type * from "./models/models_0";
24
26
  export { GreengrassV2ServiceException } from "./models/GreengrassV2ServiceException";
@@ -0,0 +1,286 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ValidationExceptionReason: {
6
+ readonly CANNOT_PARSE: "CANNOT_PARSE";
7
+ readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
8
+ readonly OTHER: "OTHER";
9
+ readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const CloudComponentState: {
20
+ readonly DEPLOYABLE: "DEPLOYABLE";
21
+ readonly DEPRECATED: "DEPRECATED";
22
+ readonly FAILED: "FAILED";
23
+ readonly INITIATED: "INITIATED";
24
+ readonly REQUESTED: "REQUESTED";
25
+ };
26
+ /**
27
+ * @public
28
+ */
29
+ export type CloudComponentState = (typeof CloudComponentState)[keyof typeof CloudComponentState];
30
+ /**
31
+ * @public
32
+ * @enum
33
+ */
34
+ export declare const VendorGuidance: {
35
+ readonly ACTIVE: "ACTIVE";
36
+ readonly DELETED: "DELETED";
37
+ readonly DISCONTINUED: "DISCONTINUED";
38
+ };
39
+ /**
40
+ * @public
41
+ */
42
+ export type VendorGuidance = (typeof VendorGuidance)[keyof typeof VendorGuidance];
43
+ /**
44
+ * @public
45
+ * @enum
46
+ */
47
+ export declare const ComponentDependencyType: {
48
+ readonly HARD: "HARD";
49
+ readonly SOFT: "SOFT";
50
+ };
51
+ /**
52
+ * @public
53
+ */
54
+ export type ComponentDependencyType = (typeof ComponentDependencyType)[keyof typeof ComponentDependencyType];
55
+ /**
56
+ * @public
57
+ * @enum
58
+ */
59
+ export declare const ComponentVisibilityScope: {
60
+ readonly PRIVATE: "PRIVATE";
61
+ readonly PUBLIC: "PUBLIC";
62
+ };
63
+ /**
64
+ * @public
65
+ */
66
+ export type ComponentVisibilityScope = (typeof ComponentVisibilityScope)[keyof typeof ComponentVisibilityScope];
67
+ /**
68
+ * @public
69
+ * @enum
70
+ */
71
+ export declare const CoreDeviceStatus: {
72
+ readonly HEALTHY: "HEALTHY";
73
+ readonly UNHEALTHY: "UNHEALTHY";
74
+ };
75
+ /**
76
+ * @public
77
+ */
78
+ export type CoreDeviceStatus = (typeof CoreDeviceStatus)[keyof typeof CoreDeviceStatus];
79
+ /**
80
+ * @public
81
+ * @enum
82
+ */
83
+ export declare const LambdaEventSourceType: {
84
+ readonly IOT_CORE: "IOT_CORE";
85
+ readonly PUB_SUB: "PUB_SUB";
86
+ };
87
+ /**
88
+ * @public
89
+ */
90
+ export type LambdaEventSourceType = (typeof LambdaEventSourceType)[keyof typeof LambdaEventSourceType];
91
+ /**
92
+ * @public
93
+ * @enum
94
+ */
95
+ export declare const LambdaInputPayloadEncodingType: {
96
+ readonly BINARY: "binary";
97
+ readonly JSON: "json";
98
+ };
99
+ /**
100
+ * @public
101
+ */
102
+ export type LambdaInputPayloadEncodingType = (typeof LambdaInputPayloadEncodingType)[keyof typeof LambdaInputPayloadEncodingType];
103
+ /**
104
+ * @public
105
+ * @enum
106
+ */
107
+ export declare const LambdaFilesystemPermission: {
108
+ readonly RO: "ro";
109
+ readonly RW: "rw";
110
+ };
111
+ /**
112
+ * @public
113
+ */
114
+ export type LambdaFilesystemPermission = (typeof LambdaFilesystemPermission)[keyof typeof LambdaFilesystemPermission];
115
+ /**
116
+ * @public
117
+ * @enum
118
+ */
119
+ export declare const LambdaIsolationMode: {
120
+ readonly GREENGRASS_CONTAINER: "GreengrassContainer";
121
+ readonly NO_CONTAINER: "NoContainer";
122
+ };
123
+ /**
124
+ * @public
125
+ */
126
+ export type LambdaIsolationMode = (typeof LambdaIsolationMode)[keyof typeof LambdaIsolationMode];
127
+ /**
128
+ * @public
129
+ * @enum
130
+ */
131
+ export declare const DeploymentComponentUpdatePolicyAction: {
132
+ readonly NOTIFY_COMPONENTS: "NOTIFY_COMPONENTS";
133
+ readonly SKIP_NOTIFY_COMPONENTS: "SKIP_NOTIFY_COMPONENTS";
134
+ };
135
+ /**
136
+ * @public
137
+ */
138
+ export type DeploymentComponentUpdatePolicyAction = (typeof DeploymentComponentUpdatePolicyAction)[keyof typeof DeploymentComponentUpdatePolicyAction];
139
+ /**
140
+ * @public
141
+ * @enum
142
+ */
143
+ export declare const DeploymentFailureHandlingPolicy: {
144
+ readonly DO_NOTHING: "DO_NOTHING";
145
+ readonly ROLLBACK: "ROLLBACK";
146
+ };
147
+ /**
148
+ * @public
149
+ */
150
+ export type DeploymentFailureHandlingPolicy = (typeof DeploymentFailureHandlingPolicy)[keyof typeof DeploymentFailureHandlingPolicy];
151
+ /**
152
+ * @public
153
+ * @enum
154
+ */
155
+ export declare const IoTJobAbortAction: {
156
+ readonly CANCEL: "CANCEL";
157
+ };
158
+ /**
159
+ * @public
160
+ */
161
+ export type IoTJobAbortAction = (typeof IoTJobAbortAction)[keyof typeof IoTJobAbortAction];
162
+ /**
163
+ * @public
164
+ * @enum
165
+ */
166
+ export declare const IoTJobExecutionFailureType: {
167
+ readonly ALL: "ALL";
168
+ readonly FAILED: "FAILED";
169
+ readonly REJECTED: "REJECTED";
170
+ readonly TIMED_OUT: "TIMED_OUT";
171
+ };
172
+ /**
173
+ * @public
174
+ */
175
+ export type IoTJobExecutionFailureType = (typeof IoTJobExecutionFailureType)[keyof typeof IoTJobExecutionFailureType];
176
+ /**
177
+ * @public
178
+ * @enum
179
+ */
180
+ export declare const DeploymentStatus: {
181
+ readonly ACTIVE: "ACTIVE";
182
+ readonly CANCELED: "CANCELED";
183
+ readonly COMPLETED: "COMPLETED";
184
+ readonly FAILED: "FAILED";
185
+ readonly INACTIVE: "INACTIVE";
186
+ };
187
+ /**
188
+ * @public
189
+ */
190
+ export type DeploymentStatus = (typeof DeploymentStatus)[keyof typeof DeploymentStatus];
191
+ /**
192
+ * @public
193
+ * @enum
194
+ */
195
+ export declare const DeploymentHistoryFilter: {
196
+ readonly ALL: "ALL";
197
+ readonly LATEST_ONLY: "LATEST_ONLY";
198
+ };
199
+ /**
200
+ * @public
201
+ */
202
+ export type DeploymentHistoryFilter = (typeof DeploymentHistoryFilter)[keyof typeof DeploymentHistoryFilter];
203
+ /**
204
+ * @public
205
+ * @enum
206
+ */
207
+ export declare const EffectiveDeploymentExecutionStatus: {
208
+ readonly CANCELED: "CANCELED";
209
+ readonly COMPLETED: "COMPLETED";
210
+ readonly FAILED: "FAILED";
211
+ readonly IN_PROGRESS: "IN_PROGRESS";
212
+ readonly QUEUED: "QUEUED";
213
+ readonly REJECTED: "REJECTED";
214
+ readonly SUCCEEDED: "SUCCEEDED";
215
+ readonly TIMED_OUT: "TIMED_OUT";
216
+ };
217
+ /**
218
+ * @public
219
+ */
220
+ export type EffectiveDeploymentExecutionStatus = (typeof EffectiveDeploymentExecutionStatus)[keyof typeof EffectiveDeploymentExecutionStatus];
221
+ /**
222
+ * @public
223
+ * @enum
224
+ */
225
+ export declare const RecipeOutputFormat: {
226
+ readonly JSON: "JSON";
227
+ readonly YAML: "YAML";
228
+ };
229
+ /**
230
+ * @public
231
+ */
232
+ export type RecipeOutputFormat = (typeof RecipeOutputFormat)[keyof typeof RecipeOutputFormat];
233
+ /**
234
+ * @public
235
+ * @enum
236
+ */
237
+ export declare const IotEndpointType: {
238
+ readonly fips: "fips";
239
+ readonly standard: "standard";
240
+ };
241
+ /**
242
+ * @public
243
+ */
244
+ export type IotEndpointType = (typeof IotEndpointType)[keyof typeof IotEndpointType];
245
+ /**
246
+ * @public
247
+ * @enum
248
+ */
249
+ export declare const S3EndpointType: {
250
+ readonly GLOBAL: "GLOBAL";
251
+ readonly REGIONAL: "REGIONAL";
252
+ };
253
+ /**
254
+ * @public
255
+ */
256
+ export type S3EndpointType = (typeof S3EndpointType)[keyof typeof S3EndpointType];
257
+ /**
258
+ * @public
259
+ * @enum
260
+ */
261
+ export declare const InstalledComponentTopologyFilter: {
262
+ readonly ALL: "ALL";
263
+ readonly ROOT: "ROOT";
264
+ };
265
+ /**
266
+ * @public
267
+ */
268
+ export type InstalledComponentTopologyFilter = (typeof InstalledComponentTopologyFilter)[keyof typeof InstalledComponentTopologyFilter];
269
+ /**
270
+ * @public
271
+ * @enum
272
+ */
273
+ export declare const InstalledComponentLifecycleState: {
274
+ readonly BROKEN: "BROKEN";
275
+ readonly ERRORED: "ERRORED";
276
+ readonly FINISHED: "FINISHED";
277
+ readonly INSTALLED: "INSTALLED";
278
+ readonly NEW: "NEW";
279
+ readonly RUNNING: "RUNNING";
280
+ readonly STARTING: "STARTING";
281
+ readonly STOPPING: "STOPPING";
282
+ };
283
+ /**
284
+ * @public
285
+ */
286
+ export type InstalledComponentLifecycleState = (typeof InstalledComponentLifecycleState)[keyof typeof InstalledComponentLifecycleState];