@aws-sdk/client-sagemaker 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 { SageMakerServiceException } from "./models/SageMakerServiceException";
@@ -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 SageMaker service.
4
+ */
5
+ export declare class SageMakerServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,5 +1,5 @@
1
- import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
+ import { SageMakerServiceException as __BaseException } from "./SageMakerServiceException";
3
3
  /**
4
4
  * <p>A structure describing the source of an action.</p>
5
5
  */
@@ -138,18 +138,26 @@ export declare namespace AddAssociationResponse {
138
138
  * <p> You have exceeded an Amazon SageMaker resource limit. For example, you might have too many
139
139
  * training jobs created. </p>
140
140
  */
141
- export interface ResourceLimitExceeded extends __SmithyException, $MetadataBearer {
142
- name: "ResourceLimitExceeded";
143
- $fault: "client";
141
+ export declare class ResourceLimitExceeded extends __BaseException {
142
+ readonly name: "ResourceLimitExceeded";
143
+ readonly $fault: "client";
144
144
  Message?: string;
145
+ /**
146
+ * @internal
147
+ */
148
+ constructor(opts: __ExceptionOptionType<ResourceLimitExceeded, __BaseException>);
145
149
  }
146
150
  /**
147
151
  * <p>Resource being access is not found.</p>
148
152
  */
149
- export interface ResourceNotFound extends __SmithyException, $MetadataBearer {
150
- name: "ResourceNotFound";
151
- $fault: "client";
153
+ export declare class ResourceNotFound extends __BaseException {
154
+ readonly name: "ResourceNotFound";
155
+ readonly $fault: "client";
152
156
  Message?: string;
157
+ /**
158
+ * @internal
159
+ */
160
+ constructor(opts: __ExceptionOptionType<ResourceNotFound, __BaseException>);
153
161
  }
154
162
  /**
155
163
  * <p>Input object for the model.</p>
@@ -5304,10 +5312,14 @@ export declare namespace ConditionStepMetadata {
5304
5312
  * <p>There was a conflict when you attempted to modify a SageMaker entity such as an
5305
5313
  * <code>Experiment</code> or <code>Artifact</code>.</p>
5306
5314
  */
5307
- export interface ConflictException extends __SmithyException, $MetadataBearer {
5308
- name: "ConflictException";
5309
- $fault: "client";
5315
+ export declare class ConflictException extends __BaseException {
5316
+ readonly name: "ConflictException";
5317
+ readonly $fault: "client";
5310
5318
  Message?: string;
5319
+ /**
5320
+ * @internal
5321
+ */
5322
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
5311
5323
  }
5312
5324
  export declare enum RepositoryAccessMode {
5313
5325
  PLATFORM = "Platform",
@@ -6069,10 +6081,14 @@ export declare namespace CreateAppResponse {
6069
6081
  /**
6070
6082
  * <p>Resource being accessed is in use.</p>
6071
6083
  */
6072
- export interface ResourceInUse extends __SmithyException, $MetadataBearer {
6073
- name: "ResourceInUse";
6074
- $fault: "client";
6084
+ export declare class ResourceInUse extends __BaseException {
6085
+ readonly name: "ResourceInUse";
6086
+ readonly $fault: "client";
6075
6087
  Message?: string;
6088
+ /**
6089
+ * @internal
6090
+ */
6091
+ constructor(opts: __ExceptionOptionType<ResourceInUse, __BaseException>);
6076
6092
  }
6077
6093
  export interface CreateAppImageConfigRequest {
6078
6094
  /**
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { SageMakerServiceException } from "./models/SageMakerServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class SageMakerServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,5 +1,5 @@
1
- import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
+ import { SageMakerServiceException as __BaseException } from "./SageMakerServiceException";
3
3
 
4
4
  export interface ActionSource {
5
5
 
@@ -71,16 +71,20 @@ export declare namespace AddAssociationResponse {
71
71
  const filterSensitiveLog: (obj: AddAssociationResponse) => any;
72
72
  }
73
73
 
74
- export interface ResourceLimitExceeded extends __SmithyException, $MetadataBearer {
75
- name: "ResourceLimitExceeded";
76
- $fault: "client";
74
+ export declare class ResourceLimitExceeded extends __BaseException {
75
+ readonly name: "ResourceLimitExceeded";
76
+ readonly $fault: "client";
77
77
  Message?: string;
78
+
79
+ constructor(opts: __ExceptionOptionType<ResourceLimitExceeded, __BaseException>);
78
80
  }
79
81
 
80
- export interface ResourceNotFound extends __SmithyException, $MetadataBearer {
81
- name: "ResourceNotFound";
82
- $fault: "client";
82
+ export declare class ResourceNotFound extends __BaseException {
83
+ readonly name: "ResourceNotFound";
84
+ readonly $fault: "client";
83
85
  Message?: string;
86
+
87
+ constructor(opts: __ExceptionOptionType<ResourceNotFound, __BaseException>);
84
88
  }
85
89
 
86
90
  export interface ModelInput {
@@ -1901,10 +1905,12 @@ export declare namespace ConditionStepMetadata {
1901
1905
  const filterSensitiveLog: (obj: ConditionStepMetadata) => any;
1902
1906
  }
1903
1907
 
1904
- export interface ConflictException extends __SmithyException, $MetadataBearer {
1905
- name: "ConflictException";
1906
- $fault: "client";
1908
+ export declare class ConflictException extends __BaseException {
1909
+ readonly name: "ConflictException";
1910
+ readonly $fault: "client";
1907
1911
  Message?: string;
1912
+
1913
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
1908
1914
  }
1909
1915
  export declare enum RepositoryAccessMode {
1910
1916
  PLATFORM = "Platform",
@@ -2248,10 +2254,12 @@ export declare namespace CreateAppResponse {
2248
2254
  const filterSensitiveLog: (obj: CreateAppResponse) => any;
2249
2255
  }
2250
2256
 
2251
- export interface ResourceInUse extends __SmithyException, $MetadataBearer {
2252
- name: "ResourceInUse";
2253
- $fault: "client";
2257
+ export declare class ResourceInUse extends __BaseException {
2258
+ readonly name: "ResourceInUse";
2259
+ readonly $fault: "client";
2254
2260
  Message?: string;
2261
+
2262
+ constructor(opts: __ExceptionOptionType<ResourceInUse, __BaseException>);
2255
2263
  }
2256
2264
  export interface CreateAppImageConfigRequest {
2257
2265
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker",
3
3
  "description": "AWS SDK for JavaScript Sagemaker 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
  },