@aws-sdk/client-sagemaker 3.52.0 → 3.54.1

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 { AddAssociationCommandInput, AddAssociationCommandOutput } from "./commands/AddAssociationCommand";
10
10
  import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
11
11
  import { AssociateTrialComponentCommandInput, AssociateTrialComponentCommandOutput } from "./commands/AssociateTrialComponentCommand";
@@ -279,7 +279,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
279
279
  * A function that can calculate the length of a request body.
280
280
  * @internal
281
281
  */
282
- bodyLengthChecker?: (body: any) => number | undefined;
282
+ bodyLengthChecker?: __BodyLengthCalculator;
283
283
  /**
284
284
  * A function that converts a stream into an array of bytes.
285
285
  * @internal
@@ -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
  /**
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
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: SageMakerClientConfig) => {
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: SageMakerClientConfig) => {
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 { AddAssociationCommandInput, AddAssociationCommandOutput } from "./commands/AddAssociationCommand";
10
10
  import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
11
11
  import { AssociateTrialComponentCommandInput, AssociateTrialComponentCommandOutput } from "./commands/AssociateTrialComponentCommand";
@@ -267,7 +267,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
267
267
 
268
268
  urlParser?: __UrlParser;
269
269
 
270
- bodyLengthChecker?: (body: any) => number | undefined;
270
+ bodyLengthChecker?: __BodyLengthCalculator;
271
271
 
272
272
  streamCollector?: __StreamCollector;
273
273
 
@@ -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
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
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: SageMakerClientConfig) => {
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: SageMakerClientConfig) => {
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-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.54.1",
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.54.1",
22
+ "@aws-sdk/config-resolver": "3.54.1",
23
+ "@aws-sdk/credential-provider-node": "3.54.1",
24
+ "@aws-sdk/fetch-http-handler": "3.54.1",
25
+ "@aws-sdk/hash-node": "3.54.1",
26
+ "@aws-sdk/invalid-dependency": "3.54.1",
27
+ "@aws-sdk/middleware-content-length": "3.54.1",
28
+ "@aws-sdk/middleware-host-header": "3.54.1",
29
+ "@aws-sdk/middleware-logger": "3.54.1",
30
+ "@aws-sdk/middleware-retry": "3.54.1",
31
+ "@aws-sdk/middleware-serde": "3.54.1",
32
+ "@aws-sdk/middleware-signing": "3.54.1",
33
+ "@aws-sdk/middleware-stack": "3.54.1",
34
+ "@aws-sdk/middleware-user-agent": "3.54.1",
35
+ "@aws-sdk/node-config-provider": "3.54.1",
36
+ "@aws-sdk/node-http-handler": "3.54.1",
37
+ "@aws-sdk/protocol-http": "3.54.1",
38
+ "@aws-sdk/smithy-client": "3.54.1",
39
+ "@aws-sdk/types": "3.54.1",
40
+ "@aws-sdk/url-parser": "3.54.1",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
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",
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.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.1",
48
+ "@aws-sdk/util-user-agent-node": "3.54.1",
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.54.1",
52
52
  "tslib": "^2.3.0",
53
53
  "uuid": "^8.3.2"
54
54
  },