@aws-sdk/client-sagemaker 3.1161.0 → 3.1163.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.
- package/dist-cjs/index.js +5 -4
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-es/waiters/waitForImageDeleted.js +1 -1
- package/dist-es/waiters/waitForImageVersionDeleted.js +1 -1
- package/dist-types/SageMaker.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/SageMaker.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForImageDeleted.d.ts +2 -1
- package/dist-types/ts3.4/waiters/waitForImageVersionDeleted.d.ts +2 -1
- package/dist-types/waiters/waitForImageDeleted.d.ts +2 -1
- package/dist-types/waiters/waitForImageVersionDeleted.d.ts +2 -1
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
3
|
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
4
4
|
const { Command: $Command } = require("@smithy/core/client");
|
|
@@ -69,7 +69,7 @@ const commonParams = {
|
|
|
69
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var version = "3.
|
|
72
|
+
var version = "3.1162.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -14015,6 +14015,7 @@ const getRuntimeConfig = (config) => {
|
|
|
14015
14015
|
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
14016
14016
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
14017
14017
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
14018
|
+
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 900_000),
|
|
14018
14019
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
14019
14020
|
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
14020
14021
|
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
@@ -15660,7 +15661,7 @@ const checkState$9 = async (client, input) => {
|
|
|
15660
15661
|
}
|
|
15661
15662
|
catch (exception) {
|
|
15662
15663
|
reason = exception;
|
|
15663
|
-
if (exception.name === "
|
|
15664
|
+
if (exception.name === "ResourceNotFound") {
|
|
15664
15665
|
return { state: WaiterState.SUCCESS, reason };
|
|
15665
15666
|
}
|
|
15666
15667
|
if (exception.name === "ValidationException") {
|
|
@@ -15780,7 +15781,7 @@ const checkState$6 = async (client, input) => {
|
|
|
15780
15781
|
}
|
|
15781
15782
|
catch (exception) {
|
|
15782
15783
|
reason = exception;
|
|
15783
|
-
if (exception.name === "
|
|
15784
|
+
if (exception.name === "ResourceNotFound") {
|
|
15784
15785
|
return { state: WaiterState.SUCCESS, reason };
|
|
15785
15786
|
}
|
|
15786
15787
|
if (exception.name === "ValidationException") {
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
2
|
+
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
3
3
|
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
@@ -26,6 +26,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
26
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
27
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
28
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 900_000),
|
|
29
30
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
31
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
32
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
@@ -17,7 +17,7 @@ const checkState = async (client, input) => {
|
|
|
17
17
|
}
|
|
18
18
|
catch (exception) {
|
|
19
19
|
reason = exception;
|
|
20
|
-
if (exception.name === "
|
|
20
|
+
if (exception.name === "ResourceNotFound") {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
22
22
|
}
|
|
23
23
|
if (exception.name === "ValidationException") {
|
|
@@ -17,7 +17,7 @@ const checkState = async (client, input) => {
|
|
|
17
17
|
}
|
|
18
18
|
catch (exception) {
|
|
19
19
|
reason = exception;
|
|
20
|
-
if (exception.name === "
|
|
20
|
+
if (exception.name === "ResourceNotFound") {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
22
22
|
}
|
|
23
23
|
if (exception.name === "ValidationException") {
|
|
@@ -409,6 +409,7 @@ import { type UpdateTrialComponentCommandInput, type UpdateTrialComponentCommand
|
|
|
409
409
|
import { type UpdateUserProfileCommandInput, type UpdateUserProfileCommandOutput } from "./commands/UpdateUserProfileCommand";
|
|
410
410
|
import { type UpdateWorkforceCommandInput, type UpdateWorkforceCommandOutput } from "./commands/UpdateWorkforceCommand";
|
|
411
411
|
import { type UpdateWorkteamCommandInput, type UpdateWorkteamCommandOutput } from "./commands/UpdateWorkteamCommand";
|
|
412
|
+
import type { ResourceNotFound } from "./models/errors";
|
|
412
413
|
import type { SageMakerServiceException } from "./models/SageMakerServiceException";
|
|
413
414
|
import { SageMakerClient } from "./SageMakerClient";
|
|
414
415
|
/**
|
|
@@ -3616,7 +3617,7 @@ export interface SageMaker {
|
|
|
3616
3617
|
* @param args - command input.
|
|
3617
3618
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
3618
3619
|
*/
|
|
3619
|
-
waitUntilImageDeleted(args: DescribeImageCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SageMaker>, "client">): Promise<WaiterResult<
|
|
3620
|
+
waitUntilImageDeleted(args: DescribeImageCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SageMaker>, "client">): Promise<WaiterResult<ResourceNotFound>>;
|
|
3620
3621
|
/**
|
|
3621
3622
|
* @see {@link DescribeImageCommand}
|
|
3622
3623
|
* @param args - command input.
|
|
@@ -3634,7 +3635,7 @@ export interface SageMaker {
|
|
|
3634
3635
|
* @param args - command input.
|
|
3635
3636
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
3636
3637
|
*/
|
|
3637
|
-
waitUntilImageVersionDeleted(args: DescribeImageVersionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SageMaker>, "client">): Promise<WaiterResult<
|
|
3638
|
+
waitUntilImageVersionDeleted(args: DescribeImageVersionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SageMaker>, "client">): Promise<WaiterResult<ResourceNotFound>>;
|
|
3638
3639
|
/**
|
|
3639
3640
|
* @see {@link DescribeNotebookInstanceCommand}
|
|
3640
3641
|
* @param args - command input.
|
|
@@ -44,6 +44,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
|
|
|
44
44
|
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
45
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
46
46
|
credentialDefaultProvider: ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider) | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
47
|
+
defaultSocketTimeout: number | undefined;
|
|
47
48
|
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
48
49
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
49
50
|
region: string | import("@smithy/types").Provider<string>;
|
|
@@ -1531,6 +1531,7 @@ import {
|
|
|
1531
1531
|
UpdateWorkteamCommandInput,
|
|
1532
1532
|
UpdateWorkteamCommandOutput,
|
|
1533
1533
|
} from "./commands/UpdateWorkteamCommand";
|
|
1534
|
+
import { ResourceNotFound } from "./models/errors";
|
|
1534
1535
|
import { SageMakerServiceException } from "./models/SageMakerServiceException";
|
|
1535
1536
|
import { SageMakerClient } from "./SageMakerClient";
|
|
1536
1537
|
export interface SageMakerRequestOptions extends __HttpHandlerOptions {
|
|
@@ -7586,7 +7587,7 @@ export interface SageMaker {
|
|
|
7586
7587
|
WaiterConfiguration<SageMaker>,
|
|
7587
7588
|
Exclude<keyof WaiterConfiguration<SageMaker>, "client">
|
|
7588
7589
|
>,
|
|
7589
|
-
): Promise<WaiterResult<
|
|
7590
|
+
): Promise<WaiterResult<ResourceNotFound>>;
|
|
7590
7591
|
waitUntilImageUpdated(
|
|
7591
7592
|
args: DescribeImageCommandInput,
|
|
7592
7593
|
waiterConfig:
|
|
@@ -7613,7 +7614,7 @@ export interface SageMaker {
|
|
|
7613
7614
|
WaiterConfiguration<SageMaker>,
|
|
7614
7615
|
Exclude<keyof WaiterConfiguration<SageMaker>, "client">
|
|
7615
7616
|
>,
|
|
7616
|
-
): Promise<WaiterResult<
|
|
7617
|
+
): Promise<WaiterResult<ResourceNotFound>>;
|
|
7617
7618
|
waitUntilNotebookInstanceDeleted(
|
|
7618
7619
|
args: DescribeNotebookInstanceCommandInput,
|
|
7619
7620
|
waiterConfig:
|
|
@@ -78,6 +78,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
|
|
|
78
78
|
init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
|
|
79
79
|
) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider)
|
|
80
80
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
81
|
+
defaultSocketTimeout: number | undefined;
|
|
81
82
|
defaultUserAgentProvider: (
|
|
82
83
|
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
83
84
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
DescribeImageCommandInput,
|
|
4
4
|
DescribeImageCommandOutput,
|
|
5
5
|
} from "../commands/DescribeImageCommand";
|
|
6
|
+
import { ResourceNotFound } from "../models/errors";
|
|
6
7
|
import { SageMakerServiceException } from "../models/SageMakerServiceException";
|
|
7
8
|
import { SageMakerClient } from "../SageMakerClient";
|
|
8
9
|
export declare const waitForImageDeleted: (
|
|
@@ -12,4 +13,4 @@ export declare const waitForImageDeleted: (
|
|
|
12
13
|
export declare const waitUntilImageDeleted: (
|
|
13
14
|
params: WaiterConfiguration<SageMakerClient>,
|
|
14
15
|
input: DescribeImageCommandInput,
|
|
15
|
-
) => Promise<WaiterResult<
|
|
16
|
+
) => Promise<WaiterResult<ResourceNotFound>>;
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
DescribeImageVersionCommandInput,
|
|
4
4
|
DescribeImageVersionCommandOutput,
|
|
5
5
|
} from "../commands/DescribeImageVersionCommand";
|
|
6
|
+
import { ResourceNotFound } from "../models/errors";
|
|
6
7
|
import { SageMakerServiceException } from "../models/SageMakerServiceException";
|
|
7
8
|
import { SageMakerClient } from "../SageMakerClient";
|
|
8
9
|
export declare const waitForImageVersionDeleted: (
|
|
@@ -12,4 +13,4 @@ export declare const waitForImageVersionDeleted: (
|
|
|
12
13
|
export declare const waitUntilImageVersionDeleted: (
|
|
13
14
|
params: WaiterConfiguration<SageMakerClient>,
|
|
14
15
|
input: DescribeImageVersionCommandInput,
|
|
15
|
-
) => Promise<WaiterResult<
|
|
16
|
+
) => Promise<WaiterResult<ResourceNotFound>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/core/client";
|
|
2
2
|
import { type DescribeImageCommandInput, type DescribeImageCommandOutput } from "../commands/DescribeImageCommand";
|
|
3
|
+
import type { ResourceNotFound } from "../models/errors";
|
|
3
4
|
import type { SageMakerServiceException } from "../models/SageMakerServiceException";
|
|
4
5
|
import type { SageMakerClient } from "../SageMakerClient";
|
|
5
6
|
/**
|
|
@@ -12,4 +13,4 @@ export declare const waitForImageDeleted: (params: WaiterConfiguration<SageMaker
|
|
|
12
13
|
* @param params - Waiter configuration options.
|
|
13
14
|
* @param input - The input to DescribeImageCommand for polling.
|
|
14
15
|
*/
|
|
15
|
-
export declare const waitUntilImageDeleted: (params: WaiterConfiguration<SageMakerClient>, input: DescribeImageCommandInput) => Promise<WaiterResult<
|
|
16
|
+
export declare const waitUntilImageDeleted: (params: WaiterConfiguration<SageMakerClient>, input: DescribeImageCommandInput) => Promise<WaiterResult<ResourceNotFound>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/core/client";
|
|
2
2
|
import { type DescribeImageVersionCommandInput, type DescribeImageVersionCommandOutput } from "../commands/DescribeImageVersionCommand";
|
|
3
|
+
import type { ResourceNotFound } from "../models/errors";
|
|
3
4
|
import type { SageMakerServiceException } from "../models/SageMakerServiceException";
|
|
4
5
|
import type { SageMakerClient } from "../SageMakerClient";
|
|
5
6
|
/**
|
|
@@ -12,4 +13,4 @@ export declare const waitForImageVersionDeleted: (params: WaiterConfiguration<Sa
|
|
|
12
13
|
* @param params - Waiter configuration options.
|
|
13
14
|
* @param input - The input to DescribeImageVersionCommand for polling.
|
|
14
15
|
*/
|
|
15
|
-
export declare const waitUntilImageVersionDeleted: (params: WaiterConfiguration<SageMakerClient>, input: DescribeImageVersionCommandInput) => Promise<WaiterResult<
|
|
16
|
+
export declare const waitUntilImageVersionDeleted: (params: WaiterConfiguration<SageMakerClient>, input: DescribeImageVersionCommandInput) => Promise<WaiterResult<ResourceNotFound>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1163.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Sagemaker Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sagemaker",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aws-sdk/core": "^3.
|
|
56
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
55
|
+
"@aws-sdk/core": "^3.980.0",
|
|
56
|
+
"@aws-sdk/credential-provider-node": "^3.972.93",
|
|
57
57
|
"@aws-sdk/types": "^3.975.0",
|
|
58
58
|
"@smithy/core": "^3.38.0",
|
|
59
59
|
"@smithy/fetch-http-handler": "^5.8.0",
|