@aws-sdk/client-amplifybackend 3.51.0 → 3.54.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.
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CloneBackendCommandInput, CloneBackendCommandOutput } from "./commands/CloneBackendCommand";
10
10
  import { CreateBackendAPICommandInput, CreateBackendAPICommandOutput } from "./commands/CreateBackendAPICommand";
11
11
  import { CreateBackendAuthCommandInput, CreateBackendAuthCommandOutput } from "./commands/CreateBackendAuthCommand";
@@ -59,7 +59,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
59
59
  * A function that can calculate the length of a request body.
60
60
  * @internal
61
61
  */
62
- bodyLengthChecker?: (body: any) => number | undefined;
62
+ bodyLengthChecker?: __BodyLengthCalculator;
63
63
  /**
64
64
  * A function that converts a stream into an array of bytes.
65
65
  * @internal
@@ -2,3 +2,4 @@ export * from "./AmplifyBackend";
2
2
  export * from "./AmplifyBackendClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { AmplifyBackendServiceException } from "./models/AmplifyBackendServiceException";
@@ -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 AmplifyBackend service.
4
+ */
5
+ export declare class AmplifyBackendServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
2
3
  export declare enum AdditionalConstraintsElement {
3
4
  REQUIRE_DIGIT = "REQUIRE_DIGIT",
4
5
  REQUIRE_LOWERCASE = "REQUIRE_LOWERCASE",
@@ -8,13 +9,17 @@ export declare enum AdditionalConstraintsElement {
8
9
  /**
9
10
  * <p>An error returned if a request is not formed properly.</p>
10
11
  */
11
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
12
- name: "BadRequestException";
13
- $fault: "client";
12
+ export declare class BadRequestException extends __BaseException {
13
+ readonly name: "BadRequestException";
14
+ readonly $fault: "client";
14
15
  /**
15
16
  * <p>An error message to inform that the request failed.</p>
16
17
  */
17
18
  Message?: string;
19
+ /**
20
+ * @internal
21
+ */
22
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
18
23
  }
19
24
  /**
20
25
  * <p>The request body for CloneBackend.</p>
@@ -74,20 +79,24 @@ export declare namespace CloneBackendResponse {
74
79
  /**
75
80
  * <p>An error returned if there's a temporary issue with the service.</p>
76
81
  */
77
- export interface GatewayTimeoutException extends __SmithyException, $MetadataBearer {
78
- name: "GatewayTimeoutException";
79
- $fault: "server";
82
+ export declare class GatewayTimeoutException extends __BaseException {
83
+ readonly name: "GatewayTimeoutException";
84
+ readonly $fault: "server";
80
85
  /**
81
86
  * <p>An error message to inform that the request failed.</p>
82
87
  */
83
88
  Message?: string;
89
+ /**
90
+ * @internal
91
+ */
92
+ constructor(opts: __ExceptionOptionType<GatewayTimeoutException, __BaseException>);
84
93
  }
85
94
  /**
86
95
  * <p>An error returned when a specific resource type is not found.</p>
87
96
  */
88
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
89
- name: "NotFoundException";
90
- $fault: "client";
97
+ export declare class NotFoundException extends __BaseException {
98
+ readonly name: "NotFoundException";
99
+ readonly $fault: "client";
91
100
  /**
92
101
  * <p>An error message to inform that the request has failed.</p>
93
102
  */
@@ -96,13 +105,17 @@ export interface NotFoundException extends __SmithyException, $MetadataBearer {
96
105
  * <p>The type of resource that is not found.</p>
97
106
  */
98
107
  ResourceType?: string;
108
+ /**
109
+ * @internal
110
+ */
111
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
99
112
  }
100
113
  /**
101
114
  * <p>An error that is returned when a limit of a specific type has been exceeded.</p>
102
115
  */
103
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
104
- name: "TooManyRequestsException";
105
- $fault: "client";
116
+ export declare class TooManyRequestsException extends __BaseException {
117
+ readonly name: "TooManyRequestsException";
118
+ readonly $fault: "client";
106
119
  /**
107
120
  * <p>The type of limit that was exceeded.</p>
108
121
  */
@@ -111,6 +124,10 @@ export interface TooManyRequestsException extends __SmithyException, $MetadataBe
111
124
  * <p>An error message to inform that the request has failed.</p>
112
125
  */
113
126
  Message?: string;
127
+ /**
128
+ * @internal
129
+ */
130
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
114
131
  }
115
132
  /**
116
133
  * <p>Defines the resource configuration for the data model in your Amplify project.</p>
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AmplifyBackendClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AmplifyBackendClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AmplifyBackendClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CloneBackendCommandInput, CloneBackendCommandOutput } from "./commands/CloneBackendCommand";
10
10
  import { CreateBackendAPICommandInput, CreateBackendAPICommandOutput } from "./commands/CreateBackendAPICommand";
11
11
  import { CreateBackendAuthCommandInput, CreateBackendAuthCommandOutput } from "./commands/CreateBackendAuthCommand";
@@ -47,7 +47,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
47
47
 
48
48
  urlParser?: __UrlParser;
49
49
 
50
- bodyLengthChecker?: (body: any) => number | undefined;
50
+ bodyLengthChecker?: __BodyLengthCalculator;
51
51
 
52
52
  streamCollector?: __StreamCollector;
53
53
 
@@ -2,3 +2,4 @@ export * from "./AmplifyBackend";
2
2
  export * from "./AmplifyBackendClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { AmplifyBackendServiceException } from "./models/AmplifyBackendServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class AmplifyBackendServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
2
3
  export declare enum AdditionalConstraintsElement {
3
4
  REQUIRE_DIGIT = "REQUIRE_DIGIT",
4
5
  REQUIRE_LOWERCASE = "REQUIRE_LOWERCASE",
@@ -6,11 +7,13 @@ export declare enum AdditionalConstraintsElement {
6
7
  REQUIRE_UPPERCASE = "REQUIRE_UPPERCASE"
7
8
  }
8
9
 
9
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
10
- name: "BadRequestException";
11
- $fault: "client";
10
+ export declare class BadRequestException extends __BaseException {
11
+ readonly name: "BadRequestException";
12
+ readonly $fault: "client";
12
13
 
13
14
  Message?: string;
15
+
16
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
14
17
  }
15
18
 
16
19
  export interface CloneBackendRequest {
@@ -44,29 +47,35 @@ export declare namespace CloneBackendResponse {
44
47
  const filterSensitiveLog: (obj: CloneBackendResponse) => any;
45
48
  }
46
49
 
47
- export interface GatewayTimeoutException extends __SmithyException, $MetadataBearer {
48
- name: "GatewayTimeoutException";
49
- $fault: "server";
50
+ export declare class GatewayTimeoutException extends __BaseException {
51
+ readonly name: "GatewayTimeoutException";
52
+ readonly $fault: "server";
50
53
 
51
54
  Message?: string;
55
+
56
+ constructor(opts: __ExceptionOptionType<GatewayTimeoutException, __BaseException>);
52
57
  }
53
58
 
54
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
55
- name: "NotFoundException";
56
- $fault: "client";
59
+ export declare class NotFoundException extends __BaseException {
60
+ readonly name: "NotFoundException";
61
+ readonly $fault: "client";
57
62
 
58
63
  Message?: string;
59
64
 
60
65
  ResourceType?: string;
66
+
67
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
61
68
  }
62
69
 
63
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
64
- name: "TooManyRequestsException";
65
- $fault: "client";
70
+ export declare class TooManyRequestsException extends __BaseException {
71
+ readonly name: "TooManyRequestsException";
72
+ readonly $fault: "client";
66
73
 
67
74
  LimitType?: string;
68
75
 
69
76
  Message?: string;
77
+
78
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
70
79
  }
71
80
 
72
81
  export interface ResourceConfig {
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AmplifyBackendClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AmplifyBackendClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AmplifyBackendClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amplifybackend",
3
3
  "description": "AWS SDK for JavaScript Amplifybackend Client for Node.js, Browser and React Native",
4
- "version": "3.51.0",
4
+ "version": "3.54.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",
@@ -9,7 +9,7 @@
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-*"
12
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
13
13
  },
14
14
  "main": "./dist-cjs/index.js",
15
15
  "types": "./dist-types/index.d.ts",
@@ -18,40 +18,40 @@
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.51.0",
22
- "@aws-sdk/config-resolver": "3.51.0",
23
- "@aws-sdk/credential-provider-node": "3.51.0",
24
- "@aws-sdk/fetch-http-handler": "3.50.0",
25
- "@aws-sdk/hash-node": "3.50.0",
26
- "@aws-sdk/invalid-dependency": "3.50.0",
27
- "@aws-sdk/middleware-content-length": "3.50.0",
28
- "@aws-sdk/middleware-host-header": "3.50.0",
29
- "@aws-sdk/middleware-logger": "3.50.0",
30
- "@aws-sdk/middleware-retry": "3.51.0",
31
- "@aws-sdk/middleware-serde": "3.50.0",
32
- "@aws-sdk/middleware-signing": "3.50.0",
33
- "@aws-sdk/middleware-stack": "3.50.0",
34
- "@aws-sdk/middleware-user-agent": "3.50.0",
35
- "@aws-sdk/node-config-provider": "3.51.0",
36
- "@aws-sdk/node-http-handler": "3.50.0",
37
- "@aws-sdk/protocol-http": "3.50.0",
38
- "@aws-sdk/smithy-client": "3.50.0",
39
- "@aws-sdk/types": "3.50.0",
40
- "@aws-sdk/url-parser": "3.50.0",
41
- "@aws-sdk/util-base64-browser": "3.49.0",
42
- "@aws-sdk/util-base64-node": "3.49.0",
43
- "@aws-sdk/util-body-length-browser": "3.49.0",
44
- "@aws-sdk/util-body-length-node": "3.49.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.51.0",
47
- "@aws-sdk/util-user-agent-browser": "3.50.0",
48
- "@aws-sdk/util-user-agent-node": "3.51.0",
49
- "@aws-sdk/util-utf8-browser": "3.49.0",
50
- "@aws-sdk/util-utf8-node": "3.49.0",
21
+ "@aws-sdk/client-sts": "3.54.0",
22
+ "@aws-sdk/config-resolver": "3.54.0",
23
+ "@aws-sdk/credential-provider-node": "3.54.0",
24
+ "@aws-sdk/fetch-http-handler": "3.54.0",
25
+ "@aws-sdk/hash-node": "3.54.0",
26
+ "@aws-sdk/invalid-dependency": "3.54.0",
27
+ "@aws-sdk/middleware-content-length": "3.54.0",
28
+ "@aws-sdk/middleware-host-header": "3.54.0",
29
+ "@aws-sdk/middleware-logger": "3.54.0",
30
+ "@aws-sdk/middleware-retry": "3.54.0",
31
+ "@aws-sdk/middleware-serde": "3.54.0",
32
+ "@aws-sdk/middleware-signing": "3.54.0",
33
+ "@aws-sdk/middleware-stack": "3.54.0",
34
+ "@aws-sdk/middleware-user-agent": "3.54.0",
35
+ "@aws-sdk/node-config-provider": "3.54.0",
36
+ "@aws-sdk/node-http-handler": "3.54.0",
37
+ "@aws-sdk/protocol-http": "3.54.0",
38
+ "@aws-sdk/smithy-client": "3.54.0",
39
+ "@aws-sdk/types": "3.54.0",
40
+ "@aws-sdk/url-parser": "3.54.0",
41
+ "@aws-sdk/util-base64-browser": "3.52.0",
42
+ "@aws-sdk/util-base64-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.0",
48
+ "@aws-sdk/util-user-agent-node": "3.54.0",
49
+ "@aws-sdk/util-utf8-browser": "3.52.0",
50
+ "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.49.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.52.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",