@aws-sdk/client-devops-guru 3.52.0 → 3.53.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.
@@ -3,3 +3,4 @@ export * from "./DevOpsGuruClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { DevOpsGuruServiceException } from "./models/DevOpsGuruServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from DevOpsGuru service.
4
+ */
5
+ export declare class DevOpsGuruServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,14 +1,19 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { DevOpsGuruServiceException as __BaseException } from "./DevOpsGuruServiceException";
2
3
  /**
3
4
  * <p> You don't have permissions to perform the requested operation. The user or role that
4
5
  * is making the request must have at least one IAM permissions policy attached that grants
5
6
  * the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the
6
7
  * <i>IAM User Guide</i>. </p>
7
8
  */
8
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
9
- name: "AccessDeniedException";
10
- $fault: "client";
9
+ export declare class AccessDeniedException extends __BaseException {
10
+ readonly name: "AccessDeniedException";
11
+ readonly $fault: "client";
11
12
  Message: string | undefined;
13
+ /**
14
+ * @internal
15
+ */
16
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
12
17
  }
13
18
  /**
14
19
  * <p> Information about the number of open reactive and proactive insights that can be used
@@ -131,9 +136,9 @@ export declare namespace AddNotificationChannelResponse {
131
136
  /**
132
137
  * <p> An exception that is thrown when a conflict occurs. </p>
133
138
  */
