@aws-sdk/client-health 3.301.0 → 3.303.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,18 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConcurrentModificationException = exports.EventTypeCategory = exports.EventStatusCode = exports.EventAggregateField = exports.UnsupportedLocale = exports.InvalidPaginationToken = exports.EventScopeCode = exports.EntityStatusCode = void 0;
4
4
  const HealthServiceException_1 = require("./HealthServiceException");
5
- var EntityStatusCode;
6
- (function (EntityStatusCode) {
7
- EntityStatusCode["IMPAIRED"] = "IMPAIRED";
8
- EntityStatusCode["UNIMPAIRED"] = "UNIMPAIRED";
9
- EntityStatusCode["UNKNOWN"] = "UNKNOWN";
10
- })(EntityStatusCode = exports.EntityStatusCode || (exports.EntityStatusCode = {}));
11
- var EventScopeCode;
12
- (function (EventScopeCode) {
13
- EventScopeCode["ACCOUNT_SPECIFIC"] = "ACCOUNT_SPECIFIC";
14
- EventScopeCode["NONE"] = "NONE";
15
- EventScopeCode["PUBLIC"] = "PUBLIC";
16
- })(EventScopeCode = exports.EventScopeCode || (exports.EventScopeCode = {}));
5
+ exports.EntityStatusCode = {
6
+ IMPAIRED: "IMPAIRED",
7
+ UNIMPAIRED: "UNIMPAIRED",
8
+ UNKNOWN: "UNKNOWN",
9
+ };
10
+ exports.EventScopeCode = {
11
+ ACCOUNT_SPECIFIC: "ACCOUNT_SPECIFIC",
12
+ NONE: "NONE",
13
+ PUBLIC: "PUBLIC",
14
+ };
17
15
  class InvalidPaginationToken extends HealthServiceException_1.HealthServiceException {
18
16
  constructor(opts) {
19
17
  super({
@@ -40,23 +38,20 @@ class UnsupportedLocale extends HealthServiceException_1.HealthServiceException
40
38
  }
41
39
  }
42
40
  exports.UnsupportedLocale = UnsupportedLocale;
43
- var EventAggregateField;
44
- (function (EventAggregateField) {
45
- EventAggregateField["EventTypeCategory"] = "eventTypeCategory";
46
- })(EventAggregateField = exports.EventAggregateField || (exports.EventAggregateField = {}));
47
- var EventStatusCode;
48
- (function (EventStatusCode) {
49
- EventStatusCode["CLOSED"] = "closed";
50
- EventStatusCode["OPEN"] = "open";
51
- EventStatusCode["UPCOMING"] = "upcoming";
52
- })(EventStatusCode = exports.EventStatusCode || (exports.EventStatusCode = {}));
53
- var EventTypeCategory;
54
- (function (EventTypeCategory) {
55
- EventTypeCategory["ACCOUNT_NOTIFICATION"] = "accountNotification";
56
- EventTypeCategory["INVESTIGATION"] = "investigation";
57
- EventTypeCategory["ISSUE"] = "issue";
58
- EventTypeCategory["SCHEDULED_CHANGE"] = "scheduledChange";
59
- })(EventTypeCategory = exports.EventTypeCategory || (exports.EventTypeCategory = {}));
41
+ exports.EventAggregateField = {
42
+ EventTypeCategory: "eventTypeCategory",
43
+ };
44
+ exports.EventStatusCode = {
45
+ CLOSED: "closed",
46
+ OPEN: "open",
47
+ UPCOMING: "upcoming",
48
+ };
49
+ exports.EventTypeCategory = {
50
+ ACCOUNT_NOTIFICATION: "accountNotification",
51
+ INVESTIGATION: "investigation",
52
+ ISSUE: "issue",
53
+ SCHEDULED_CHANGE: "scheduledChange",
54
+ };
60
55
  class ConcurrentModificationException extends HealthServiceException_1.HealthServiceException {
61
56
  constructor(opts) {
62
57
  super({
@@ -1,16 +1,14 @@
1
1
  import { HealthServiceException as __BaseException } from "./HealthServiceException";
2
- export var EntityStatusCode;
3
- (function (EntityStatusCode) {
4
- EntityStatusCode["IMPAIRED"] = "IMPAIRED";
5
- EntityStatusCode["UNIMPAIRED"] = "UNIMPAIRED";
6
- EntityStatusCode["UNKNOWN"] = "UNKNOWN";
7
- })(EntityStatusCode || (EntityStatusCode = {}));
8
- export var EventScopeCode;
9
- (function (EventScopeCode) {
10
- EventScopeCode["ACCOUNT_SPECIFIC"] = "ACCOUNT_SPECIFIC";
11
- EventScopeCode["NONE"] = "NONE";
12
- EventScopeCode["PUBLIC"] = "PUBLIC";
13
- })(EventScopeCode || (EventScopeCode = {}));
2
+ export const EntityStatusCode = {
3
+ IMPAIRED: "IMPAIRED",
4
+ UNIMPAIRED: "UNIMPAIRED",
5
+ UNKNOWN: "UNKNOWN",
6
+ };
7
+ export const EventScopeCode = {
8
+ ACCOUNT_SPECIFIC: "ACCOUNT_SPECIFIC",
9
+ NONE: "NONE",
10
+ PUBLIC: "PUBLIC",
11
+ };
14
12
  export class InvalidPaginationToken extends __BaseException {
15
13
  constructor(opts) {
16
14
  super({
@@ -35,23 +33,20 @@ export class UnsupportedLocale extends __BaseException {
35
33
  Object.setPrototypeOf(this, UnsupportedLocale.prototype);
36
34
  }
37
35
  }
38
- export var EventAggregateField;
39
- (function (EventAggregateField) {
40
- EventAggregateField["EventTypeCategory"] = "eventTypeCategory";
41
- })(EventAggregateField || (EventAggregateField = {}));
42
- export var EventStatusCode;
43
- (function (EventStatusCode) {
44
- EventStatusCode["CLOSED"] = "closed";
45
- EventStatusCode["OPEN"] = "open";
46
- EventStatusCode["UPCOMING"] = "upcoming";
47
- })(EventStatusCode || (EventStatusCode = {}));
48
- export var EventTypeCategory;
49
- (function (EventTypeCategory) {
50
- EventTypeCategory["ACCOUNT_NOTIFICATION"] = "accountNotification";
51
- EventTypeCategory["INVESTIGATION"] = "investigation";
52
- EventTypeCategory["ISSUE"] = "issue";
53
- EventTypeCategory["SCHEDULED_CHANGE"] = "scheduledChange";
54
- })(EventTypeCategory || (EventTypeCategory = {}));
36
+ export const EventAggregateField = {
37
+ EventTypeCategory: "eventTypeCategory",
38
+ };
39
+ export const EventStatusCode = {
40
+ CLOSED: "closed",
41
+ OPEN: "open",
42
+ UPCOMING: "upcoming",
43
+ };
44
+ export const EventTypeCategory = {
45
+ ACCOUNT_NOTIFICATION: "accountNotification",
46
+ INVESTIGATION: "investigation",
47
+ ISSUE: "issue",
48
+ SCHEDULED_CHANGE: "scheduledChange",
49
+ };
55
50
  export class ConcurrentModificationException extends __BaseException {
56
51
  constructor(opts) {
57
52
  super({
@@ -2,12 +2,17 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { HealthServiceException as __BaseException } from "./HealthServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum EntityStatusCode {
7
- IMPAIRED = "IMPAIRED",
8
- UNIMPAIRED = "UNIMPAIRED",
9
- UNKNOWN = "UNKNOWN"
10
- }
7
+ export declare const EntityStatusCode: {
8
+ readonly IMPAIRED: "IMPAIRED";
9
+ readonly UNIMPAIRED: "UNIMPAIRED";
10
+ readonly UNKNOWN: "UNKNOWN";
11
+ };
12
+ /**
13
+ * @public
14
+ */
15
+ export type EntityStatusCode = (typeof EntityStatusCode)[keyof typeof EntityStatusCode];
11
16
  /**
12
17
  * @public
13
18
  * <p>Information about an entity that is affected by a Health event.</p>
@@ -88,12 +93,17 @@ export interface DescribeAffectedAccountsForOrganizationRequest {
88
93
  }
89
94
  /**
90
95
  * @public
96
+ * @enum
91
97
  */
92
- export declare enum EventScopeCode {
93
- ACCOUNT_SPECIFIC = "ACCOUNT_SPECIFIC",
94
- NONE = "NONE",
95
- PUBLIC = "PUBLIC"
96
- }
98
+ export declare const EventScopeCode: {
99
+ readonly ACCOUNT_SPECIFIC: "ACCOUNT_SPECIFIC";
100
+ readonly NONE: "NONE";
101
+ readonly PUBLIC: "PUBLIC";
102
+ };
103
+ /**
104
+ * @public
105
+ */
106
+ export type EventScopeCode = (typeof EventScopeCode)[keyof typeof EventScopeCode];
97
107
  /**
98
108
  * @public
99
109
  */
@@ -394,27 +404,42 @@ export interface DescribeEntityAggregatesResponse {
394
404
  }
395
405
  /**
396
406
  * @public
407
+ * @enum
397
408
  */
398
- export declare enum EventAggregateField {
399
- EventTypeCategory = "eventTypeCategory"
400
- }
409
+ export declare const EventAggregateField: {
410
+ readonly EventTypeCategory: "eventTypeCategory";
411
+ };
401
412
  /**
402
413
  * @public
403
414
  */
404
- export declare enum EventStatusCode {
405
- CLOSED = "closed",
406
- OPEN = "open",
407
- UPCOMING = "upcoming"
408
- }
415
+ export type EventAggregateField = (typeof EventAggregateField)[keyof typeof EventAggregateField];
409
416
  /**
410
417
  * @public
418
+ * @enum
411
419
  */
412
- export declare enum EventTypeCategory {
413
- ACCOUNT_NOTIFICATION = "accountNotification",
414
- INVESTIGATION = "investigation",
415
- ISSUE = "issue",
416
- SCHEDULED_CHANGE = "scheduledChange"
417
- }
420
+ export declare const EventStatusCode: {
421
+ readonly CLOSED: "closed";
422
+ readonly OPEN: "open";
423
+ readonly UPCOMING: "upcoming";
424
+ };
425
+ /**
426
+ * @public
427
+ */
428
+ export type EventStatusCode = (typeof EventStatusCode)[keyof typeof EventStatusCode];
429
+ /**
430
+ * @public
431
+ * @enum
432
+ */
433
+ export declare const EventTypeCategory: {
434
+ readonly ACCOUNT_NOTIFICATION: "accountNotification";
435
+ readonly INVESTIGATION: "investigation";
436
+ readonly ISSUE: "issue";
437
+ readonly SCHEDULED_CHANGE: "scheduledChange";
438
+ };
439
+ /**
440
+ * @public
441
+ */
442
+ export type EventTypeCategory = (typeof EventTypeCategory)[keyof typeof EventTypeCategory];
418
443
  /**
419
444
  * @public
420
445
  * <p>The values to use to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a> and
@@ -1,10 +1,12 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { HealthServiceException as __BaseException } from "./HealthServiceException";
3
- export declare enum EntityStatusCode {
4
- IMPAIRED = "IMPAIRED",
5
- UNIMPAIRED = "UNIMPAIRED",
6
- UNKNOWN = "UNKNOWN",
7
- }
3
+ export declare const EntityStatusCode: {
4
+ readonly IMPAIRED: "IMPAIRED";
5
+ readonly UNIMPAIRED: "UNIMPAIRED";
6
+ readonly UNKNOWN: "UNKNOWN";
7
+ };
8
+ export type EntityStatusCode =
9
+ (typeof EntityStatusCode)[keyof typeof EntityStatusCode];
8
10
  export interface AffectedEntity {
9
11
  entityArn?: string;
10
12
  eventArn?: string;
@@ -20,11 +22,13 @@ export interface DescribeAffectedAccountsForOrganizationRequest {
20
22
  nextToken?: string;
21
23
  maxResults?: number;
22
24
  }
23
- export declare enum EventScopeCode {
24
- ACCOUNT_SPECIFIC = "ACCOUNT_SPECIFIC",
25
- NONE = "NONE",
26
- PUBLIC = "PUBLIC",
27
- }
25
+ export declare const EventScopeCode: {
26
+ readonly ACCOUNT_SPECIFIC: "ACCOUNT_SPECIFIC";
27
+ readonly NONE: "NONE";
28
+ readonly PUBLIC: "PUBLIC";
29
+ };
30
+ export type EventScopeCode =
31
+ (typeof EventScopeCode)[keyof typeof EventScopeCode];
28
32
  export interface DescribeAffectedAccountsForOrganizationResponse {
29
33
  affectedAccounts?: string[];
30
34
  eventScopeCode?: EventScopeCode | string;
@@ -95,20 +99,26 @@ export interface EntityAggregate {
95
99
  export interface DescribeEntityAggregatesResponse {
96
100
  entityAggregates?: EntityAggregate[];
97
101
  }
98
- export declare enum EventAggregateField {
99
- EventTypeCategory = "eventTypeCategory",
100
- }
101
- export declare enum EventStatusCode {
102
- CLOSED = "closed",
103
- OPEN = "open",
104
- UPCOMING = "upcoming",
105
- }
106
- export declare enum EventTypeCategory {
107
- ACCOUNT_NOTIFICATION = "accountNotification",
108
- INVESTIGATION = "investigation",
109
- ISSUE = "issue",
110
- SCHEDULED_CHANGE = "scheduledChange",
111
- }
102
+ export declare const EventAggregateField: {
103
+ readonly EventTypeCategory: "eventTypeCategory";
104
+ };
105
+ export type EventAggregateField =
106
+ (typeof EventAggregateField)[keyof typeof EventAggregateField];
107
+ export declare const EventStatusCode: {
108
+ readonly CLOSED: "closed";
109
+ readonly OPEN: "open";
110
+ readonly UPCOMING: "upcoming";
111
+ };
112
+ export type EventStatusCode =
113
+ (typeof EventStatusCode)[keyof typeof EventStatusCode];
114
+ export declare const EventTypeCategory: {
115
+ readonly ACCOUNT_NOTIFICATION: "accountNotification";
116
+ readonly INVESTIGATION: "investigation";
117
+ readonly ISSUE: "issue";
118
+ readonly SCHEDULED_CHANGE: "scheduledChange";
119
+ };
120
+ export type EventTypeCategory =
121
+ (typeof EventTypeCategory)[keyof typeof EventTypeCategory];
112
122
  export interface EventFilter {
113
123
  eventArns?: string[];
114
124
  eventTypeCodes?: string[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-health",
3
3
  "description": "AWS SDK for JavaScript Health Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.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.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.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.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.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",