@aws-sdk/client-cloudhsm 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.
@@ -44,28 +44,24 @@ class InvalidRequestException extends CloudHSMServiceException_1.CloudHSMService
44
44
  }
45
45
  }
46
46
  exports.InvalidRequestException = InvalidRequestException;
47
- var ClientVersion;
48
- (function (ClientVersion) {
49
- ClientVersion["FIVE_ONE"] = "5.1";
50
- ClientVersion["FIVE_THREE"] = "5.3";
51
- })(ClientVersion = exports.ClientVersion || (exports.ClientVersion = {}));
52
- var SubscriptionType;
53
- (function (SubscriptionType) {
54
- SubscriptionType["PRODUCTION"] = "PRODUCTION";
55
- })(SubscriptionType = exports.SubscriptionType || (exports.SubscriptionType = {}));
56
- var CloudHsmObjectState;
57
- (function (CloudHsmObjectState) {
58
- CloudHsmObjectState["DEGRADED"] = "DEGRADED";
59
- CloudHsmObjectState["READY"] = "READY";
60
- CloudHsmObjectState["UPDATING"] = "UPDATING";
61
- })(CloudHsmObjectState = exports.CloudHsmObjectState || (exports.CloudHsmObjectState = {}));
62
- var HsmStatus;
63
- (function (HsmStatus) {
64
- HsmStatus["DEGRADED"] = "DEGRADED";
65
- HsmStatus["PENDING"] = "PENDING";
66
- HsmStatus["RUNNING"] = "RUNNING";
67
- HsmStatus["SUSPENDED"] = "SUSPENDED";
68
- HsmStatus["TERMINATED"] = "TERMINATED";
69
- HsmStatus["TERMINATING"] = "TERMINATING";
70
- HsmStatus["UPDATING"] = "UPDATING";
71
- })(HsmStatus = exports.HsmStatus || (exports.HsmStatus = {}));
47
+ exports.ClientVersion = {
48
+ FIVE_ONE: "5.1",
49
+ FIVE_THREE: "5.3",
50
+ };
51
+ exports.SubscriptionType = {
52
+ PRODUCTION: "PRODUCTION",
53
+ };
54
+ exports.CloudHsmObjectState = {
55
+ DEGRADED: "DEGRADED",
56
+ READY: "READY",
57
+ UPDATING: "UPDATING",
58
+ };
59
+ exports.HsmStatus = {
60
+ DEGRADED: "DEGRADED",
61
+ PENDING: "PENDING",
62
+ RUNNING: "RUNNING",
63
+ SUSPENDED: "SUSPENDED",
64
+ TERMINATED: "TERMINATED",
65
+ TERMINATING: "TERMINATING",
66
+ UPDATING: "UPDATING",
67
+ };
@@ -38,28 +38,24 @@ export class InvalidRequestException extends __BaseException {
38
38
  this.retryable = opts.retryable;
39
39
  }
40
40
  }
