@aws-sdk/client-amplify 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.
@@ -2,3 +2,4 @@ export * from "./Amplify";
2
2
  export * from "./AmplifyClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { AmplifyServiceException } from "./models/AmplifyServiceException";
@@ -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 Amplify service.
4
+ */
5
+ export declare class AmplifyServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,11 +1,15 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AmplifyServiceException as __BaseException } from "./AmplifyServiceException";
2
3
  /**
3
4
  * <p> A request contains unexpected data. </p>
4
5
  */
5
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
6
- name: "BadRequestException";
7
- $fault: "client";
8
- message?: string;
6
+ export declare class BadRequestException extends __BaseException {
7
+ readonly name: "BadRequestException";
8
+ readonly $fault: "client";
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
9
13
  }
10
14
  export declare enum Stage {
11
15
  BETA = "BETA",
@@ -372,34 +376,46 @@ export declare namespace CreateAppResult {
372
376
  /**
373
377
  * <p> An operation failed because a dependent service threw an exception. </p>
374
378
  */
375
- export interface DependentServiceFailureException extends __SmithyException, $MetadataBearer {
376
- name: "DependentServiceFailureException";
377
- $fault: "server";
378
- message?: string;
379
+ export declare class DependentServiceFailureException extends __BaseException {
380
+ readonly name: "DependentServiceFailureException";
381
+ readonly $fault: "server";
382
+ /**
383
+ * @internal
384
+ */
385
+ constructor(opts: __ExceptionOptionType<DependentServiceFailureException, __BaseException>);
379
386
  }
380
387
  /**
381
388
  * <p> The service failed to perform an operation due to an internal issue. </p>
382
389
  */
383
- export interface InternalFailureException extends __SmithyException, $MetadataBearer {
384
- name: "InternalFailureException";
385
- $fault: "server";
386
- message?: string;
390
+ export declare class InternalFailureException extends __BaseException {
391
+ readonly name: "InternalFailureException";
392
+ readonly $fault: "server";
393
+ /**
394
+ * @internal
395
+ */
396
+ constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
387
397
  }
388
398
  /**
389
399
  * <p> A resource could not be created because service quotas were exceeded. </p>
390
400
  */
391
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
392
- name: "LimitExceededException";
393
- $fault: "client";
394
- message?: string;
401
+ export declare class LimitExceededException extends __BaseException {
402
+ readonly name: "LimitExceededException";
403
+ readonly $fault: "client";
404
+ /**
405
+ * @internal
406
+ */
407
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
395
408
  }
396
409
  /**
397
410
  * <p> An operation failed due to a lack of access. </p>
398
411
  */
399
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
400
- name: "UnauthorizedException";
401
- $fault: "client";
402
- message?: string;
412
+ export declare class UnauthorizedException extends __BaseException {
413
+ readonly name: "UnauthorizedException";
414
+ readonly $fault: "client";
415
+ /**
416
+ * @internal
417
+ */
418
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
403
419
  }
404
420
  /**
405
421
  * <p> The request structure for the backend environment create request. </p>
@@ -484,10 +500,13 @@ export declare namespace CreateBackendEnvironmentResult {
484
500
  /**
485
501
  * <p> An entity was not found during an operation. </p>
486
502
  */
487
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
488
- name: "NotFoundException";
489
- $fault: "client";
490
- message?: string;
503
+ export declare class NotFoundException extends __BaseException {
504
+ readonly name: "NotFoundException";
505
+ readonly $fault: "client";
506
+ /**
507
+ * @internal
508
+ */
509
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
491
510
  }
492
511
  /**
493
512
  * <p> The request structure for the create branch request. </p>
@@ -1954,11 +1973,14 @@ export declare namespace ListTagsForResourceResponse {
1954
1973
  /**
1955
1974
  * <p> An operation failed due to a non-existent resource. </p>
1956
1975
  */
1957
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
1958
- name: "ResourceNotFoundException";
1959
- $fault: "client";
1976
+ export declare class ResourceNotFoundException extends __BaseException {
1977
+ readonly name: "ResourceNotFoundException";
1978
+ readonly $fault: "client";
1960
1979
  code: string | undefined;
1961
- message: string | undefined;
1980
+ /**
1981
+ * @internal
1982
+ */
1983
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
1962
1984
  }
1963
1985
  /**
1964
1986
  * <p> The request structure for the list webhooks request. </p>
@@ -2,3 +2,4 @@ export * from "./Amplify";
2
2
  export * from "./AmplifyClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { AmplifyServiceException } from "./models/AmplifyServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class AmplifyServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,11 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AmplifyServiceException as __BaseException } from "./AmplifyServiceException";
2
3
 
3
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
4
- name: "BadRequestException";
5
- $fault: "client";
6
- message?: string;
4
+ export declare class BadRequestException extends __BaseException {
5
+ readonly name: "BadRequestException";
6
+ readonly $fault: "client";
7
+
8
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
7
9
  }
8
10
  export declare enum Stage {
9
11
  BETA = "BETA",
@@ -189,28 +191,32 @@ export declare namespace CreateAppResult {
189
191
  const filterSensitiveLog: (obj: CreateAppResult) => any;
190
192
  }
191
193
 
192
- export interface DependentServiceFailureException extends __SmithyException, $MetadataBearer {
193
- name: "DependentServiceFailureException";
194
- $fault: "server";
195
- message?: string;
194
+ export declare class DependentServiceFailureException extends __BaseException {
195
+ readonly name: "DependentServiceFailureException";
196
+ readonly $fault: "server";
197
+
198
+ constructor(opts: __ExceptionOptionType<DependentServiceFailureException, __BaseException>);
196
199
  }
197
200
 
198
- export interface InternalFailureException extends __SmithyException, $MetadataBearer {
199
- name: "InternalFailureException";
200
- $fault: "server";
201
- message?: string;
201
+ export declare class InternalFailureException extends __BaseException {
202
+ readonly name: "InternalFailureException";
203
+ readonly $fault: "server";
204
+
205
+ constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
202
206
  }
203
207
 
204
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
205
- name: "LimitExceededException";
206
- $fault: "client";
207
- message?: string;
208
+ export declare class LimitExceededException extends __BaseException {
209
+ readonly name: "LimitExceededException";
210
+ readonly $fault: "client";
211
+
212
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
208
213
  }
209
214
 
210
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
211
- name: "UnauthorizedException";
212
- $fault: "client";
213
- message?: string;
215
+ export declare class UnauthorizedException extends __BaseException {
216
+ readonly name: "UnauthorizedException";
217
+ readonly $fault: "client";
218
+
219
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
214
220
  }
215
221
 
216
222
  export interface CreateBackendEnvironmentRequest {
@@ -256,10 +262,11 @@ export declare namespace CreateBackendEnvironmentResult {
256
262
  const filterSensitiveLog: (obj: CreateBackendEnvironmentResult) => any;
257
263
  }
258
264
 
259
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
260
- name: "NotFoundException";
261
- $fault: "client";
262
- message?: string;
265
+ export declare class NotFoundException extends __BaseException {
266
+ readonly name: "NotFoundException";
267
+ readonly $fault: "client";
268
+
269
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
263
270
  }
264
271
 
265
272
  export interface CreateBranchRequest {
@@ -1082,11 +1089,12 @@ export declare namespace ListTagsForResourceResponse {
1082
1089
  const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
1083
1090
  }
1084
1091
 
1085
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
1086
- name: "ResourceNotFoundException";
1087
- $fault: "client";
1092
+ export declare class ResourceNotFoundException extends __BaseException {
1093
+ readonly name: "ResourceNotFoundException";
1094
+ readonly $fault: "client";
1088
1095
  code: string | undefined;
1089
- message: string | undefined;
1096
+
1097
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
1090
1098
  }
1091
1099
 
1092
1100
  export interface ListWebhooksRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amplify",
3
3
  "description": "AWS SDK for JavaScript Amplify 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"