@aws-sdk/client-greengrass 3.301.0 → 3.306.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.
@@ -2,39 +2,33 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Telemetry = exports.UpdateTargetsOperatingSystem = exports.UpdateTargetsArchitecture = exports.UpdateAgentLogLevel = exports.SoftwareToUpdate = exports.ConfigurationSyncStatus = exports.BulkDeploymentStatus = exports.DeploymentType = exports.InternalServerErrorException = exports.BadRequestException = exports.LoggerType = exports.LoggerLevel = exports.LoggerComponent = exports.Permission = exports.FunctionIsolationMode = exports.EncodingType = void 0;
4
4
  const GreengrassServiceException_1 = require("./GreengrassServiceException");
5
- var EncodingType;
6
- (function (EncodingType) {
7
- EncodingType["binary"] = "binary";
8
- EncodingType["json"] = "json";
9
- })(EncodingType = exports.EncodingType || (exports.EncodingType = {}));
10
- var FunctionIsolationMode;
11
- (function (FunctionIsolationMode) {
12
- FunctionIsolationMode["GreengrassContainer"] = "GreengrassContainer";
13
- FunctionIsolationMode["NoContainer"] = "NoContainer";
14
- })(FunctionIsolationMode = exports.FunctionIsolationMode || (exports.FunctionIsolationMode = {}));
15
- var Permission;
16
- (function (Permission) {
17
- Permission["ro"] = "ro";
18
- Permission["rw"] = "rw";
19
- })(Permission = exports.Permission || (exports.Permission = {}));
20
- var LoggerComponent;
21
- (function (LoggerComponent) {
22
- LoggerComponent["GreengrassSystem"] = "GreengrassSystem";
23
- LoggerComponent["Lambda"] = "Lambda";
24
- })(LoggerComponent = exports.LoggerComponent || (exports.LoggerComponent = {}));
25
- var LoggerLevel;
26
- (function (LoggerLevel) {
27
- LoggerLevel["DEBUG"] = "DEBUG";
28
- LoggerLevel["ERROR"] = "ERROR";
29
- LoggerLevel["FATAL"] = "FATAL";
30
- LoggerLevel["INFO"] = "INFO";
31
- LoggerLevel["WARN"] = "WARN";
32
- })(LoggerLevel = exports.LoggerLevel || (exports.LoggerLevel = {}));
33
- var LoggerType;
34
- (function (LoggerType) {
35
- LoggerType["AWSCloudWatch"] = "AWSCloudWatch";
36
- LoggerType["FileSystem"] = "FileSystem";
37
- })(LoggerType = exports.LoggerType || (exports.LoggerType = {}));
5
+ exports.EncodingType = {
6
+ binary: "binary",
7
+ json: "json",
8
+ };
9
+ exports.FunctionIsolationMode = {
10
+ GreengrassContainer: "GreengrassContainer",
11
+ NoContainer: "NoContainer",
12
+ };
13
+ exports.Permission = {
14
+ ro: "ro",
15
+ rw: "rw",
16
+ };
17
+ exports.LoggerComponent = {
18
+ GreengrassSystem: "GreengrassSystem",
19
+ Lambda: "Lambda",
20
+ };
21
+ exports.LoggerLevel = {
22
+ DEBUG: "DEBUG",
23
+ ERROR: "ERROR",
24
+ FATAL: "FATAL",
25
+ INFO: "INFO",
26
+ WARN: "WARN",
27
+ };
28
+ exports.LoggerType = {
29
+ AWSCloudWatch: "AWSCloudWatch",
30
+ FileSystem: "FileSystem",
31
+ };
38
32
  class BadRequestException extends GreengrassServiceException_1.GreengrassServiceException {
39
33
  constructor(opts) {
40
34
  super({
@@ -65,59 +59,51 @@ class InternalServerErrorException extends GreengrassServiceException_1.Greengra
65
59
  }
66
60
  }
67
61
  exports.InternalServerErrorException = InternalServerErrorException;
68
- var DeploymentType;
69
- (function (DeploymentType) {
70
- DeploymentType["ForceResetDeployment"] = "ForceResetDeployment";
71
- DeploymentType["NewDeployment"] = "NewDeployment";
72
- DeploymentType["Redeployment"] = "Redeployment";
73
- DeploymentType["ResetDeployment"] = "ResetDeployment";
74
- })(DeploymentType = exports.DeploymentType || (exports.DeploymentType = {}));
75
- var BulkDeploymentStatus;
76
- (function (BulkDeploymentStatus) {
77
- BulkDeploymentStatus["Completed"] = "Completed";
78
- BulkDeploymentStatus["Failed"] = "Failed";
79
- BulkDeploymentStatus["Initializing"] = "Initializing";
80
- BulkDeploymentStatus["Running"] = "Running";
81
- BulkDeploymentStatus["Stopped"] = "Stopped";
82
- BulkDeploymentStatus["Stopping"] = "Stopping";
83
- })(BulkDeploymentStatus = exports.BulkDeploymentStatus || (exports.BulkDeploymentStatus = {}));
84
- var ConfigurationSyncStatus;
85
- (function (ConfigurationSyncStatus) {
86
- ConfigurationSyncStatus["InSync"] = "InSync";
87
- ConfigurationSyncStatus["OutOfSync"] = "OutOfSync";
88
- })(ConfigurationSyncStatus = exports.ConfigurationSyncStatus || (exports.ConfigurationSyncStatus = {}));
89
- var SoftwareToUpdate;
90
- (function (SoftwareToUpdate) {
91
- SoftwareToUpdate["core"] = "core";
92
- SoftwareToUpdate["ota_agent"] = "ota_agent";
93
- })(SoftwareToUpdate = exports.SoftwareToUpdate || (exports.SoftwareToUpdate = {}));
94
- var UpdateAgentLogLevel;
95
- (function (UpdateAgentLogLevel) {
96
- UpdateAgentLogLevel["DEBUG"] = "DEBUG";
97
- UpdateAgentLogLevel["ERROR"] = "ERROR";
98
- UpdateAgentLogLevel["FATAL"] = "FATAL";
99
- UpdateAgentLogLevel["INFO"] = "INFO";
100
- UpdateAgentLogLevel["NONE"] = "NONE";
101
- UpdateAgentLogLevel["TRACE"] = "TRACE";
102
- UpdateAgentLogLevel["VERBOSE"] = "VERBOSE";
103
- UpdateAgentLogLevel["WARN"] = "WARN";
104
- })(UpdateAgentLogLevel = exports.UpdateAgentLogLevel || (exports.UpdateAgentLogLevel = {}));
105
- var UpdateTargetsArchitecture;
106
- (function (UpdateTargetsArchitecture) {
107
- UpdateTargetsArchitecture["aarch64"] = "aarch64";
108
- UpdateTargetsArchitecture["armv6l"] = "armv6l";
109
- UpdateTargetsArchitecture["armv7l"] = "armv7l";
110
- UpdateTargetsArchitecture["x86_64"] = "x86_64";
111
- })(UpdateTargetsArchitecture = exports.UpdateTargetsArchitecture || (exports.UpdateTargetsArchitecture = {}));
112
- var UpdateTargetsOperatingSystem;
113
- (function (UpdateTargetsOperatingSystem) {
114
- UpdateTargetsOperatingSystem["amazon_linux"] = "amazon_linux";
115
- UpdateTargetsOperatingSystem["openwrt"] = "openwrt";
116
- UpdateTargetsOperatingSystem["raspbian"] = "raspbian";
117
- UpdateTargetsOperatingSystem["ubuntu"] = "ubuntu";
118
- })(UpdateTargetsOperatingSystem = exports.UpdateTargetsOperatingSystem || (exports.UpdateTargetsOperatingSystem = {}));
119
- var Telemetry;
120
- (function (Telemetry) {
121
- Telemetry["Off"] = "Off";
122
- Telemetry["On"] = "On";
123
- })(Telemetry = exports.Telemetry || (exports.Telemetry = {}));
62
+ exports.DeploymentType = {
63
+ ForceResetDeployment: "ForceResetDeployment",
64
+ NewDeployment: "NewDeployment",
65
+ Redeployment: "Redeployment",
66
+ ResetDeployment: "ResetDeployment",
67
+ };
68
+ exports.BulkDeploymentStatus = {
69
+ Completed: "Completed",
70
+ Failed: "Failed",
71
+ Initializing: "Initializing",
72
+ Running: "Running",
73
+ Stopped: "Stopped",
74
+ Stopping: "Stopping",
75
+ };
76
+ exports.ConfigurationSyncStatus = {
77
+ InSync: "InSync",
78
+ OutOfSync: "OutOfSync",
79
+ };
80
+ exports.SoftwareToUpdate = {
81
+ core: "core",
82
+ ota_agent: "ota_agent",
83
+ };
84
+ exports.UpdateAgentLogLevel = {
85
+ DEBUG: "DEBUG",
86
+ ERROR: "ERROR",
87
+ FATAL: "FATAL",
88
+ INFO: "INFO",
89
+ NONE: "NONE",
90
+ TRACE: "TRACE",
91
+ VERBOSE: "VERBOSE",
92
+ WARN: "WARN",
93
+ };
94
+ exports.UpdateTargetsArchitecture = {
95
+ aarch64: "aarch64",
96
+ armv6l: "armv6l",
97
+ armv7l: "armv7l",
98
+ x86_64: "x86_64",
99
+ };
100
+ exports.UpdateTargetsOperatingSystem = {
101
+ amazon_linux: "amazon_linux",
102
+ openwrt: "openwrt",
103
+ raspbian: "raspbian",
104
+ ubuntu: "ubuntu",
105
+ };
106
+ exports.Telemetry = {
107
+ Off: "Off",
108
+ On: "On",
109
+ };
@@ -1,37 +1,31 @@
1
1
  import { GreengrassServiceException as __BaseException } from "./GreengrassServiceException";
2
- export var EncodingType;
3
- (function (EncodingType) {
4
- EncodingType["binary"] = "binary";
5
- EncodingType["json"] = "json";
6
- })(EncodingType || (EncodingType = {}));
7
- export var FunctionIsolationMode;
8
- (function (FunctionIsolationMode) {
9
- FunctionIsolationMode["GreengrassContainer"] = "GreengrassContainer";
10
- FunctionIsolationMode["NoContainer"] = "NoContainer";
11
- })(FunctionIsolationMode || (FunctionIsolationMode = {}));
12
- export var Permission;
13
- (function (Permission) {
14
- Permission["ro"] = "ro";
15
- Permission["rw"] = "rw";
16
- })(Permission || (Permission = {}));
17
- export var LoggerComponent;
18
- (function (LoggerComponent) {
19
- LoggerComponent["GreengrassSystem"] = "GreengrassSystem";
20
- LoggerComponent["Lambda"] = "Lambda";
21
- })(LoggerComponent || (LoggerComponent = {}));
22
- export var LoggerLevel;
23
- (function (LoggerLevel) {
24
- LoggerLevel["DEBUG"] = "DEBUG";
25
- LoggerLevel["ERROR"] = "ERROR";
26
- LoggerLevel["FATAL"] = "FATAL";
27
- LoggerLevel["INFO"] = "INFO";
28
- LoggerLevel["WARN"] = "WARN";
29
- })(LoggerLevel || (LoggerLevel = {}));
30
- export var LoggerType;
31
- (function (LoggerType) {
32
- LoggerType["AWSCloudWatch"] = "AWSCloudWatch";
33
- LoggerType["FileSystem"] = "FileSystem";
34
- })(LoggerType || (LoggerType = {}));
2
+ export const EncodingType = {
3
+ binary: "binary",
4
+ json: "json",
5
+ };
6
+ export const FunctionIsolationMode = {
7
+ GreengrassContainer: "GreengrassContainer",
8
+ NoContainer: "NoContainer",
9
+ };
10
+ export const Permission = {
11
+ ro: "ro",
12
+ rw: "rw",
13
+ };
14
+ export const LoggerComponent = {
15
+ GreengrassSystem: "GreengrassSystem",
16
+ Lambda: "Lambda",
17
+ };
18
+ export const LoggerLevel = {
19
+ DEBUG: "DEBUG",
20
+ ERROR: "ERROR",
21
+ FATAL: "FATAL",
22
+ INFO: "INFO",
23
+ WARN: "WARN",
24
+ };
25
+ export const LoggerType = {
26
+ AWSCloudWatch: "AWSCloudWatch",
27
+ FileSystem: "FileSystem",
28
+ };
35
29
  export class BadRequestException extends __BaseException {
36
30
  constructor(opts) {
37
31
  super({
@@ -60,59 +54,51 @@ export class InternalServerErrorException extends __BaseException {
60
54
  this.Message = opts.Message;
61
55
  }
62
56
  }
63
- export var DeploymentType;
64
- (function (DeploymentType) {
65
- DeploymentType["ForceResetDeployment"] = "ForceResetDeployment";
66
- DeploymentType["NewDeployment"] = "NewDeployment";
67
- DeploymentType["Redeployment"] = "Redeployment";
68
- DeploymentType["ResetDeployment"] = "ResetDeployment";
69
- })(DeploymentType || (DeploymentType = {}));
70
- export var BulkDeploymentStatus;
71
- (function (BulkDeploymentStatus) {
72
- BulkDeploymentStatus["Completed"] = "Completed";
73
- BulkDeploymentStatus["Failed"] = "Failed";
74
- BulkDeploymentStatus["Initializing"] = "Initializing";
75
- BulkDeploymentStatus["Running"] = "Running";
76
- BulkDeploymentStatus["Stopped"] = "Stopped";
77
- BulkDeploymentStatus["Stopping"] = "Stopping";
78
- })(BulkDeploymentStatus || (BulkDeploymentStatus = {}));
79
- export var ConfigurationSyncStatus;
80
- (function (ConfigurationSyncStatus) {
81
- ConfigurationSyncStatus["InSync"] = "InSync";
82
- ConfigurationSyncStatus["OutOfSync"] = "OutOfSync";
83
- })(ConfigurationSyncStatus || (ConfigurationSyncStatus = {}));
84
- export var SoftwareToUpdate;
85
- (function (SoftwareToUpdate) {
86
- SoftwareToUpdate["core"] = "core";
87
- SoftwareToUpdate["ota_agent"] = "ota_agent";
88
- })(SoftwareToUpdate || (SoftwareToUpdate = {}));
89
- export var UpdateAgentLogLevel;
90
- (function (UpdateAgentLogLevel) {
91
- UpdateAgentLogLevel["DEBUG"] = "DEBUG";
92
- UpdateAgentLogLevel["ERROR"] = "ERROR";
93
- UpdateAgentLogLevel["FATAL"] = "FATAL";
94
- UpdateAgentLogLevel["INFO"] = "INFO";
95
- UpdateAgentLogLevel["NONE"] = "NONE";
96
- UpdateAgentLogLevel["TRACE"] = "TRACE";
97
- UpdateAgentLogLevel["VERBOSE"] = "VERBOSE";
98
- UpdateAgentLogLevel["WARN"] = "WARN";
99
- })(UpdateAgentLogLevel || (UpdateAgentLogLevel = {}));
100
- export var UpdateTargetsArchitecture;
101
- (function (UpdateTargetsArchitecture) {
102
- UpdateTargetsArchitecture["aarch64"] = "aarch64";
103
- UpdateTargetsArchitecture["armv6l"] = "armv6l";
104
- UpdateTargetsArchitecture["armv7l"] = "armv7l";
105
- UpdateTargetsArchitecture["x86_64"] = "x86_64";
106
- })(UpdateTargetsArchitecture || (UpdateTargetsArchitecture = {}));
107
- export var UpdateTargetsOperatingSystem;
108
- (function (UpdateTargetsOperatingSystem) {
109
- UpdateTargetsOperatingSystem["amazon_linux"] = "amazon_linux";
110
- UpdateTargetsOperatingSystem["openwrt"] = "openwrt";
111
- UpdateTargetsOperatingSystem["raspbian"] = "raspbian";
112
- UpdateTargetsOperatingSystem["ubuntu"] = "ubuntu";
113
- })(UpdateTargetsOperatingSystem || (UpdateTargetsOperatingSystem = {}));
114
- export var Telemetry;
115
- (function (Telemetry) {
116
- Telemetry["Off"] = "Off";
117
- Telemetry["On"] = "On";
118
- })(Telemetry || (Telemetry = {}));
57
+ export const DeploymentType = {
58
+ ForceResetDeployment: "ForceResetDeployment",
59
+ NewDeployment: "NewDeployment",
60
+ Redeployment: "Redeployment",
61
+ ResetDeployment: "ResetDeployment",
62
+ };
63
+ export const BulkDeploymentStatus = {
64
+ Completed: "Completed",
65
+ Failed: "Failed",
66
+ Initializing: "Initializing",
67
+ Running: "Running",
68
+ Stopped: "Stopped",
69
+ Stopping: "Stopping",
70
+ };
71
+ export const ConfigurationSyncStatus = {
72
+ InSync: "InSync",
73
+ OutOfSync: "OutOfSync",
74
+ };
75
+ export const SoftwareToUpdate = {
76
+ core: "core",
77
+ ota_agent: "ota_agent",
78
+ };
79
+ export const UpdateAgentLogLevel = {
80
+ DEBUG: "DEBUG",
81
+ ERROR: "ERROR",
82
+ FATAL: "FATAL",
83
+ INFO: "INFO",
84
+ NONE: "NONE",
85
+ TRACE: "TRACE",
86
+ VERBOSE: "VERBOSE",
87
+ WARN: "WARN",
88
+ };
89
+ export const UpdateTargetsArchitecture = {
90
+ aarch64: "aarch64",
91
+ armv6l: "armv6l",
92
+ armv7l: "armv7l",
93
+ x86_64: "x86_64",
94
+ };
95
+ export const UpdateTargetsOperatingSystem = {
96
+ amazon_linux: "amazon_linux",
97
+ openwrt: "openwrt",
98
+ raspbian: "raspbian",
99
+ ubuntu: "ubuntu",
100
+ };
101
+ export const Telemetry = {
102
+ Off: "Off",
103
+ On: "On",
104
+ };
@@ -124,18 +124,28 @@ export interface Device {
124
124
  }
125
125
  /**
126
126
  * @public
127
+ * @enum
127
128
  */
128
- export declare enum EncodingType {
129
- binary = "binary",
130
- json = "json"
131
- }
129
+ export declare const EncodingType: {
130
+ readonly binary: "binary";
131
+ readonly json: "json";
132
+ };
132
133
  /**
133
134
  * @public
134
135
  */
135
- export declare enum FunctionIsolationMode {
136
- GreengrassContainer = "GreengrassContainer",
137
- NoContainer = "NoContainer"
138
- }
136
+ export type EncodingType = (typeof EncodingType)[keyof typeof EncodingType];
137
+ /**
138
+ * @public
139
+ * @enum
140
+ */
141
+ export declare const FunctionIsolationMode: {
142
+ readonly GreengrassContainer: "GreengrassContainer";
143
+ readonly NoContainer: "NoContainer";
144
+ };
145
+ /**
146
+ * @public
147
+ */
148
+ export type FunctionIsolationMode = (typeof FunctionIsolationMode)[keyof typeof FunctionIsolationMode];
139
149
  /**
140
150
  * @public
141
151
  * Specifies the user and group whose permissions are used when running the Lambda function. You can specify one or both values to override the default values. We recommend that you avoid running as root unless absolutely necessary to minimize the risk of unintended changes or malicious attacks. To run as root, you must set ''IsolationMode'' to ''NoContainer'' and update config.json in ''greengrass-root/config'' to set ''allowFunctionsToRunAsRoot'' to ''yes''.
@@ -166,11 +176,16 @@ export interface FunctionExecutionConfig {
166
176
  }
167
177
  /**
168
178
  * @public
179
+ * @enum
169
180
  */
170
- export declare enum Permission {
171
- ro = "ro",
172
- rw = "rw"
173
- }
181
+ export declare const Permission: {
182
+ readonly ro: "ro";
183
+ readonly rw: "rw";
184
+ };
185
+ /**
186
+ * @public
187
+ */
188
+ export type Permission = (typeof Permission)[keyof typeof Permission];
174
189
  /**
175
190
  * @public
176
191
  * A policy used by the function to access a resource.
@@ -313,28 +328,43 @@ export interface GroupInformation {
313
328
  }
314
329
  /**
315
330
  * @public
331
+ * @enum
316
332
  */
317
- export declare enum LoggerComponent {
318
- GreengrassSystem = "GreengrassSystem",
319
- Lambda = "Lambda"
320
- }
333
+ export declare const LoggerComponent: {
334
+ readonly GreengrassSystem: "GreengrassSystem";
335
+ readonly Lambda: "Lambda";
336
+ };
321
337
  /**
322
338
  * @public
323
339
  */
324
- export declare enum LoggerLevel {
325
- DEBUG = "DEBUG",
326
- ERROR = "ERROR",
327
- FATAL = "FATAL",
328
- INFO = "INFO",
329
- WARN = "WARN"
330
- }
340
+ export type LoggerComponent = (typeof LoggerComponent)[keyof typeof LoggerComponent];
331
341
  /**
332
342
  * @public
343
+ * @enum
333
344
  */
334
- export declare enum LoggerType {
335
- AWSCloudWatch = "AWSCloudWatch",
336
- FileSystem = "FileSystem"
337
- }
345
+ export declare const LoggerLevel: {
346
+ readonly DEBUG: "DEBUG";
347
+ readonly ERROR: "ERROR";
348
+ readonly FATAL: "FATAL";
349
+ readonly INFO: "INFO";
350
+ readonly WARN: "WARN";
351
+ };
352
+ /**
353
+ * @public
354
+ */
355
+ export type LoggerLevel = (typeof LoggerLevel)[keyof typeof LoggerLevel];
356
+ /**
357
+ * @public
358
+ * @enum
359
+ */
360
+ export declare const LoggerType: {
361
+ readonly AWSCloudWatch: "AWSCloudWatch";
362
+ readonly FileSystem: "FileSystem";
363
+ };
364
+ /**
365
+ * @public
366
+ */
367
+ export type LoggerType = (typeof LoggerType)[keyof typeof LoggerType];
338
368
  /**
339
369
  * @public
340
370
  * Information about a logger
@@ -691,13 +721,18 @@ export interface BulkDeploymentMetrics {
691
721
  }
692
722
  /**
693
723
  * @public
724
+ * @enum
694
725
  */
695
- export declare enum DeploymentType {
696
- ForceResetDeployment = "ForceResetDeployment",
697
- NewDeployment = "NewDeployment",
698
- Redeployment = "Redeployment",
699
- ResetDeployment = "ResetDeployment"
700
- }
726
+ export declare const DeploymentType: {
727
+ readonly ForceResetDeployment: "ForceResetDeployment";
728
+ readonly NewDeployment: "NewDeployment";
729
+ readonly Redeployment: "Redeployment";
730
+ readonly ResetDeployment: "ResetDeployment";
731
+ };
732
+ /**
733
+ * @public
734
+ */
735
+ export type DeploymentType = (typeof DeploymentType)[keyof typeof DeploymentType];
701
736
  /**
702
737
  * @public
703
738
  * Information about an individual group deployment in a bulk deployment operation.
@@ -738,22 +773,32 @@ export interface BulkDeploymentResult {
738
773
  }
739
774
  /**
740
775
  * @public
776
+ * @enum
741
777
  */
742
- export declare enum BulkDeploymentStatus {
743
- Completed = "Completed",
744
- Failed = "Failed",
745
- Initializing = "Initializing",
746
- Running = "Running",
747
- Stopped = "Stopped",
748
- Stopping = "Stopping"
749
- }
778
+ export declare const BulkDeploymentStatus: {
779
+ readonly Completed: "Completed";
780
+ readonly Failed: "Failed";
781
+ readonly Initializing: "Initializing";
782
+ readonly Running: "Running";
783
+ readonly Stopped: "Stopped";
784
+ readonly Stopping: "Stopping";
785
+ };
750
786
  /**
751
787
  * @public
752
788
  */
753
- export declare enum ConfigurationSyncStatus {
754
- InSync = "InSync",
755
- OutOfSync = "OutOfSync"
756
- }
789
+ export type BulkDeploymentStatus = (typeof BulkDeploymentStatus)[keyof typeof BulkDeploymentStatus];
790
+ /**
791
+ * @public
792
+ * @enum
793
+ */
794
+ export declare const ConfigurationSyncStatus: {
795
+ readonly InSync: "InSync";
796
+ readonly OutOfSync: "OutOfSync";
797
+ };
798
+ /**
799
+ * @public
800
+ */
801
+ export type ConfigurationSyncStatus = (typeof ConfigurationSyncStatus)[keyof typeof ConfigurationSyncStatus];
757
802
  /**
758
803
  * @public
759
804
  * Information about the connector definition version, which is a container for connectors.
@@ -1612,42 +1657,62 @@ export interface CreateResourceDefinitionVersionResponse {
1612
1657
  }
1613
1658
  /**
1614
1659
  * @public
1660
+ * @enum
1615
1661
  */
1616
- export declare enum SoftwareToUpdate {
1617
- core = "core",
1618
- ota_agent = "ota_agent"
1619
- }
1662
+ export declare const SoftwareToUpdate: {
1663
+ readonly core: "core";
1664
+ readonly ota_agent: "ota_agent";
1665
+ };
1620
1666
  /**
1621
1667
  * @public
1622
1668
  */
1623
- export declare enum UpdateAgentLogLevel {
1624
- DEBUG = "DEBUG",
1625
- ERROR = "ERROR",
1626
- FATAL = "FATAL",
1627
- INFO = "INFO",
1628
- NONE = "NONE",
1629
- TRACE = "TRACE",
1630
- VERBOSE = "VERBOSE",
1631
- WARN = "WARN"
1632
- }
1669
+ export type SoftwareToUpdate = (typeof SoftwareToUpdate)[keyof typeof SoftwareToUpdate];
1633
1670
  /**
1634
1671
  * @public
1672
+ * @enum
1635
1673
  */
1636
- export declare enum UpdateTargetsArchitecture {
1637
- aarch64 = "aarch64",
1638
- armv6l = "armv6l",
1639
- armv7l = "armv7l",
1640
- x86_64 = "x86_64"
1641
- }
1674
+ export declare const UpdateAgentLogLevel: {
1675
+ readonly DEBUG: "DEBUG";
1676
+ readonly ERROR: "ERROR";
1677
+ readonly FATAL: "FATAL";
1678
+ readonly INFO: "INFO";
1679
+ readonly NONE: "NONE";
1680
+ readonly TRACE: "TRACE";
1681
+ readonly VERBOSE: "VERBOSE";
1682
+ readonly WARN: "WARN";
1683
+ };
1642
1684
  /**
1643
1685
  * @public
1644
1686
  */
1645
- export declare enum UpdateTargetsOperatingSystem {
1646
- amazon_linux = "amazon_linux",
1647
- openwrt = "openwrt",
1648
- raspbian = "raspbian",
1649
- ubuntu = "ubuntu"
1650
- }
1687
+ export type UpdateAgentLogLevel = (typeof UpdateAgentLogLevel)[keyof typeof UpdateAgentLogLevel];
1688
+ /**
1689
+ * @public
1690
+ * @enum
1691
+ */
1692
+ export declare const UpdateTargetsArchitecture: {
1693
+ readonly aarch64: "aarch64";
1694
+ readonly armv6l: "armv6l";
1695
+ readonly armv7l: "armv7l";
1696
+ readonly x86_64: "x86_64";
1697
+ };
1698
+ /**
1699
+ * @public
1700
+ */
1701
+ export type UpdateTargetsArchitecture = (typeof UpdateTargetsArchitecture)[keyof typeof UpdateTargetsArchitecture];
1702
+ /**
1703
+ * @public
1704
+ * @enum
1705
+ */
1706
+ export declare const UpdateTargetsOperatingSystem: {
1707
+ readonly amazon_linux: "amazon_linux";
1708
+ readonly openwrt: "openwrt";
1709
+ readonly raspbian: "raspbian";
1710
+ readonly ubuntu: "ubuntu";
1711
+ };
1712
+ /**
1713
+ * @public
1714
+ */
1715
+ export type UpdateTargetsOperatingSystem = (typeof UpdateTargetsOperatingSystem)[keyof typeof UpdateTargetsOperatingSystem];
1651
1716
  /**
1652
1717
  * @public
1653
1718
  */
@@ -2887,11 +2952,16 @@ export interface GetThingRuntimeConfigurationRequest {
2887
2952
  }
2888
2953
  /**
2889
2954
  * @public
2955
+ * @enum
2890
2956
  */
2891
- export declare enum Telemetry {
2892
- Off = "Off",
2893
- On = "On"
2894
- }
2957
+ export declare const Telemetry: {
2958
+ readonly Off: "Off";
2959
+ readonly On: "On";
2960
+ };
2961
+ /**
2962
+ * @public
2963
+ */
2964
+ export type Telemetry = (typeof Telemetry)[keyof typeof Telemetry];
2895
2965
  /**
2896
2966
  * @public
2897
2967
  * Configuration settings for running telemetry.
@@ -33,14 +33,17 @@ export interface Device {
33
33
  SyncShadow?: boolean;
34
34
  ThingArn: string | undefined;
35
35
  }
36
- export declare enum EncodingType {
37
- binary = "binary",
38
- json = "json",
39
- }
40
- export declare enum FunctionIsolationMode {
41
- GreengrassContainer = "GreengrassContainer",
42
- NoContainer = "NoContainer",
43
- }
36
+ export declare const EncodingType: {
37
+ readonly binary: "binary";
38
+ readonly json: "json";
39
+ };
40
+ export type EncodingType = (typeof EncodingType)[keyof typeof EncodingType];
41
+ export declare const FunctionIsolationMode: {
42
+ readonly GreengrassContainer: "GreengrassContainer";
43
+ readonly NoContainer: "NoContainer";
44
+ };
45
+ export type FunctionIsolationMode =
46
+ (typeof FunctionIsolationMode)[keyof typeof FunctionIsolationMode];
44
47
  export interface FunctionRunAsConfig {
45
48
  Gid?: number;
46
49
  Uid?: number;
@@ -49,10 +52,11 @@ export interface FunctionExecutionConfig {
49
52
  IsolationMode?: FunctionIsolationMode | string;
50
53
  RunAs?: FunctionRunAsConfig;
51
54
  }
52
- export declare enum Permission {
53
- ro = "ro",
54
- rw = "rw",
55
- }
55
+ export declare const Permission: {
56
+ readonly ro: "ro";
57
+ readonly rw: "rw";
58
+ };
59
+ export type Permission = (typeof Permission)[keyof typeof Permission];
56
60
  export interface ResourceAccessPolicy {
57
61
  Permission?: Permission | string;
58
62
  ResourceId: string | undefined;
@@ -91,21 +95,25 @@ export interface GroupInformation {
91
95
  LatestVersionArn?: string;
92
96
  Name?: string;
93
97
  }
94
- export declare enum LoggerComponent {
95
- GreengrassSystem = "GreengrassSystem",
96
- Lambda = "Lambda",
97
- }
98
- export declare enum LoggerLevel {
99
- DEBUG = "DEBUG",
100
- ERROR = "ERROR",
101
- FATAL = "FATAL",
102
- INFO = "INFO",
103
- WARN = "WARN",
104
- }
105
- export declare enum LoggerType {
106
- AWSCloudWatch = "AWSCloudWatch",
107
- FileSystem = "FileSystem",
108
- }
98
+ export declare const LoggerComponent: {
99
+ readonly GreengrassSystem: "GreengrassSystem";
100
+ readonly Lambda: "Lambda";
101
+ };
102
+ export type LoggerComponent =
103
+ (typeof LoggerComponent)[keyof typeof LoggerComponent];
104
+ export declare const LoggerLevel: {
105
+ readonly DEBUG: "DEBUG";
106
+ readonly ERROR: "ERROR";
107
+ readonly FATAL: "FATAL";
108
+ readonly INFO: "INFO";
109
+ readonly WARN: "WARN";
110
+ };
111
+ export type LoggerLevel = (typeof LoggerLevel)[keyof typeof LoggerLevel];
112
+ export declare const LoggerType: {
113
+ readonly AWSCloudWatch: "AWSCloudWatch";
114
+ readonly FileSystem: "FileSystem";
115
+ };
116
+ export type LoggerType = (typeof LoggerType)[keyof typeof LoggerType];
109
117
  export interface Logger {
110
118
  Component: LoggerComponent | string | undefined;
111
119
  Id: string | undefined;
@@ -213,12 +221,14 @@ export interface BulkDeploymentMetrics {
213
221
  RecordsProcessed?: number;
214
222
  RetryAttempts?: number;
215
223
  }
216
- export declare enum DeploymentType {
217
- ForceResetDeployment = "ForceResetDeployment",
218
- NewDeployment = "NewDeployment",
219
- Redeployment = "Redeployment",
220
- ResetDeployment = "ResetDeployment",
221
- }
224
+ export declare const DeploymentType: {
225
+ readonly ForceResetDeployment: "ForceResetDeployment";
226
+ readonly NewDeployment: "NewDeployment";
227
+ readonly Redeployment: "Redeployment";
228
+ readonly ResetDeployment: "ResetDeployment";
229
+ };
230
+ export type DeploymentType =
231
+ (typeof DeploymentType)[keyof typeof DeploymentType];
222
232
  export interface BulkDeploymentResult {
223
233
  CreatedAt?: string;
224
234
  DeploymentArn?: string;
@@ -229,18 +239,22 @@ export interface BulkDeploymentResult {
229
239
  ErrorMessage?: string;
230
240
  GroupArn?: string;
231
241
  }
232
- export declare enum BulkDeploymentStatus {
233
- Completed = "Completed",
234
- Failed = "Failed",
235
- Initializing = "Initializing",
236
- Running = "Running",
237
- Stopped = "Stopped",
238
- Stopping = "Stopping",
239
- }
240
- export declare enum ConfigurationSyncStatus {
241
- InSync = "InSync",
242
- OutOfSync = "OutOfSync",
243
- }
242
+ export declare const BulkDeploymentStatus: {
243
+ readonly Completed: "Completed";
244
+ readonly Failed: "Failed";
245
+ readonly Initializing: "Initializing";
246
+ readonly Running: "Running";
247
+ readonly Stopped: "Stopped";
248
+ readonly Stopping: "Stopping";
249
+ };
250
+ export type BulkDeploymentStatus =
251
+ (typeof BulkDeploymentStatus)[keyof typeof BulkDeploymentStatus];
252
+ export declare const ConfigurationSyncStatus: {
253
+ readonly InSync: "InSync";
254
+ readonly OutOfSync: "OutOfSync";
255
+ };
256
+ export type ConfigurationSyncStatus =
257
+ (typeof ConfigurationSyncStatus)[keyof typeof ConfigurationSyncStatus];
244
258
  export interface ConnectorDefinitionVersion {
245
259
  Connectors?: Connector[];
246
260
  }
@@ -483,32 +497,40 @@ export interface CreateResourceDefinitionVersionResponse {
483
497
  Id?: string;
484
498
  Version?: string;
485
499
  }
486
- export declare enum SoftwareToUpdate {
487
- core = "core",
488
- ota_agent = "ota_agent",
489
- }
490
- export declare enum UpdateAgentLogLevel {
491
- DEBUG = "DEBUG",
492
- ERROR = "ERROR",
493
- FATAL = "FATAL",
494
- INFO = "INFO",
495
- NONE = "NONE",
496
- TRACE = "TRACE",
497
- VERBOSE = "VERBOSE",
498
- WARN = "WARN",
499
- }
500
- export declare enum UpdateTargetsArchitecture {
501
- aarch64 = "aarch64",
502
- armv6l = "armv6l",
503
- armv7l = "armv7l",
504
- x86_64 = "x86_64",
505
- }
506
- export declare enum UpdateTargetsOperatingSystem {
507
- amazon_linux = "amazon_linux",
508
- openwrt = "openwrt",
509
- raspbian = "raspbian",
510
- ubuntu = "ubuntu",
511
- }
500
+ export declare const SoftwareToUpdate: {
501
+ readonly core: "core";
502
+ readonly ota_agent: "ota_agent";
503
+ };
504
+ export type SoftwareToUpdate =
505
+ (typeof SoftwareToUpdate)[keyof typeof SoftwareToUpdate];
506
+ export declare const UpdateAgentLogLevel: {
507
+ readonly DEBUG: "DEBUG";
508
+ readonly ERROR: "ERROR";
509
+ readonly FATAL: "FATAL";
510
+ readonly INFO: "INFO";
511
+ readonly NONE: "NONE";
512
+ readonly TRACE: "TRACE";
513
+ readonly VERBOSE: "VERBOSE";
514
+ readonly WARN: "WARN";
515
+ };
516
+ export type UpdateAgentLogLevel =
517
+ (typeof UpdateAgentLogLevel)[keyof typeof UpdateAgentLogLevel];
518
+ export declare const UpdateTargetsArchitecture: {
519
+ readonly aarch64: "aarch64";
520
+ readonly armv6l: "armv6l";
521
+ readonly armv7l: "armv7l";
522
+ readonly x86_64: "x86_64";
523
+ };
524
+ export type UpdateTargetsArchitecture =
525
+ (typeof UpdateTargetsArchitecture)[keyof typeof UpdateTargetsArchitecture];
526
+ export declare const UpdateTargetsOperatingSystem: {
527
+ readonly amazon_linux: "amazon_linux";
528
+ readonly openwrt: "openwrt";
529
+ readonly raspbian: "raspbian";
530
+ readonly ubuntu: "ubuntu";
531
+ };
532
+ export type UpdateTargetsOperatingSystem =
533
+ (typeof UpdateTargetsOperatingSystem)[keyof typeof UpdateTargetsOperatingSystem];
512
534
  export interface CreateSoftwareUpdateJobRequest {
513
535
  AmznClientToken?: string;
514
536
  S3UrlSignerRole: string | undefined;
@@ -867,10 +889,11 @@ export interface GetSubscriptionDefinitionVersionResponse {
867
889
  export interface GetThingRuntimeConfigurationRequest {
868
890
  ThingName: string | undefined;
869
891
  }
870
- export declare enum Telemetry {
871
- Off = "Off",
872
- On = "On",
873
- }
892
+ export declare const Telemetry: {
893
+ readonly Off: "Off";
894
+ readonly On: "On";
895
+ };
896
+ export type Telemetry = (typeof Telemetry)[keyof typeof Telemetry];
874
897
  export interface TelemetryConfiguration {
875
898
  ConfigurationSyncStatus?: ConfigurationSyncStatus | string;
876
899
  Telemetry: Telemetry | string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-greengrass",
3
3
  "description": "AWS SDK for JavaScript Greengrass Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.306.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",