41
- export var ClientVersion;
42
- (function (ClientVersion) {
43
- ClientVersion["FIVE_ONE"] = "5.1";
44
- ClientVersion["FIVE_THREE"] = "5.3";
45
- })(ClientVersion || (ClientVersion = {}));
46
- export var SubscriptionType;
47
- (function (SubscriptionType) {
48
- SubscriptionType["PRODUCTION"] = "PRODUCTION";
49
- })(SubscriptionType || (SubscriptionType = {}));
50
- export var CloudHsmObjectState;
51
- (function (CloudHsmObjectState) {
52
- CloudHsmObjectState["DEGRADED"] = "DEGRADED";
53
- CloudHsmObjectState["READY"] = "READY";
54
- CloudHsmObjectState["UPDATING"] = "UPDATING";
55
- })(CloudHsmObjectState || (CloudHsmObjectState = {}));
56
- export var HsmStatus;
57
- (function (HsmStatus) {
58
- HsmStatus["DEGRADED"] = "DEGRADED";
59
- HsmStatus["PENDING"] = "PENDING";
60
- HsmStatus["RUNNING"] = "RUNNING";
61
- HsmStatus["SUSPENDED"] = "SUSPENDED";
62
- HsmStatus["TERMINATED"] = "TERMINATED";
63
- HsmStatus["TERMINATING"] = "TERMINATING";
64
- HsmStatus["UPDATING"] = "UPDATING";
65
- })(HsmStatus || (HsmStatus = {}));
41
+ export const ClientVersion = {
42
+ FIVE_ONE: "5.1",
43
+ FIVE_THREE: "5.3",
44
+ };
45
+ export const SubscriptionType = {
46
+ PRODUCTION: "PRODUCTION",
47
+ };
48
+ export const CloudHsmObjectState = {
49
+ DEGRADED: "DEGRADED",
50
+ READY: "READY",
51
+ UPDATING: "UPDATING",
52
+ };
53
+ export const HsmStatus = {
54
+ DEGRADED: "DEGRADED",
55
+ PENDING: "PENDING",
56
+ RUNNING: "RUNNING",
57
+ SUSPENDED: "SUSPENDED",
58
+ TERMINATED: "TERMINATED",
59
+ TERMINATING: "TERMINATING",
60
+ UPDATING: "UPDATING",
61
+ };
@@ -87,11 +87,16 @@ export declare class InvalidRequestException extends __BaseException {
87
87
  }
88
88
  /**
89
89
  * @public
90
+ * @enum
90
91
  */
91
- export declare enum ClientVersion {
92
- FIVE_ONE = "5.1",
93
- FIVE_THREE = "5.3"
94
- }
92
+ export declare const ClientVersion: {
93
+ readonly FIVE_ONE: "5.1";
94
+ readonly FIVE_THREE: "5.3";
95
+ };
96
+ /**
97
+ * @public
98
+ */
99
+ export type ClientVersion = (typeof ClientVersion)[keyof typeof ClientVersion];
95
100
  /**
96
101
  * @public
97
102
  * <p>Contains the inputs for the <a>CreateHapgRequest</a> action.</p>
@@ -114,10 +119,15 @@ export interface CreateHapgResponse {
114
119
  }
115
120
  /**
116
121
  * @public
122
+ * @enum
117
123
  */
118
- export declare enum SubscriptionType {
119
- PRODUCTION = "PRODUCTION"
120
- }
124
+ export declare const SubscriptionType: {
125
+ readonly PRODUCTION: "PRODUCTION";
126
+ };
127
+ /**
128
+ * @public
129
+ */
130
+ export type SubscriptionType = (typeof SubscriptionType)[keyof typeof SubscriptionType];
121
131
  /**
122
132
  * @public
123
133
  * <p>Contains the inputs for the <code>CreateHsm</code> operation.</p>
@@ -278,12 +288,17 @@ export interface DescribeHapgRequest {
278
288
  }
279
289
  /**
280
290
  * @public
291
+ * @enum
281
292
  */
282
- export declare enum CloudHsmObjectState {
283
- DEGRADED = "DEGRADED",
284
- READY = "READY",
285
- UPDATING = "UPDATING"
286
- }
293
+ export declare const CloudHsmObjectState: {
294
+ readonly DEGRADED: "DEGRADED";
295
+ readonly READY: "READY";
296
+ readonly UPDATING: "UPDATING";
297
+ };
298
+ /**
299
+ * @public
300
+ */
301
+ export type CloudHsmObjectState = (typeof CloudHsmObjectState)[keyof typeof CloudHsmObjectState];
287
302
  /**
288
303
  * @public
289
304
  * <p>Contains the output of the <a>DescribeHapg</a> action.</p>
@@ -345,16 +360,21 @@ export interface DescribeHsmRequest {
345
360
  }
346
361
  /**
347
362
  * @public
363
+ * @enum
348
364
  */