134
- export interface ConflictException extends __SmithyException, $MetadataBearer {
135
- name: "ConflictException";
136
- $fault: "client";
139
+ export declare class ConflictException extends __BaseException {
140
+ readonly name: "ConflictException";
141
+ readonly $fault: "client";
137
142
  Message: string | undefined;
138
143
  /**
139
144
  * <p> The ID of the Amazon Web Services resource in which a conflict occurred. </p>
@@ -143,26 +148,34 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
143
148
  * <p> The type of the Amazon Web Services resource in which a conflict occurred. </p>
144
149
  */
145
150
  ResourceType: string | undefined;
151
+ /**
152
+ * @internal
153
+ */
154
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
146
155
  }
147
156
  /**
148
157
  * <p>An internal failure in an Amazon service occurred.</p>
149
158
  */
150
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
151
- name: "InternalServerException";
152
- $fault: "server";
159
+ export declare class InternalServerException extends __BaseException {
160
+ readonly name: "InternalServerException";
161
+ readonly $fault: "server";
153
162
  Message: string | undefined;
154
163
  /**
155
164
  * <p> The number of seconds after which the action that caused the internal server
156
165
  * exception can be retried. </p>
157
166
  */
158
167
  RetryAfterSeconds?: number;
168
+ /**
169
+ * @internal
170
+ */
171
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
159
172
  }
160
173
  /**
161
174
  * <p>A requested resource could not be found</p>
162
175
  */
163
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
164
- name: "ResourceNotFoundException";
165
- $fault: "client";
176
+ export declare class ResourceNotFoundException extends __BaseException {
177
+ readonly name: "ResourceNotFoundException";
178
+ readonly $fault: "client";
166
179
  Message: string | undefined;
167
180
  /**
168
181
  * <p> The ID of the Amazon Web Services resource that could not be found. </p>
@@ -172,21 +185,29 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
172
185
  * <p> The type of the Amazon Web Services resource that could not be found. </p>
173
186
  */
174
187
  ResourceType: string | undefined;
188
+ /**
189
+ * @internal
190
+ */
191
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
175
192
  }
176
193
  /**
177
194
  * <p>The request contains a value that exceeds a maximum quota.</p>
178
195
  */
179
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
180
- name: "ServiceQuotaExceededException";
181
- $fault: "client";
196
+ export declare class ServiceQuotaExceededException extends __BaseException {
197
+ readonly name: "ServiceQuotaExceededException";
198
+ readonly $fault: "client";
182
199
  Message?: string;
200
+ /**
201
+ * @internal
202
+ */
203
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
183
204
  }
184
205
  /**
185
206
  * <p>The request was denied due to a request throttling.</p>
186
207
  */
187
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
188
- name: "ThrottlingException";
189
- $fault: "client";
208
+ export declare class ThrottlingException extends __BaseException {
209
+ readonly name: "ThrottlingException";
210
+ readonly $fault: "client";
190
211
  Message: string | undefined;
191
212
  /**
192
213
  * <p> The code of the quota that was exceeded, causing the throttling exception. </p>
@@ -201,6 +222,10 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
201
222
  * be retried. </p>
202
223
  */
203
224
  RetryAfterSeconds?: number;
225
+ /**
226
+ * @internal
227
+ */
228
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
204
229
  }
205
230
  /**
206
231
  * <p> The field associated with the validation exception. </p>
@@ -234,9 +259,9 @@ export declare enum ValidationExceptionReason {
234
259
  * <p> Contains information about data passed in to a field during a request that is not
235
260
  * valid. </p>
236
261
  */
237
- export interface ValidationException extends __SmithyException, $MetadataBearer {
238
- name: "ValidationException";
239
- $fault: "client";
262
+ export declare class ValidationException extends __BaseException {
263
+ readonly name: "ValidationException";
264
+ readonly $fault: "client";
240
265
  /**
241
266
  * <p> A message that describes the validation exception. </p>
242
267
  */
@@ -249,6 +274,10 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
249
274
  * <p> An array of fields that are associated with the validation exception. </p>
250
275
  */
251
276
  Fields?: ValidationExceptionField[];
277
+ /**
278
+ * @internal
279
+ */
280
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
252
281
  }
253
282
  /**
254
283
  * <p> A time range that specifies when DevOps Guru opens and then closes an anomaly. This
@@ -3,3 +3,4 @@ export * from "./DevOpsGuruClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { DevOpsGuruServiceException } from "./models/DevOpsGuruServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class DevOpsGuruServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,12 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { DevOpsGuruServiceException as __BaseException } from "./DevOpsGuruServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
6
7
  Message: string | undefined;
8
+
9
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
10
  }
8
11
 
9
12
  export interface AccountInsightHealth {
@@ -62,43 +65,51 @@ export declare namespace AddNotificationChannelResponse {
62
65
  const filterSensitiveLog: (obj: AddNotificationChannelResponse) => any;
63
66
  }
64
67
 
65
- export interface ConflictException extends __SmithyException, $MetadataBearer {
66
- name: "ConflictException";
67
- $fault: "client";
68
+ export declare class ConflictException extends __BaseException {
69
+ readonly name: "ConflictException";
70
+ readonly $fault: "client";
68
71
  Message: string | undefined;
69
72
 
70
73
  ResourceId: string | undefined;
71
74
 
72
75
  ResourceType: string | undefined;
76
+
77
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
73
78
  }
74
79
 
75
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
76
- name: "InternalServerException";
77
- $fault: "server";
80
+ export declare class InternalServerException extends __BaseException {
81
+ readonly name: "InternalServerException";
82
+ readonly $fault: "server";
78
83
  Message: string | undefined;
79
84
 
80
85
  RetryAfterSeconds?: number;
86
+
87
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
81
88
  }
82
89
 
83
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
84
- name: "ResourceNotFoundException";
85
- $fault: "client";
90
+ export declare class ResourceNotFoundException extends __BaseException {
91
+ readonly name: "ResourceNotFoundException";
92
+ readonly $fault: "client";
86
93
  Message: string | undefined;
87
94
 
88
95
  ResourceId: string | undefined;
89
96
 
90
97
  ResourceType: string | undefined;
98
+
99
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
91
100
  }
92
101
 
93
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
94
- name: "ServiceQuotaExceededException";
95
- $fault: "client";
102
+ export declare class ServiceQuotaExceededException extends __BaseException {
103
+ readonly name: "ServiceQuotaExceededException";
104
+ readonly $fault: "client";
96
105
  Message?: string;
106
+
107
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
97
108
  }
98
109
 
99
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
100
- name: "ThrottlingException";
101
- $fault: "client";
110
+ export declare class ThrottlingException extends __BaseException {
111
+ readonly name: "ThrottlingException";
112
+ readonly $fault: "client";
102
113
  Message: string | undefined;
103
114
 
104
115
  QuotaCode?: string;
@@ -106,6 +117,8 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
106
117
  ServiceCode?: string;
107
118
 
108
119
  RetryAfterSeconds?: number;
120
+
121
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
109
122
  }
110
123
 
111
124
  export interface ValidationExceptionField {
@@ -127,15 +140,17 @@ export declare enum ValidationExceptionReason {
127
140
  UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
128
141
  }
129
142
 
130
- export interface ValidationException extends __SmithyException, $MetadataBearer {
131
- name: "ValidationException";
132
- $fault: "client";
143
+ export declare class ValidationException extends __BaseException {
144
+ readonly name: "ValidationException";
145
+ readonly $fault: "client";
133
146
 
134
147
  Message: string | undefined;
135
148
 
136
149
  Reason?: ValidationExceptionReason | string;
137
150
 
138
151
  Fields?: ValidationExceptionField[];
152
+
153
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
139
154
  }
140
155
 
141
156
  export interface AnomalyReportedTimeRange {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-devops-guru",
3
3
  "description": "AWS SDK for JavaScript Devops Guru Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.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",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0",