@aws-sdk/client-pi 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.
package/dist-cjs/index.js CHANGED
@@ -117,32 +117,6 @@ let PIServiceException$1 = class PIServiceException extends smithyClient.Service
117
117
  }
118
118
  };
119
119
 
120
- const AcceptLanguage = {
121
- EN_US: "EN_US",
122
- };
123
- const ContextType = {
124
- CAUSAL: "CAUSAL",
125
- CONTEXTUAL: "CONTEXTUAL",
126
- };
127
- const Severity = {
128
- HIGH: "HIGH",
129
- LOW: "LOW",
130
- MEDIUM: "MEDIUM",
131
- };
132
- const ServiceType = {
133
- DOCDB: "DOCDB",
134
- RDS: "RDS",
135
- };
136
- const AnalysisStatus = {
137
- FAILED: "FAILED",
138
- RUNNING: "RUNNING",
139
- SUCCEEDED: "SUCCEEDED",
140
- };
141
- const FineGrainedAction = {
142
- DESCRIBE_DIMENSION_KEYS: "DescribeDimensionKeys",
143
- GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails",
144
- GET_RESOURCE_METRICS: "GetResourceMetrics",
145
- };
146
120
  let InternalServiceError$1 = class InternalServiceError extends PIServiceException$1 {
147
121
  name = "InternalServiceError";
148
122
  $fault = "server";
@@ -185,27 +159,6 @@ let NotAuthorizedException$1 = class NotAuthorizedException extends PIServiceExc
185
159
  this.Message = opts.Message;
186
160
  }
187
161
  };
188
- const DetailStatus = {
189
- AVAILABLE: "AVAILABLE",
190
- PROCESSING: "PROCESSING",
191
- UNAVAILABLE: "UNAVAILABLE",
192
- };
193
- const FeatureStatus = {
194
- DISABLED: "DISABLED",
195
- DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT",
196
- ENABLED: "ENABLED",
197
- ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT",
198
- UNKNOWN: "UNKNOWN",
199
- UNSUPPORTED: "UNSUPPORTED",
200
- };
201
- const TextFormat = {
202
- MARKDOWN: "MARKDOWN",
203
- PLAIN_TEXT: "PLAIN_TEXT",
204
- };
205
- const PeriodAlignment = {
206
- END_TIME: "END_TIME",
207
- START_TIME: "START_TIME",
208
- };
209
162
 
210
163
  const _AA = "AuthorizedActions";
211
164
  const _AET = "AlignedEndTime";