349
- export declare enum HsmStatus {
350
- DEGRADED = "DEGRADED",
351
- PENDING = "PENDING",
352
- RUNNING = "RUNNING",
353
- SUSPENDED = "SUSPENDED",
354
- TERMINATED = "TERMINATED",
355
- TERMINATING = "TERMINATING",
356
- UPDATING = "UPDATING"
357
- }
365
+ export declare const HsmStatus: {
366
+ readonly DEGRADED: "DEGRADED";
367
+ readonly PENDING: "PENDING";
368
+ readonly RUNNING: "RUNNING";
369
+ readonly SUSPENDED: "SUSPENDED";
370
+ readonly TERMINATED: "TERMINATED";
371
+ readonly TERMINATING: "TERMINATING";
372
+ readonly UPDATING: "UPDATING";
373
+ };
374
+ /**
375
+ * @public
376
+ */
377
+ export type HsmStatus = (typeof HsmStatus)[keyof typeof HsmStatus];
358
378
  /**
359
379
  * @public
360
380
  * <p>Contains the output of the <a>DescribeHsm</a> operation.</p>
@@ -35,19 +35,22 @@ export declare class InvalidRequestException extends __BaseException {
35
35
  opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
36
36
  );
37
37
  }
38
- export declare enum ClientVersion {
39
- FIVE_ONE = "5.1",
40
- FIVE_THREE = "5.3",
41
- }
38
+ export declare const ClientVersion: {
39
+ readonly FIVE_ONE: "5.1";
40
+ readonly FIVE_THREE: "5.3";
41
+ };
42
+ export type ClientVersion = (typeof ClientVersion)[keyof typeof ClientVersion];
42
43
  export interface CreateHapgRequest {
43
44
  Label: string | undefined;
44
45
  }
45
46
  export interface CreateHapgResponse {
46
47
  HapgArn?: string;
47
48
  }
48
- export declare enum SubscriptionType {
49
- PRODUCTION = "PRODUCTION",
50
- }
49
+ export declare const SubscriptionType: {
50
+ readonly PRODUCTION: "PRODUCTION";
51
+ };
52
+ export type SubscriptionType =
53
+ (typeof SubscriptionType)[keyof typeof SubscriptionType];
51
54
  export interface CreateHsmRequest {
52
55
  SubnetId: string | undefined;
53
56
  SshKey: string | undefined;
@@ -89,11 +92,13 @@ export interface DeleteLunaClientResponse {
89
92
  export interface DescribeHapgRequest {
90
93
  HapgArn: string | undefined;
91
94
  }
92
- export declare enum CloudHsmObjectState {
93
- DEGRADED = "DEGRADED",
94
- READY = "READY",
95
- UPDATING = "UPDATING",
96
- }
95
+ export declare const CloudHsmObjectState: {
96
+ readonly DEGRADED: "DEGRADED";
97
+ readonly READY: "READY";
98
+ readonly UPDATING: "UPDATING";
99
+ };
100
+ export type CloudHsmObjectState =
101
+ (typeof CloudHsmObjectState)[keyof typeof CloudHsmObjectState];
97
102
  export interface DescribeHapgResponse {
98
103
  HapgArn?: string;
99
104
  HapgSerial?: string;
@@ -109,15 +114,16 @@ export interface DescribeHsmRequest {
109
114
  HsmArn?: string;
110
115
  HsmSerialNumber?: string;
111
116
  }
112
- export declare enum HsmStatus {
113
- DEGRADED = "DEGRADED",
114
- PENDING = "PENDING",
115
- RUNNING = "RUNNING",
116
- SUSPENDED = "SUSPENDED",
117
- TERMINATED = "TERMINATED",
118
- TERMINATING = "TERMINATING",
119
- UPDATING = "UPDATING",
120
- }
117
+ export declare const HsmStatus: {
118
+ readonly DEGRADED: "DEGRADED";
119
+ readonly PENDING: "PENDING";
120
+ readonly RUNNING: "RUNNING";
121
+ readonly SUSPENDED: "SUSPENDED";
122
+ readonly TERMINATED: "TERMINATED";
123
+ readonly TERMINATING: "TERMINATING";
124
+ readonly UPDATING: "UPDATING";
125
+ };
126
+ export type HsmStatus = (typeof HsmStatus)[keyof typeof HsmStatus];
121
127
  export interface DescribeHsmResponse {
122
128
  HsmArn?: string;
123
129
  Status?: HsmStatus | string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudhsm",
3
3
  "description": "AWS SDK for JavaScript Cloudhsm 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",