@aws-sdk/client-amp 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.
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { AmpServiceException } from "./models/AmpServiceException";
@@ -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 Amp service.
4
+ */
5
+ export declare class AmpServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,25 +1,22 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AmpServiceException as __BaseException } from "./AmpServiceException";
2
3
  /**
3
4
  * User does not have sufficient access to perform this action.
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
8
9
  /**
9
- * Description of the error.
10
+ * @internal
10
11
  */
11
- message: string | undefined;
12
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
12
13
  }
13
14
  /**
14
15
  * Updating or deleting a resource can cause an inconsistent state.
15
16
  */
16
- export interface ConflictException extends __SmithyException, $MetadataBearer {
17
- name: "ConflictException";
18
- $fault: "client";
19
- /**
20
- * Description of the error.
21
- */
22
- message: string | undefined;
17
+ export declare class ConflictException extends __BaseException {
18
+ readonly name: "ConflictException";
19
+ readonly $fault: "client";
23
20
  /**
24
21
  * Identifier of the resource affected.
25
22
  */
@@ -28,6 +25,10 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
28
25
  * Type of the resource affected.
29
26
  */
30
27
  resourceType: string | undefined;
28
+ /**
29
+ * @internal
30
+ */
31
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
31
32
  }
32
33
  /**
33
34
  * Represents the input of a CreateAlertManagerDefinition operation.
@@ -115,29 +116,25 @@ export declare namespace CreateAlertManagerDefinitionResponse {
115
116
  /**
116
117
  * Unexpected error during processing of request.
117
118
  */
118
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
119
- name: "InternalServerException";
120
- $fault: "server";
119
+ export declare class InternalServerException extends __BaseException {
120
+ readonly name: "InternalServerException";
121
+ readonly $fault: "server";
121
122
  $retryable: {};
122
- /**
123
- * Description of the error.
124
- */
125
- message: string | undefined;
126
123
  /**
127
124
  * Advice to clients on when the call can be safely retried.
128
125
  */
129
126
  retryAfterSeconds?: number;
127
+ /**
128
+ * @internal
129
+ */
130
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
130
131
  }
131
132
  /**
132
133
  * Request references a resource which does not exist.
133
134
  */
134
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
135
- name: "ResourceNotFoundException";
136
- $fault: "client";
137
- /**
138
- * Description of the error.
139
- */
140
- message: string | undefined;
135
+ export declare class ResourceNotFoundException extends __BaseException {
136
+ readonly name: "ResourceNotFoundException";
137
+ readonly $fault: "client";
141
138
  /**
142
139
  * Identifier of the resource affected.
143
140
  */
@@ -146,17 +143,17 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
146
143
  * Type of the resource affected.
147
144
  */
148
145
  resourceType: string | undefined;
146
+ /**
147
+ * @internal
148
+ */
149
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
149
150
  }
150
151
  /**
151
152
  * Request would cause a service quota to be exceeded.
152
153
  */
153
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
154
- name: "ServiceQuotaExceededException";
155
- $fault: "client";
156
- /**
157
- * Description of the error.
158
- */
159
- message: string | undefined;
154
+ export declare class ServiceQuotaExceededException extends __BaseException {
155
+ readonly name: "ServiceQuotaExceededException";
156
+ readonly $fault: "client";
160
157
  /**
161
158
  * Identifier of the resource affected.
162
159
  */
@@ -173,18 +170,18 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
173
170
  * Service Quotas requirement to identify originating quota.
174
171
  */
175
172
  quotaCode: string | undefined;
173
+ /**
174
+ * @internal
175
+ */
176
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
176
177
  }
177
178
  /**
178
179
  * Request was denied due to request throttling.
179
180
  */
180
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
181
- name: "ThrottlingException";
182
- $fault: "client";
181
+ export declare class ThrottlingException extends __BaseException {
182
+ readonly name: "ThrottlingException";
183
+ readonly $fault: "client";
183
184
  $retryable: {};
184
- /**
185
- * Description of the error.
186
- */
187
- message: string | undefined;
188
185
  /**
189
186
  * Service Quotas requirement to identify originating service.
190
187
  */
@@ -197,6 +194,10 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
197
194
  * Advice to clients on when the call can be safely retried.
198
195
  */
199
196
  retryAfterSeconds?: number;
197
+ /**
198
+ * @internal
199
+ */
200
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
200
201
  }
201
202
  /**
202
203
  * Stores information about a field passed inside a request that resulted in an exception.
@@ -226,13 +227,9 @@ export declare enum ValidationExceptionReason {
226
227
  /**
227
228
  * The input fails to satisfy the constraints specified by an AWS service.
228
229
  */
229
- export interface ValidationException extends __SmithyException, $MetadataBearer {
230
- name: "ValidationException";
231
- $fault: "client";
232
- /**
233
- * Description of the error.
234
- */
235
- message: string | undefined;
230
+ export declare class ValidationException extends __BaseException {
231
+ readonly name: "ValidationException";
232
+ readonly $fault: "client";
236
233
  /**
237
234
  * Reason the request failed validation.
238
235
  */
@@ -241,6 +238,10 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
241
238
  * The field that caused the error, if applicable. If more than one field caused the error, pick one and elaborate in the message.
242
239
  */
243
240
  fieldList?: ValidationExceptionField[];
241
+ /**
242
+ * @internal
243
+ */
244
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
244
245
  }
245
246
  /**
246
247
  * Represents the input of a DeleteAlertManagerDefinition operation.
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { AmpServiceException } from "./models/AmpServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class AmpServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,21 +1,22 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AmpServiceException as __BaseException } from "./AmpServiceException";
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
 
7
- message: string | undefined;
8
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
8
9
  }
9
10
 
10
- export interface ConflictException extends __SmithyException, $MetadataBearer {
11
- name: "ConflictException";
12
- $fault: "client";
13
-
14
- message: string | undefined;
11
+ export declare class ConflictException extends __BaseException {
12
+ readonly name: "ConflictException";
13
+ readonly $fault: "client";
15
14
 
16
15
  resourceId: string | undefined;
17
16
 
18
17
  resourceType: string | undefined;
18
+
19
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
19
20
  }
20
21
 
21
22
  export interface CreateAlertManagerDefinitionRequest {
@@ -65,32 +66,30 @@ export declare namespace CreateAlertManagerDefinitionResponse {
65
66
  const filterSensitiveLog: (obj: CreateAlertManagerDefinitionResponse) => any;
66
67
  }
67
68
 
68
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
69
- name: "InternalServerException";
70
- $fault: "server";
69
+ export declare class InternalServerException extends __BaseException {
70
+ readonly name: "InternalServerException";
71
+ readonly $fault: "server";
71
72
  $retryable: {};
72
73
 
73
- message: string | undefined;
74
-
75
74
  retryAfterSeconds?: number;
75
+
76
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
76
77
  }
77
78
 
78
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
79
- name: "ResourceNotFoundException";
80
- $fault: "client";
81
-
82
- message: string | undefined;
79
+ export declare class ResourceNotFoundException extends __BaseException {
80
+ readonly name: "ResourceNotFoundException";
81
+ readonly $fault: "client";
83
82
 
84
83
  resourceId: string | undefined;
85
84
 
86
85
  resourceType: string | undefined;
86
+
87
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
87
88
  }
88
89
 
89
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
90
- name: "ServiceQuotaExceededException";
91
- $fault: "client";
92
-
93
- message: string | undefined;
90
+ export declare class ServiceQuotaExceededException extends __BaseException {
91
+ readonly name: "ServiceQuotaExceededException";
92
+ readonly $fault: "client";
94
93
 
95
94
  resourceId: string | undefined;
96
95
 
@@ -99,20 +98,22 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
99
98
  serviceCode: string | undefined;
100
99
 
101
100
  quotaCode: string | undefined;
101
+
102
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
102
103
  }
103
104
 
104
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
105
- name: "ThrottlingException";
106
- $fault: "client";
105
+ export declare class ThrottlingException extends __BaseException {
106
+ readonly name: "ThrottlingException";
107
+ readonly $fault: "client";
107
108
  $retryable: {};
108
109
 
109
- message: string | undefined;
110
-
111
110
  serviceCode?: string;
112
111
 
113
112
  quotaCode?: string;
114
113
 
115
114
  retryAfterSeconds?: number;
115
+
116
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
116
117
  }
117
118
 
118
119
  export interface ValidationExceptionField {
@@ -132,15 +133,15 @@ export declare enum ValidationExceptionReason {
132
133
  UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
133
134
  }
134
135
 
135
- export interface ValidationException extends __SmithyException, $MetadataBearer {
136
- name: "ValidationException";
137
- $fault: "client";
138
-
139
- message: string | undefined;
136
+ export declare class ValidationException extends __BaseException {
137
+ readonly name: "ValidationException";
138
+ readonly $fault: "client";
140
139
 
141
140
  reason: ValidationExceptionReason | string | undefined;
142
141
 
143
142
  fieldList?: ValidationExceptionField[];
143
+
144
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
144
145
  }
145
146
 
146
147
  export interface DeleteAlertManagerDefinitionRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amp",
3
3
  "description": "AWS SDK for JavaScript Amp 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,37 +18,37 @@
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
- "@aws-sdk/util-waiter": "3.52.0",
51
+ "@aws-sdk/util-waiter": "3.53.0",
52
52
  "tslib": "^2.3.0",
53
53
  "uuid": "^8.3.2"
54
54
  },