@@ -914,6 +867,54 @@ const paginateListAvailableResourceMetrics = core.createPaginator(PIClient, List
914
867
 
915
868
  const paginateListPerformanceAnalysisReports = core.createPaginator(PIClient, ListPerformanceAnalysisReportsCommand, "NextToken", "NextToken", "MaxResults");
916
869
 
870
+ const AcceptLanguage = {
871
+ EN_US: "EN_US",
872
+ };
873
+ const ContextType = {
874
+ CAUSAL: "CAUSAL",
875
+ CONTEXTUAL: "CONTEXTUAL",
876
+ };
877
+ const Severity = {
878
+ HIGH: "HIGH",
879
+ LOW: "LOW",
880
+ MEDIUM: "MEDIUM",
881
+ };
882
+ const ServiceType = {
883
+ DOCDB: "DOCDB",
884
+ RDS: "RDS",
885
+ };
886
+ const AnalysisStatus = {
887
+ FAILED: "FAILED",
888
+ RUNNING: "RUNNING",
889
+ SUCCEEDED: "SUCCEEDED",
890
+ };
891
+ const FineGrainedAction = {
892
+ DESCRIBE_DIMENSION_KEYS: "DescribeDimensionKeys",
893
+ GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails",
894
+ GET_RESOURCE_METRICS: "GetResourceMetrics",
895
+ };
896
+ const DetailStatus = {
897
+ AVAILABLE: "AVAILABLE",
898
+ PROCESSING: "PROCESSING",
899
+ UNAVAILABLE: "UNAVAILABLE",
900
+ };
901
+ const FeatureStatus = {
902
+ DISABLED: "DISABLED",
903
+ DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT",
904
+ ENABLED: "ENABLED",
905
+ ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT",
906
+ UNKNOWN: "UNKNOWN",
907
+ UNSUPPORTED: "UNSUPPORTED",
908
+ };
909
+ const TextFormat = {
910
+ MARKDOWN: "MARKDOWN",
911
+ PLAIN_TEXT: "PLAIN_TEXT",
912
+ };
913
+ const PeriodAlignment = {
914
+ END_TIME: "END_TIME",
915
+ START_TIME: "START_TIME",
916
+ };
917
+
917
918
  Object.defineProperty(exports, "$Command", {
918
919
  enumerable: true,
919
920
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./PIClient";
2
2
  export * from "./PI";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { PIServiceException } from "./models/PIServiceException";
@@ -0,0 +1,47 @@
1
+ export const AcceptLanguage = {
2
+ EN_US: "EN_US",
3
+ };
4
+ export const ContextType = {
5
+ CAUSAL: "CAUSAL",
6
+ CONTEXTUAL: "CONTEXTUAL",
7
+ };
8
+ export const Severity = {
9
+ HIGH: "HIGH",
10
+ LOW: "LOW",
11
+ MEDIUM: "MEDIUM",
12
+ };
13
+ export const ServiceType = {
14
+ DOCDB: "DOCDB",
15
+ RDS: "RDS",
16
+ };
17
+ export const AnalysisStatus = {
18
+ FAILED: "FAILED",
19
+ RUNNING: "RUNNING",
20
+ SUCCEEDED: "SUCCEEDED",
21
+ };
22
+ export const FineGrainedAction = {
23
+ DESCRIBE_DIMENSION_KEYS: "DescribeDimensionKeys",
24
+ GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails",
25
+ GET_RESOURCE_METRICS: "GetResourceMetrics",
26
+ };
27
+ export const DetailStatus = {
28
+ AVAILABLE: "AVAILABLE",
29
+ PROCESSING: "PROCESSING",
30
+ UNAVAILABLE: "UNAVAILABLE",
31
+ };
32
+ export const FeatureStatus = {
33
+ DISABLED: "DISABLED",
34
+ DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT",
35
+ ENABLED: "ENABLED",
36
+ ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT",
37
+ UNKNOWN: "UNKNOWN",
38
+ UNSUPPORTED: "UNSUPPORTED",
39
+ };
40
+ export const TextFormat = {
41
+ MARKDOWN: "MARKDOWN",
42
+ PLAIN_TEXT: "PLAIN_TEXT",
43
+ };
44
+ export const PeriodAlignment = {
45
+ END_TIME: "END_TIME",
46
+ START_TIME: "START_TIME",
47
+ };
@@ -0,0 +1,43 @@
1
+ import { PIServiceException as __BaseException } from "./PIServiceException";
2
+ export class InternalServiceError extends __BaseException {
3
+ name = "InternalServiceError";
4
+ $fault = "server";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "InternalServiceError",
9
+ $fault: "server",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, InternalServiceError.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class InvalidArgumentException extends __BaseException {
17
+ name = "InvalidArgumentException";
18
+ $fault = "client";
19
+ Message;
20
+ constructor(opts) {
21
+ super({
22
+ name: "InvalidArgumentException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, InvalidArgumentException.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class NotAuthorizedException extends __BaseException {
31
+ name = "NotAuthorizedException";
32
+ $fault = "client";
33
+ Message;
34
+ constructor(opts) {
35
+ super({
36
+ name: "NotAuthorizedException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
41
+ this.Message = opts.Message;
42
+ }
43
+ }
@@ -1,90 +1 @@
1
- import { PIServiceException as __BaseException } from "./PIServiceException";
2
- export const AcceptLanguage = {
3
- EN_US: "EN_US",
4
- };
5
- export const ContextType = {
6
- CAUSAL: "CAUSAL",
7
- CONTEXTUAL: "CONTEXTUAL",
8
- };
9
- export const Severity = {
10
- HIGH: "HIGH",
11
- LOW: "LOW",
12
- MEDIUM: "MEDIUM",
13
- };
14
- export const ServiceType = {
15
- DOCDB: "DOCDB",
16
- RDS: "RDS",
17
- };
18
- export const AnalysisStatus = {
19
- FAILED: "FAILED",
20
- RUNNING: "RUNNING",
21
- SUCCEEDED: "SUCCEEDED",
22
- };
23
- export const FineGrainedAction = {
24
- DESCRIBE_DIMENSION_KEYS: "DescribeDimensionKeys",
25
- GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails",
26
- GET_RESOURCE_METRICS: "GetResourceMetrics",
27
- };
28
- export class InternalServiceError extends __BaseException {
29
- name = "InternalServiceError";
30
- $fault = "server";
31
- Message;
32
- constructor(opts) {
33
- super({
34
- name: "InternalServiceError",
35
- $fault: "server",
36
- ...opts,
37
- });
38
- Object.setPrototypeOf(this, InternalServiceError.prototype);
39
- this.Message = opts.Message;
40
- }
41
- }
42
- export class InvalidArgumentException extends __BaseException {
43
- name = "InvalidArgumentException";
44
- $fault = "client";
45
- Message;
46
- constructor(opts) {
47
- super({
48
- name: "InvalidArgumentException",
49
- $fault: "client",
50
- ...opts,
51
- });
52
- Object.setPrototypeOf(this, InvalidArgumentException.prototype);
53
- this.Message = opts.Message;
54
- }
55
- }
56
- export class NotAuthorizedException extends __BaseException {
57
- name = "NotAuthorizedException";
58
- $fault = "client";
59
- Message;
60
- constructor(opts) {
61
- super({
62
- name: "NotAuthorizedException",
63
- $fault: "client",
64
- ...opts,
65
- });
66
- Object.setPrototypeOf(this, NotAuthorizedException.prototype);
67
- this.Message = opts.Message;
68
- }
69
- }
70
- export const DetailStatus = {
71
- AVAILABLE: "AVAILABLE",
72
- PROCESSING: "PROCESSING",
73
- UNAVAILABLE: "UNAVAILABLE",
74
- };
75
- export const FeatureStatus = {
76
- DISABLED: "DISABLED",
77
- DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT",
78
- ENABLED: "ENABLED",
79
- ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT",
80
- UNKNOWN: "UNKNOWN",
81
- UNSUPPORTED: "UNSUPPORTED",
82
- };
83
- export const TextFormat = {
84
- MARKDOWN: "MARKDOWN",
85
- PLAIN_TEXT: "PLAIN_TEXT",
86
- };
87
- export const PeriodAlignment = {
88
- END_TIME: "END_TIME",
89
- START_TIME: "START_TIME",
90
- };
1
+ export {};
@@ -145,7 +145,7 @@ const _s = "server";
145
145
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.pi";
146
146
  const n0 = "com.amazonaws.pi";
147
147
  import { TypeRegistry } from "@smithy/core/schema";
148
- import { InternalServiceError as __InternalServiceError, InvalidArgumentException as __InvalidArgumentException, NotAuthorizedException as __NotAuthorizedException, } from "../models/index";
148
+ import { InternalServiceError as __InternalServiceError, InvalidArgumentException as __InvalidArgumentException, NotAuthorizedException as __NotAuthorizedException, } from "../models/errors";
149
149
  import { PIServiceException as __PIServiceException } from "../models/PIServiceException";
150
150
  export var MarkdownString = [0, n0, _MS, 8, 0];
151
151
  export var AnalysisReport = [
@@ -34,5 +34,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
34
34
  export type { PIExtensionConfiguration } from "./extensionConfiguration";
35
35
  export * from "./commands";
36
36
  export * from "./pagination";
37
- export * from "./models";
37
+ export * from "./models/enums";
38
+ export * from "./models/errors";
39
+ export type * from "./models/models_0";
38
40
  export { PIServiceException } from "./models/PIServiceException";
@@ -0,0 +1,127 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const AcceptLanguage: {
6
+ readonly EN_US: "EN_US";
7
+ };
8
+ /**
9
+ * @public
10
+ */
11
+ export type AcceptLanguage = (typeof AcceptLanguage)[keyof typeof AcceptLanguage];
12
+ /**
13
+ * @public
14
+ * @enum
15
+ */
16
+ export declare const ContextType: {
17
+ readonly CAUSAL: "CAUSAL";
18
+ readonly CONTEXTUAL: "CONTEXTUAL";
19
+ };
20
+ /**
21
+ * @public
22
+ */
23
+ export type ContextType = (typeof ContextType)[keyof typeof ContextType];
24
+ /**
25
+ * @public
26
+ * @enum
27
+ */
28
+ export declare const Severity: {
29
+ readonly HIGH: "HIGH";
30
+ readonly LOW: "LOW";
31
+ readonly MEDIUM: "MEDIUM";
32
+ };
33
+ /**
34
+ * @public
35
+ */
36
+ export type Severity = (typeof Severity)[keyof typeof Severity];
37
+ /**
38
+ * @public
39
+ * @enum
40
+ */
41
+ export declare const ServiceType: {
42
+ readonly DOCDB: "DOCDB";
43
+ readonly RDS: "RDS";
44
+ };
45
+ /**
46
+ * @public
47
+ */
48
+ export type ServiceType = (typeof ServiceType)[keyof typeof ServiceType];
49
+ /**
50
+ * @public
51
+ * @enum
52
+ */
53
+ export declare const AnalysisStatus: {
54
+ readonly FAILED: "FAILED";
55
+ readonly RUNNING: "RUNNING";
56
+ readonly SUCCEEDED: "SUCCEEDED";
57
+ };
58
+ /**
59
+ * @public
60
+ */
61
+ export type AnalysisStatus = (typeof AnalysisStatus)[keyof typeof AnalysisStatus];
62
+ /**
63
+ * @public
64
+ * @enum
65
+ */
66
+ export declare const FineGrainedAction: {
67
+ readonly DESCRIBE_DIMENSION_KEYS: "DescribeDimensionKeys";
68
+ readonly GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails";
69
+ readonly GET_RESOURCE_METRICS: "GetResourceMetrics";
70
+ };
71
+ /**
72
+ * @public
73
+ */
74
+ export type FineGrainedAction = (typeof FineGrainedAction)[keyof typeof FineGrainedAction];
75
+ /**
76
+ * @public
77
+ * @enum
78
+ */
79
+ export declare const DetailStatus: {
80
+ readonly AVAILABLE: "AVAILABLE";
81
+ readonly PROCESSING: "PROCESSING";
82
+ readonly UNAVAILABLE: "UNAVAILABLE";
83
+ };
84
+ /**
85
+ * @public
86
+ */
87
+ export type DetailStatus = (typeof DetailStatus)[keyof typeof DetailStatus];
88
+ /**
89
+ * @public
90
+ * @enum
91
+ */
92
+ export declare const FeatureStatus: {
93
+ readonly DISABLED: "DISABLED";
94
+ readonly DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT";
95
+ readonly ENABLED: "ENABLED";
96
+ readonly ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT";
97
+ readonly UNKNOWN: "UNKNOWN";
98
+ readonly UNSUPPORTED: "UNSUPPORTED";
99
+ };
100
+ /**
101
+ * @public
102
+ */
103
+ export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus];
104
+ /**
105
+ * @public
106
+ * @enum
107
+ */
108
+ export declare const TextFormat: {
109
+ readonly MARKDOWN: "MARKDOWN";
110
+ readonly PLAIN_TEXT: "PLAIN_TEXT";
111
+ };
112
+ /**
113
+ * @public
114
+ */
115
+ export type TextFormat = (typeof TextFormat)[keyof typeof TextFormat];
116
+ /**
117
+ * @public
118
+ * @enum
119
+ */
120
+ export declare const PeriodAlignment: {
121
+ readonly END_TIME: "END_TIME";
122
+ readonly START_TIME: "START_TIME";
123
+ };
124
+ /**
125
+ * @public
126
+ */
127
+ export type PeriodAlignment = (typeof PeriodAlignment)[keyof typeof PeriodAlignment];
@@ -0,0 +1,41 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { PIServiceException as __BaseException } from "./PIServiceException";
3
+ /**
4
+ * <p>The request failed due to an unknown error.</p>
5
+ * @public
6
+ */
7
+ export declare class InternalServiceError extends __BaseException {
8
+ readonly name: "InternalServiceError";
9
+ readonly $fault: "server";
10
+ Message?: string | undefined;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>One of the arguments provided is invalid for this request.</p>
18
+ * @public
19
+ */
20
+ export declare class InvalidArgumentException extends __BaseException {
21
+ readonly name: "InvalidArgumentException";
22
+ readonly $fault: "client";
23
+ Message?: string | undefined;
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>);
28
+ }
29
+ /**
30
+ * <p>The user is not authorized to perform this request.</p>
31
+ * @public
32
+ */
33
+ export declare class NotAuthorizedException extends __BaseException {
34
+ readonly name: "NotAuthorizedException";
35
+ readonly $fault: "client";
36
+ Message?: string | undefined;
37
+ /**
38
+ * @internal
39
+ */
40
+ constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
41
+ }
@@ -1,16 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { PIServiceException as __BaseException } from "./PIServiceException";
3
- /**
4
- * @public
5
- * @enum
6
- */
7
- export declare const AcceptLanguage: {
8
- readonly EN_US: "EN_US";
9
- };
10
- /**
11
- * @public
12
- */
13
- export type AcceptLanguage = (typeof AcceptLanguage)[keyof typeof AcceptLanguage];
1
+ import { AcceptLanguage, AnalysisStatus, ContextType, DetailStatus, FeatureStatus, FineGrainedAction, PeriodAlignment, ServiceType, Severity, TextFormat } from "./enums";
14
2
  /**
15
3
  * <p>This data type helps to determine Performance Insights metric to render for the insight.</p>
16
4
  * @public
@@ -59,18 +47,6 @@ export interface Data {
59
47
  */
60
48
  PerformanceInsightsMetric?: PerformanceInsightsMetric | undefined;
61
49
  }
62
- /**
63
- * @public
64
- * @enum
65
- */
66
- export declare const ContextType: {
67
- readonly CAUSAL: "CAUSAL";
68
- readonly CONTEXTUAL: "CONTEXTUAL";
69
- };
70
- /**
71
- * @public
72
- */
73
- export type ContextType = (typeof ContextType)[keyof typeof ContextType];
74
50
  /**
75
51
  * <p>The list of recommendations for the insight.</p>
76
52
  * @public
@@ -89,44 +65,6 @@ export interface Recommendation {
89
65
  */
90
66
  RecommendationDescription?: string | undefined;
91
67
  }
92
- /**
93
- * @public
94
- * @enum
95
- */
96
- export declare const Severity: {
97
- readonly HIGH: "HIGH";
98
- readonly LOW: "LOW";
99
- readonly MEDIUM: "MEDIUM";
100
- };
101
- /**
102
- * @public
103
- */
104
- export type Severity = (typeof Severity)[keyof typeof Severity];
105
- /**
106
- * @public
107
- * @enum
108
- */
109
- export declare const ServiceType: {
110
- readonly DOCDB: "DOCDB";
111
- readonly RDS: "RDS";
112
- };
113
- /**
114
- * @public
115
- */
116
- export type ServiceType = (typeof ServiceType)[keyof typeof ServiceType];
117
- /**
118
- * @public
119
- * @enum
120
- */
121
- export declare const AnalysisStatus: {
122
- readonly FAILED: "FAILED";
123
- readonly RUNNING: "RUNNING";
124
- readonly SUCCEEDED: "SUCCEEDED";
125
- };
126
- /**
127
- * @public
128
- */
129
- export type AnalysisStatus = (typeof AnalysisStatus)[keyof typeof AnalysisStatus];
130
68
  /**
131
69
  * <p>Metadata assigned to an Amazon RDS resource consisting of a key-value pair.</p>
132
70
  * @public
@@ -185,19 +123,6 @@ export interface AnalysisReportSummary {
185
123
  */
186
124
  Tags?: Tag[] | undefined;
187
125
  }
188
- /**
189
- * @public
190
- * @enum
191
- */
192
- export declare const FineGrainedAction: {
193
- readonly DESCRIBE_DIMENSION_KEYS: "DescribeDimensionKeys";
194
- readonly GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails";
195
- readonly GET_RESOURCE_METRICS: "GetResourceMetrics";
196
- };
197
- /**
198
- * @public
199
- */
200
- export type FineGrainedAction = (typeof FineGrainedAction)[keyof typeof FineGrainedAction];
201
126
  /**
202
127
  * @public
203
128
  */
@@ -241,45 +166,6 @@ export interface CreatePerformanceAnalysisReportResponse {
241
166
  */
242
167
  AnalysisReportId?: string | undefined;
243
168
  }
244
- /**
245
- * <p>The request failed due to an unknown error.</p>
246
- * @public
247
- */
248
- export declare class InternalServiceError extends __BaseException {
249
- readonly name: "InternalServiceError";
250
- readonly $fault: "server";
251
- Message?: string | undefined;
252
- /**
253
- * @internal
254
- */
255
- constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>);
256
- }
257
- /**
258
- * <p>One of the arguments provided is invalid for this request.</p>
259
- * @public
260
- */
261
- export declare class InvalidArgumentException extends __BaseException {
262
- readonly name: "InvalidArgumentException";
263
- readonly $fault: "client";
264
- Message?: string | undefined;
265
- /**
266
- * @internal
267
- */
268
- constructor(opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>);
269
- }
270
- /**
271
- * <p>The user is not authorized to perform this request.</p>
272
- * @public
273
- */
274
- export declare class NotAuthorizedException extends __BaseException {
275
- readonly name: "NotAuthorizedException";
276
- readonly $fault: "client";
277
- Message?: string | undefined;
278
- /**
279
- * @internal
280
- */
281
- constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
282
- }
283
169
  /**
284
170
  * <p>A timestamp, and a single numerical value, which together represent a measurement at a particular point in time.</p>
285
171
  * @public
@@ -868,19 +754,6 @@ export interface DescribeDimensionKeysResponse {
868
754
  */
869
755
  NextToken?: string | undefined;
870
756
  }
871
- /**
872
- * @public
873
- * @enum
874
- */
875
- export declare const DetailStatus: {
876
- readonly AVAILABLE: "AVAILABLE";
877
- readonly PROCESSING: "PROCESSING";
878
- readonly UNAVAILABLE: "UNAVAILABLE";
879
- };
880
- /**
881
- * @public
882
- */
883
- export type DetailStatus = (typeof DetailStatus)[keyof typeof DetailStatus];
884
757
  /**
885
758
  * <p>The information about a dimension.</p>
886
759
  * @public
@@ -965,22 +838,6 @@ export interface DimensionKeyDetail {
965
838
  */
966
839
  Status?: DetailStatus | undefined;
967
840
  }
968
- /**
969
- * @public
970
- * @enum
971
- */
972
- export declare const FeatureStatus: {
973
- readonly DISABLED: "DISABLED";
974
- readonly DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT";
975
- readonly ENABLED: "ENABLED";
976
- readonly ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT";
977
- readonly UNKNOWN: "UNKNOWN";
978
- readonly UNSUPPORTED: "UNSUPPORTED";
979
- };
980
- /**
981
- * @public
982
- */
983
- export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus];
984
841
  /**
985
842
  * <p>The metadata for a feature. For example, the metadata might indicate that a feature is
986
843
  * turned on or off on a specific DB instance.</p>
@@ -1121,18 +978,6 @@ export interface GetDimensionKeyDetailsResponse {
1121
978
  */
1122
979
  Dimensions?: DimensionKeyDetail[] | undefined;
1123
980
  }
1124
- /**
1125
- * @public
1126
- * @enum
1127
- */
1128
- export declare const TextFormat: {
1129
- readonly MARKDOWN: "MARKDOWN";
1130
- readonly PLAIN_TEXT: "PLAIN_TEXT";
1131
- };
1132
- /**
1133
- * @public
1134
- */
1135
- export type TextFormat = (typeof TextFormat)[keyof typeof TextFormat];
1136
981
  /**
1137
982
  * @public
1138
983
  */
@@ -1276,18 +1121,6 @@ export interface MetricQuery {
1276
1121
  */
1277
1122
  Filter?: Record<string, string> | undefined;
1278
1123
  }
1279
- /**
1280
- * @public
1281
- * @enum
1282
- */
1283
- export declare const PeriodAlignment: {
1284
- readonly END_TIME: "END_TIME";
1285
- readonly START_TIME: "START_TIME";
1286
- };
1287
- /**
1288
- * @public
1289
- */
1290
- export type PeriodAlignment = (typeof PeriodAlignment)[keyof typeof PeriodAlignment];
1291
1124
  /**
1292
1125
  * @public
1293
1126
  */
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { PIExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { PIServiceException } from "./models/PIServiceException";
@@ -0,0 +1,61 @@
1
+ export declare const AcceptLanguage: {
2
+ readonly EN_US: "EN_US";
3
+ };
4
+ export type AcceptLanguage =
5
+ (typeof AcceptLanguage)[keyof typeof AcceptLanguage];
6
+ export declare const ContextType: {
7
+ readonly CAUSAL: "CAUSAL";
8
+ readonly CONTEXTUAL: "CONTEXTUAL";
9
+ };
10
+ export type ContextType = (typeof ContextType)[keyof typeof ContextType];
11
+ export declare const Severity: {
12
+ readonly HIGH: "HIGH";
13
+ readonly LOW: "LOW";
14
+ readonly MEDIUM: "MEDIUM";
15
+ };
16
+ export type Severity = (typeof Severity)[keyof typeof Severity];
17
+ export declare const ServiceType: {
18
+ readonly DOCDB: "DOCDB";
19
+ readonly RDS: "RDS";
20
+ };
21
+ export type ServiceType = (typeof ServiceType)[keyof typeof ServiceType];
22
+ export declare const AnalysisStatus: {
23
+ readonly FAILED: "FAILED";
24
+ readonly RUNNING: "RUNNING";
25
+ readonly SUCCEEDED: "SUCCEEDED";
26
+ };
27
+ export type AnalysisStatus =
28
+ (typeof AnalysisStatus)[keyof typeof AnalysisStatus];
29
+ export declare const FineGrainedAction: {
30
+ readonly DESCRIBE_DIMENSION_KEYS: "DescribeDimensionKeys";
31
+ readonly GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails";
32
+ readonly GET_RESOURCE_METRICS: "GetResourceMetrics";
33
+ };
34
+ export type FineGrainedAction =
35
+ (typeof FineGrainedAction)[keyof typeof FineGrainedAction];
36
+ export declare const DetailStatus: {
37
+ readonly AVAILABLE: "AVAILABLE";
38
+ readonly PROCESSING: "PROCESSING";
39
+ readonly UNAVAILABLE: "UNAVAILABLE";
40
+ };
41
+ export type DetailStatus = (typeof DetailStatus)[keyof typeof DetailStatus];
42
+ export declare const FeatureStatus: {
43
+ readonly DISABLED: "DISABLED";
44
+ readonly DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT";
45
+ readonly ENABLED: "ENABLED";
46
+ readonly ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT";
47
+ readonly UNKNOWN: "UNKNOWN";
48
+ readonly UNSUPPORTED: "UNSUPPORTED";
49
+ };
50
+ export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus];
51
+ export declare const TextFormat: {
52
+ readonly MARKDOWN: "MARKDOWN";
53
+ readonly PLAIN_TEXT: "PLAIN_TEXT";
54
+ };
55
+ export type TextFormat = (typeof TextFormat)[keyof typeof TextFormat];
56
+ export declare const PeriodAlignment: {
57
+ readonly END_TIME: "END_TIME";
58
+ readonly START_TIME: "START_TIME";
59
+ };
60
+ export type PeriodAlignment =
61
+ (typeof PeriodAlignment)[keyof typeof PeriodAlignment];
@@ -0,0 +1,26 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { PIServiceException as __BaseException } from "./PIServiceException";
3
+ export declare class InternalServiceError extends __BaseException {
4
+ readonly name: "InternalServiceError";
5
+ readonly $fault: "server";
6
+ Message?: string | undefined;
7
+ constructor(
8
+ opts: __ExceptionOptionType<InternalServiceError, __BaseException>
9
+ );
10
+ }
11
+ export declare class InvalidArgumentException extends __BaseException {
12
+ readonly name: "InvalidArgumentException";
13
+ readonly $fault: "client";
14
+ Message?: string | undefined;
15
+ constructor(
16
+ opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>
17
+ );
18
+ }
19
+ export declare class NotAuthorizedException extends __BaseException {
20
+ readonly name: "NotAuthorizedException";
21
+ readonly $fault: "client";
22
+ Message?: string | undefined;
23
+ constructor(
24
+ opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>
25
+ );
26
+ }
@@ -1,10 +1,15 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { PIServiceException as __BaseException } from "./PIServiceException";
3
- export declare const AcceptLanguage: {
4
- readonly EN_US: "EN_US";
5
- };
6
- export type AcceptLanguage =
7
- (typeof AcceptLanguage)[keyof typeof AcceptLanguage];
1
+ import {
2
+ AcceptLanguage,
3
+ AnalysisStatus,
4
+ ContextType,
5
+ DetailStatus,
6
+ FeatureStatus,
7
+ FineGrainedAction,
8
+ PeriodAlignment,
9
+ ServiceType,
10
+ Severity,
11
+ TextFormat,
12
+ } from "./enums";
8
13
  export interface PerformanceInsightsMetric {
9
14
  Metric?: string | undefined;
10
15
  DisplayName?: string | undefined;
@@ -15,33 +20,10 @@ export interface PerformanceInsightsMetric {
15
20
  export interface Data {
16
21
  PerformanceInsightsMetric?: PerformanceInsightsMetric | undefined;
17
22
  }
18
- export declare const ContextType: {
19
- readonly CAUSAL: "CAUSAL";
20
- readonly CONTEXTUAL: "CONTEXTUAL";
21
- };
22
- export type ContextType = (typeof ContextType)[keyof typeof ContextType];
23
23
  export interface Recommendation {
24
24
  RecommendationId?: string | undefined;
25
25
  RecommendationDescription?: string | undefined;
26
26
  }
27
- export declare const Severity: {
28
- readonly HIGH: "HIGH";
29
- readonly LOW: "LOW";
30
- readonly MEDIUM: "MEDIUM";
31
- };
32
- export type Severity = (typeof Severity)[keyof typeof Severity];
33
- export declare const ServiceType: {
34
- readonly DOCDB: "DOCDB";
35
- readonly RDS: "RDS";
36
- };
37
- export type ServiceType = (typeof ServiceType)[keyof typeof ServiceType];
38
- export declare const AnalysisStatus: {
39
- readonly FAILED: "FAILED";
40
- readonly RUNNING: "RUNNING";
41
- readonly SUCCEEDED: "SUCCEEDED";
42
- };
43
- export type AnalysisStatus =
44
- (typeof AnalysisStatus)[keyof typeof AnalysisStatus];
45
27
  export interface Tag {
46
28
  Key: string | undefined;
47
29
  Value: string | undefined;
@@ -54,13 +36,6 @@ export interface AnalysisReportSummary {
54
36
  Status?: AnalysisStatus | undefined;
55
37
  Tags?: Tag[] | undefined;
56
38
  }
57
- export declare const FineGrainedAction: {
58
- readonly DESCRIBE_DIMENSION_KEYS: "DescribeDimensionKeys";
59
- readonly GET_DIMENSION_KEY_DETAILS: "GetDimensionKeyDetails";
60
- readonly GET_RESOURCE_METRICS: "GetResourceMetrics";
61
- };
62
- export type FineGrainedAction =
63
- (typeof FineGrainedAction)[keyof typeof FineGrainedAction];
64
39
  export interface CreatePerformanceAnalysisReportRequest {
65
40
  ServiceType: ServiceType | undefined;
66
41
  Identifier: string | undefined;
@@ -71,30 +46,6 @@ export interface CreatePerformanceAnalysisReportRequest {
71
46
  export interface CreatePerformanceAnalysisReportResponse {
72
47
  AnalysisReportId?: string | undefined;
73
48
  }
74
- export declare class InternalServiceError extends __BaseException {
75
- readonly name: "InternalServiceError";
76
- readonly $fault: "server";
77
- Message?: string | undefined;
78
- constructor(
79
- opts: __ExceptionOptionType<InternalServiceError, __BaseException>
80
- );
81
- }
82
- export declare class InvalidArgumentException extends __BaseException {
83
- readonly name: "InvalidArgumentException";
84
- readonly $fault: "client";
85
- Message?: string | undefined;
86
- constructor(
87
- opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>
88
- );
89
- }
90
- export declare class NotAuthorizedException extends __BaseException {
91
- readonly name: "NotAuthorizedException";
92
- readonly $fault: "client";
93
- Message?: string | undefined;
94
- constructor(
95
- opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>
96
- );
97
- }
98
49
  export interface DataPoint {
99
50
  Timestamp: Date | undefined;
100
51
  Value: number | undefined;
@@ -140,12 +91,6 @@ export interface DescribeDimensionKeysResponse {
140
91
  Keys?: DimensionKeyDescription[] | undefined;
141
92
  NextToken?: string | undefined;
142
93
  }
143
- export declare const DetailStatus: {
144
- readonly AVAILABLE: "AVAILABLE";
145
- readonly PROCESSING: "PROCESSING";
146
- readonly UNAVAILABLE: "UNAVAILABLE";
147
- };
148
- export type DetailStatus = (typeof DetailStatus)[keyof typeof DetailStatus];
149
94
  export interface DimensionDetail {
150
95
  Identifier?: string | undefined;
151
96
  }
@@ -158,15 +103,6 @@ export interface DimensionKeyDetail {
158
103
  Dimension?: string | undefined;
159
104
  Status?: DetailStatus | undefined;
160
105
  }
161
- export declare const FeatureStatus: {
162
- readonly DISABLED: "DISABLED";
163
- readonly DISABLED_PENDING_REBOOT: "DISABLED_PENDING_REBOOT";
164
- readonly ENABLED: "ENABLED";
165
- readonly ENABLED_PENDING_REBOOT: "ENABLED_PENDING_REBOOT";
166
- readonly UNKNOWN: "UNKNOWN";
167
- readonly UNSUPPORTED: "UNSUPPORTED";
168
- };
169
- export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus];
170
106
  export interface FeatureMetadata {
171
107
  Status?: FeatureStatus | undefined;
172
108
  }
@@ -180,11 +116,6 @@ export interface GetDimensionKeyDetailsRequest {
180
116
  export interface GetDimensionKeyDetailsResponse {
181
117
  Dimensions?: DimensionKeyDetail[] | undefined;
182
118
  }
183
- export declare const TextFormat: {
184
- readonly MARKDOWN: "MARKDOWN";
185
- readonly PLAIN_TEXT: "PLAIN_TEXT";
186
- };
187
- export type TextFormat = (typeof TextFormat)[keyof typeof TextFormat];
188
119
  export interface GetPerformanceAnalysisReportRequest {
189
120
  ServiceType: ServiceType | undefined;
190
121
  Identifier: string | undefined;
@@ -205,12 +136,6 @@ export interface MetricQuery {
205
136
  GroupBy?: DimensionGroup | undefined;
206
137
  Filter?: Record<string, string> | undefined;
207
138
  }
208
- export declare const PeriodAlignment: {
209
- readonly END_TIME: "END_TIME";
210
- readonly START_TIME: "START_TIME";
211
- };
212
- export type PeriodAlignment =
213
- (typeof PeriodAlignment)[keyof typeof PeriodAlignment];
214
139
  export interface GetResourceMetricsRequest {
215
140
  ServiceType: ServiceType | undefined;
216
141
  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.934.0",
4
+ "version": "3.936.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-pi",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";