@aws-sdk/client-sagemaker-a2i-runtime 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.
@@ -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 SageMakerA2IRuntime service.
4
+ */
5
+ export declare class SageMakerA2IRuntimeServiceException 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 { SageMakerA2IRuntimeServiceException as __BaseException } from "./SageMakerA2IRuntimeServiceException";
2
3
  export interface DeleteHumanLoopRequest {
3
4
  /**
4
5
  * <p>The name of the human loop that you want to delete.</p>
@@ -23,38 +24,54 @@ export declare namespace DeleteHumanLoopResponse {
23
24
  * <p>We couldn't process your request because of an issue with the server. Try again
24
25
  * later.</p>
25
26
  */
26
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
27
- name: "InternalServerException";
28
- $fault: "server";
27
+ export declare class InternalServerException extends __BaseException {
28
+ readonly name: "InternalServerException";
29
+ readonly $fault: "server";
29
30
  Message?: string;
31
+ /**
32
+ * @internal
33
+ */
34
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
30
35
  }
31
36
  /**
32
37
  * <p>We couldn't find the requested resource. Check that your resources exists and were created
33
38
  * in the same AWS Region as your request, and try your request again. </p>
34
39
  */
35
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
36
- name: "ResourceNotFoundException";
37
- $fault: "client";
40
+ export declare class ResourceNotFoundException extends __BaseException {
41
+ readonly name: "ResourceNotFoundException";
42
+ readonly $fault: "client";
38
43
  Message?: string;
44
+ /**
45
+ * @internal
46
+ */
47
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
39
48
  }
40
49
  /**
41
50
  * <p>You exceeded
42
51
  * the
43
52
  * maximum number of requests.</p>
44
53
  */
45
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
46
- name: "ThrottlingException";
47
- $fault: "client";
54
+ export declare class ThrottlingException extends __BaseException {
55
+ readonly name: "ThrottlingException";
56
+ readonly $fault: "client";
48
57
  Message?: string;
58
+ /**
59
+ * @internal
60
+ */
61
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
49
62
  }
50
63
  /**
51
64
  * <p>The
52
65
  * request isn't valid. Check the syntax and try again.</p>
53
66
  */
54
- export interface ValidationException extends __SmithyException, $MetadataBearer {
55
- name: "ValidationException";
56
- $fault: "client";
67
+ export declare class ValidationException extends __BaseException {
68
+ readonly name: "ValidationException";
69
+ readonly $fault: "client";
57
70
  Message?: string;
71
+ /**
72
+ * @internal
73
+ */
74
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
58
75
  }
59
76
  export interface DescribeHumanLoopRequest {
60
77
  /**
@@ -227,10 +244,14 @@ export declare namespace ListHumanLoopsResponse {
227
244
  * <p>Your request has the same name as another active human loop but has different input data. You cannot start two
228
245
  * human loops with the same name and different input data.</p>
229
246
  */
230
- export interface ConflictException extends __SmithyException, $MetadataBearer {
231
- name: "ConflictException";
232
- $fault: "client";
247
+ export declare class ConflictException extends __BaseException {
248
+ readonly name: "ConflictException";
249
+ readonly $fault: "client";
233
250
  Message?: string;
251
+ /**
252
+ * @internal
253
+ */
254
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
234
255
  }
235
256
  /**
236
257
  * <p>You exceeded your service quota. Service quotas, also referred to as limits, are the
@@ -240,10 +261,14 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
240
261
  * Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS Service Quotas</a> in the
241
262
  * <i>AWS General Reference</i>.</p>
242
263
  */
243
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
244
- name: "ServiceQuotaExceededException";
245
- $fault: "client";
264
+ export declare class ServiceQuotaExceededException extends __BaseException {
265
+ readonly name: "ServiceQuotaExceededException";
266
+ readonly $fault: "client";
246
267
  Message?: string;
268
+ /**
269
+ * @internal
270
+ */
271
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
247
272
  }
248
273
  export declare enum ContentClassifier {
249
274
  FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
@@ -3,3 +3,4 @@ export * from "./SageMakerA2IRuntimeClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { SageMakerA2IRuntimeServiceException } from "./models/SageMakerA2IRuntimeServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class SageMakerA2IRuntimeServiceException 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 { SageMakerA2IRuntimeServiceException as __BaseException } from "./SageMakerA2IRuntimeServiceException";
2
3
  export interface DeleteHumanLoopRequest {
3
4
 
4
5
  HumanLoopName: string | undefined;
@@ -14,28 +15,36 @@ export declare namespace DeleteHumanLoopResponse {
14
15
  const filterSensitiveLog: (obj: DeleteHumanLoopResponse) => any;
15
16
  }
16
17
 
17
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
18
- name: "InternalServerException";
19
- $fault: "server";
18
+ export declare class InternalServerException extends __BaseException {
19
+ readonly name: "InternalServerException";
20
+ readonly $fault: "server";
20
21
  Message?: string;
22
+
23
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
21
24
  }
22
25
 
23
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
24
- name: "ResourceNotFoundException";
25
- $fault: "client";
26
+ export declare class ResourceNotFoundException extends __BaseException {
27
+ readonly name: "ResourceNotFoundException";
28
+ readonly $fault: "client";
26
29
  Message?: string;
30
+
31
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
27
32
  }
28
33
 
29
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
30
- name: "ThrottlingException";
31
- $fault: "client";
34
+ export declare class ThrottlingException extends __BaseException {
35
+ readonly name: "ThrottlingException";
36
+ readonly $fault: "client";
32
37
  Message?: string;
38
+
39
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
33
40
  }
34
41
 
35
- export interface ValidationException extends __SmithyException, $MetadataBearer {
36
- name: "ValidationException";
37
- $fault: "client";
42
+ export declare class ValidationException extends __BaseException {
43
+ readonly name: "ValidationException";
44
+ readonly $fault: "client";
38
45
  Message?: string;
46
+
47
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
39
48
  }
40
49
  export interface DescribeHumanLoopRequest {
41
50
 
@@ -133,16 +142,20 @@ export declare namespace ListHumanLoopsResponse {
133
142
  const filterSensitiveLog: (obj: ListHumanLoopsResponse) => any;
134
143
  }
135
144
 
136
- export interface ConflictException extends __SmithyException, $MetadataBearer {
137
- name: "ConflictException";
138
- $fault: "client";
145
+ export declare class ConflictException extends __BaseException {
146
+ readonly name: "ConflictException";
147
+ readonly $fault: "client";
139
148
  Message?: string;
149
+
150
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
140
151
  }
141
152
 
142
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
143
- name: "ServiceQuotaExceededException";
144
- $fault: "client";
153
+ export declare class ServiceQuotaExceededException extends __BaseException {
154
+ readonly name: "ServiceQuotaExceededException";
155
+ readonly $fault: "client";
145
156
  Message?: string;
157
+
158
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
146
159
  }
147
160
  export declare enum ContentClassifier {
148
161
  FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-a2i-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker A2i Runtime 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"