@aws-sdk/client-pi 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,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PeriodAlignment = exports.FeatureStatus = exports.DetailStatus = exports.NotAuthorizedException = exports.InvalidArgumentException = exports.InternalServiceError = exports.ServiceType = void 0;
4
4
  const PIServiceException_1 = require("./PIServiceException");
5
- var ServiceType;
6
- (function (ServiceType) {
7
- ServiceType["DOCDB"] = "DOCDB";
8
- ServiceType["RDS"] = "RDS";
9
- })(ServiceType = exports.ServiceType || (exports.ServiceType = {}));
5
+ exports.ServiceType = {
6
+ DOCDB: "DOCDB",
7
+ RDS: "RDS",
8
+ };
10
9
  class InternalServiceError extends PIServiceException_1.PIServiceException {
11
10
  constructor(opts) {
12
11
  super({
@@ -49,23 +48,20 @@ class NotAuthorizedException extends PIServiceException_1.PIServiceException {
49
48
  }
50
49
  }
51
50
  exports.NotAuthorizedException = NotAuthorizedException;
52
- var DetailStatus;
53
- (function (DetailStatus) {
54
- DetailStatus["AVAILABLE"] = "AVAILABLE";
55
- DetailStatus["PROCESSING"] = "PROCESSING";
56
- DetailStatus["UNAVAILABLE"] = "UNAVAILABLE";
57
- })(DetailStatus = exports.DetailStatus || (exports.DetailStatus = {}));
58
- var FeatureStatus;
59
- (function (FeatureStatus) {
60
- FeatureStatus["DISABLED"] = "DISABLED";
61
- FeatureStatus["DISABLED_PENDING_REBOOT"] = "DISABLED_PENDING_REBOOT";
62
- FeatureStatus["ENABLED"] = "ENABLED";
63
- FeatureStatus["ENABLED_PENDING_REBOOT"] = "ENABLED_PENDING_REBOOT";
64
- FeatureStatus["UNKNOWN"] = "UNKNOWN";
65
- FeatureStatus["UNSUPPORTED"] = "UNSUPPORTED";
66
- })(FeatureStatus = exports.FeatureStatus || (exports.FeatureStatus = {}));
67
- var PeriodAlignment;
68
- (function (PeriodAlignment) {
69
- PeriodAlignment["END_TIME"] = "END_TIME";
70
- PeriodAlignment["START_TIME"] = "START_TIME";
71
- })(PeriodAlignment = exports.PeriodAlignment || (exports.PeriodAlignment = {}));
51
+ exports.DetailStatus = {
52
+ AVAILABLE: "AVAILABLE",
53
+ PROCESSING: "PROCESSING",
54
+ UNAVAILABLE: "UNAVAILABLE",
55
+ };
56
+ exports.FeatureStatus = {
57
+ DISABLED: "DISABLED",
58
+ DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT",
59
+ ENABLED: "ENABLED",
60
+ ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT",
61
+ UNKNOWN: "UNKNOWN",
62
+ UNSUPPORTED: "UNSUPPORTED",
63
+ };
64
+ exports.PeriodAlignment = {
65
+ END_TIME: "END_TIME",
66
+ START_TIME: "START_TIME",
67
+ };
@@ -1,9 +1,8 @@
1
1
  import { PIServiceException as __BaseException } from "./PIServiceException";
2
- export var ServiceType;
3
- (function (ServiceType) {
4
- ServiceType["DOCDB"] = "DOCDB";
5
- ServiceType["RDS"] = "RDS";
6
- })(ServiceType || (ServiceType = {}));
2
+ export const ServiceType = {
3
+ DOCDB: "DOCDB",
4
+ RDS: "RDS",
5
+ };
7
6
  export class InternalServiceError extends __BaseException {
8
7
  constructor(opts) {
9
8
  super({
@@ -43,23 +42,20 @@ export class NotAuthorizedException extends __BaseException {
43
42
  this.Message = opts.Message;
44
43
  }
45
44
  }
46
- export var DetailStatus;
47
- (function (DetailStatus) {
48
- DetailStatus["AVAILABLE"] = "AVAILABLE";
49
- DetailStatus["PROCESSING"] = "PROCESSING";
50
- DetailStatus["UNAVAILABLE"] = "UNAVAILABLE";
51
- })(DetailStatus || (DetailStatus = {}));
52
- export var FeatureStatus;
53
- (function (FeatureStatus) {
54
- FeatureStatus["DISABLED"] = "DISABLED";
55
- FeatureStatus["DISABLED_PENDING_REBOOT"] = "DISABLED_PENDING_REBOOT";
56
- FeatureStatus["ENABLED"] = "ENABLED";
57
- FeatureStatus["ENABLED_PENDING_REBOOT"] = "ENABLED_PENDING_REBOOT";
58
- FeatureStatus["UNKNOWN"] = "UNKNOWN";
59
- FeatureStatus["UNSUPPORTED"] = "UNSUPPORTED";
60
- })(FeatureStatus || (FeatureStatus = {}));
61
- export var PeriodAlignment;
62
- (function (PeriodAlignment) {
63
- PeriodAlignment["END_TIME"] = "END_TIME";
64
- PeriodAlignment["START_TIME"] = "START_TIME";
65
- })(PeriodAlignment || (PeriodAlignment = {}));
45
+ export const DetailStatus = {
46
+ AVAILABLE: "AVAILABLE",
47
+ PROCESSING: "PROCESSING",
48
+ UNAVAILABLE: "UNAVAILABLE",
49
+ };
50
+ export const FeatureStatus = {
51
+ DISABLED: "DISABLED",
52
+ DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT",
53
+ ENABLED: "ENABLED",
54
+ ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT",
55
+ UNKNOWN: "UNKNOWN",
56
+ UNSUPPORTED: "UNSUPPORTED",
57
+ };
58
+ export const PeriodAlignment = {
59
+ END_TIME: "END_TIME",
60
+ START_TIME: "START_TIME",
61
+ };
@@ -286,11 +286,16 @@ export interface DimensionGroup {
286
286
  }
287
287
  /**
288
288
  * @public
289
+ * @enum
289
290
  */
290
- export declare enum ServiceType {
291
- DOCDB = "DOCDB",
292
- RDS = "RDS"
293
- }
291
+ export declare const ServiceType: {
292
+ readonly DOCDB: "DOCDB";
293
+ readonly RDS: "RDS";
294
+ };
295
+ /**
296
+ * @public
297
+ */
298
+ export type ServiceType = (typeof ServiceType)[keyof typeof ServiceType];
294
299
  /**
295
300
  * @public
296
301
  */
@@ -535,12 +540,17 @@ export declare class NotAuthorizedException extends __BaseException {
535
540
  }
536
541
  /**
537
542
  * @public
543
+ * @enum
538
544
  */
539
- export declare enum DetailStatus {
540
- AVAILABLE = "AVAILABLE",
541
- PROCESSING = "PROCESSING",
542
- UNAVAILABLE = "UNAVAILABLE"
543
- }
545
+ export declare const DetailStatus: {
546
+ readonly AVAILABLE: "AVAILABLE";
547
+ readonly PROCESSING: "PROCESSING";
548
+ readonly UNAVAILABLE: "UNAVAILABLE";
549
+ };
550
+ /**
551
+ * @public
552
+ */
553
+ export type DetailStatus = (typeof DetailStatus)[keyof typeof DetailStatus];
544
554
  /**
545
555
  * @public
546
556
  * <p>The information about a dimension.</p>
@@ -621,15 +631,20 @@ export interface DimensionKeyDetail {
621
631
  }
622
632
  /**
623
633
  * @public
634
+ * @enum
624
635
  */
625
- export declare enum FeatureStatus {
626
- DISABLED = "DISABLED",
627
- DISABLED_PENDING_REBOOT = "DISABLED_PENDING_REBOOT",
628
- ENABLED = "ENABLED",
629
- ENABLED_PENDING_REBOOT = "ENABLED_PENDING_REBOOT",
630
- UNKNOWN = "UNKNOWN",
631
- UNSUPPORTED = "UNSUPPORTED"
632
- }
636
+ export declare const FeatureStatus: {
637
+ readonly DISABLED: "DISABLED";
638
+ readonly DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT";
639
+ readonly ENABLED: "ENABLED";
640
+ readonly ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT";
641
+ readonly UNKNOWN: "UNKNOWN";
642
+ readonly UNSUPPORTED: "UNSUPPORTED";
643
+ };
644
+ /**
645
+ * @public
646
+ */
647
+ export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus];
633
648
  /**
634
649
  * @public
635
650
  * <p>The metadata for a feature. For example, the metadata might indicate that a feature is
@@ -827,11 +842,16 @@ export interface MetricQuery {
827
842
  }
828
843
  /**
829
844
  * @public
845
+ * @enum
830
846
  */
831
- export declare enum PeriodAlignment {
832
- END_TIME = "END_TIME",
833
- START_TIME = "START_TIME"
834
- }
847
+ export declare const PeriodAlignment: {
848
+ readonly END_TIME: "END_TIME";
849
+ readonly START_TIME: "START_TIME";
850
+ };
851
+ /**
852
+ * @public
853
+ */
854
+ export type PeriodAlignment = (typeof PeriodAlignment)[keyof typeof PeriodAlignment];
835
855
  /**
836
856
  * @public
837
857
  */
@@ -9,10 +9,11 @@ export interface DimensionGroup {
9
9
  Dimensions?: string[];
10
10
  Limit?: number;
11
11
  }
12
- export declare enum ServiceType {
13
- DOCDB = "DOCDB",
14
- RDS = "RDS",
15
- }
12
+ export declare const ServiceType: {
13
+ readonly DOCDB: "DOCDB";
14
+ readonly RDS: "RDS";
15
+ };
16
+ export type ServiceType = (typeof ServiceType)[keyof typeof ServiceType];
16
17
  export interface DescribeDimensionKeysRequest {
17
18
  ServiceType: ServiceType | string | undefined;
18
19
  Identifier: string | undefined;
@@ -67,11 +68,12 @@ export declare class NotAuthorizedException extends __BaseException {
67
68
  opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>
68
69
  );
69
70
  }
70
- export declare enum DetailStatus {
71
- AVAILABLE = "AVAILABLE",
72
- PROCESSING = "PROCESSING",
73
- UNAVAILABLE = "UNAVAILABLE",
74
- }
71
+ export declare const DetailStatus: {
72
+ readonly AVAILABLE: "AVAILABLE";
73
+ readonly PROCESSING: "PROCESSING";
74
+ readonly UNAVAILABLE: "UNAVAILABLE";
75
+ };
76
+ export type DetailStatus = (typeof DetailStatus)[keyof typeof DetailStatus];
75
77
  export interface DimensionDetail {
76
78
  Identifier?: string;
77
79
  }
@@ -84,14 +86,15 @@ export interface DimensionKeyDetail {
84
86
  Dimension?: string;
85
87
  Status?: DetailStatus | string;
86
88
  }
87
- export declare enum FeatureStatus {
88
- DISABLED = "DISABLED",
89
- DISABLED_PENDING_REBOOT = "DISABLED_PENDING_REBOOT",
90
- ENABLED = "ENABLED",
91
- ENABLED_PENDING_REBOOT = "ENABLED_PENDING_REBOOT",
92
- UNKNOWN = "UNKNOWN",
93
- UNSUPPORTED = "UNSUPPORTED",
94
- }
89
+ export declare const FeatureStatus: {
90
+ readonly DISABLED: "DISABLED";
91
+ readonly DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT";
92
+ readonly ENABLED: "ENABLED";
93
+ readonly ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT";
94
+ readonly UNKNOWN: "UNKNOWN";
95
+ readonly UNSUPPORTED: "UNSUPPORTED";
96
+ };
97
+ export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus];
95
98
  export interface FeatureMetadata {
96
99
  Status?: FeatureStatus | string;
97
100
  }
@@ -118,10 +121,12 @@ export interface MetricQuery {
118
121
  GroupBy?: DimensionGroup;
119
122
  Filter?: Record<string, string>;
120
123
  }
121
- export declare enum PeriodAlignment {
122
- END_TIME = "END_TIME",
123
- START_TIME = "START_TIME",
124
- }
124
+ export declare const PeriodAlignment: {
125
+ readonly END_TIME: "END_TIME";
126
+ readonly START_TIME: "START_TIME";
127
+ };
128
+ export type PeriodAlignment =
129
+ (typeof PeriodAlignment)[keyof typeof PeriodAlignment];
125
130
  export interface GetResourceMetricsRequest {
126
131
  ServiceType: ServiceType | string | undefined;
127
132
  Identifier: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pi",
3
3
  "description": "AWS SDK for JavaScript Pi 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",