@aws-sdk/client-sagemaker 3.257.0 → 3.259.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.
@@ -9575,13 +9575,19 @@ const deserializeAws_json1_1ListInferenceRecommendationsJobStepsCommandError = a
9575
9575
  body: await parseErrorBody(output.body, context),
9576
9576
  };
9577
9577
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
9578
- const parsedBody = parsedOutput.body;
9579
- (0, smithy_client_1.throwDefaultError)({
9580
- output,
9581
- parsedBody,
9582
- exceptionCtor: SageMakerServiceException_1.SageMakerServiceException,
9583
- errorCode,
9584
- });
9578
+ switch (errorCode) {
9579
+ case "ResourceNotFound":
9580
+ case "com.amazonaws.sagemaker#ResourceNotFound":
9581
+ throw await deserializeAws_json1_1ResourceNotFoundResponse(parsedOutput, context);
9582
+ default:
9583
+ const parsedBody = parsedOutput.body;
9584
+ (0, smithy_client_1.throwDefaultError)({
9585
+ output,
9586
+ parsedBody,
9587
+ exceptionCtor: SageMakerServiceException_1.SageMakerServiceException,
9588
+ errorCode,
9589
+ });
9590
+ }
9585
9591
  };
9586
9592
  const deserializeAws_json1_1ListLabelingJobsCommand = async (output, context) => {
9587
9593
  if (output.statusCode >= 300) {
@@ -18121,6 +18127,7 @@ const serializeAws_json1_1RecommendationJobCompiledOutputConfig = (input, contex
18121
18127
  };
18122
18128
  const serializeAws_json1_1RecommendationJobContainerConfig = (input, context) => {
18123
18129
  return {
18130
+ ...(input.DataInputConfig != null && { DataInputConfig: input.DataInputConfig }),
18124
18131
  ...(input.Domain != null && { Domain: input.Domain }),
18125
18132
  ...(input.Framework != null && { Framework: input.Framework }),
18126
18133
  ...(input.FrameworkVersion != null && { FrameworkVersion: input.FrameworkVersion }),
@@ -18144,6 +18151,7 @@ const serializeAws_json1_1RecommendationJobInputConfig = (input, context) => {
18144
18151
  }),
18145
18152
  ...(input.Endpoints != null && { Endpoints: serializeAws_json1_1Endpoints(input.Endpoints, context) }),
18146
18153
  ...(input.JobDurationInSeconds != null && { JobDurationInSeconds: input.JobDurationInSeconds }),
18154
+ ...(input.ModelName != null && { ModelName: input.ModelName }),
18147
18155
  ...(input.ModelPackageVersionArn != null && { ModelPackageVersionArn: input.ModelPackageVersionArn }),
18148
18156
  ...(input.ResourceLimit != null && {
18149
18157
  ResourceLimit: serializeAws_json1_1RecommendationJobResourceLimit(input.ResourceLimit, context),
@@ -24230,6 +24238,7 @@ const deserializeAws_json1_1InferenceRecommendation = (output, context) => {
24230
24238
  ModelConfiguration: output.ModelConfiguration != null
24231
24239
  ? deserializeAws_json1_1ModelConfiguration(output.ModelConfiguration, context)
24232
24240
  : undefined,
24241
+ RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
24233
24242
  };
24234
24243
  };
24235
24244
  const deserializeAws_json1_1InferenceRecommendations = (output, context) => {
@@ -25455,6 +25464,7 @@ const deserializeAws_json1_1ModelClientConfig = (output, context) => {
25455
25464
  };
25456
25465
  const deserializeAws_json1_1ModelConfiguration = (output, context) => {
25457
25466
  return {
25467
+ CompilationJobName: (0, smithy_client_1.expectString)(output.CompilationJobName),
25458
25468
  EnvironmentParameters: output.EnvironmentParameters != null
25459
25469
  ? deserializeAws_json1_1EnvironmentParameters(output.EnvironmentParameters, context)
25460
25470
  : undefined,
@@ -27325,6 +27335,7 @@ const deserializeAws_json1_1RealtimeInferenceInstanceTypes = (output, context) =
27325
27335
  };
27326
27336
  const deserializeAws_json1_1RecommendationJobContainerConfig = (output, context) => {
27327
27337
  return {
27338
+ DataInputConfig: (0, smithy_client_1.expectString)(output.DataInputConfig),
27328
27339
  Domain: (0, smithy_client_1.expectString)(output.Domain),
27329
27340
  Framework: (0, smithy_client_1.expectString)(output.Framework),
27330
27341
  FrameworkVersion: (0, smithy_client_1.expectString)(output.FrameworkVersion),
@@ -27360,6 +27371,7 @@ const deserializeAws_json1_1RecommendationJobInputConfig = (output, context) =>
27360
27371
  : undefined,
27361
27372
  Endpoints: output.Endpoints != null ? deserializeAws_json1_1Endpoints(output.Endpoints, context) : undefined,
27362
27373
  JobDurationInSeconds: (0, smithy_client_1.expectInt32)(output.JobDurationInSeconds),
27374
+ ModelName: (0, smithy_client_1.expectString)(output.ModelName),
27363
27375
  ModelPackageVersionArn: (0, smithy_client_1.expectString)(output.ModelPackageVersionArn),
27364
27376
  ResourceLimit: output.ResourceLimit != null
27365
27377
  ? deserializeAws_json1_1RecommendationJobResourceLimit(output.ResourceLimit, context)
@@ -27449,7 +27461,9 @@ const deserializeAws_json1_1RecommendationMetrics = (output, context) => {
27449
27461
  return {
27450
27462
  CostPerHour: (0, smithy_client_1.limitedParseFloat32)(output.CostPerHour),
27451
27463
  CostPerInference: (0, smithy_client_1.limitedParseFloat32)(output.CostPerInference),
27464
+ CpuUtilization: (0, smithy_client_1.limitedParseFloat32)(output.CpuUtilization),
27452
27465
  MaxInvocations: (0, smithy_client_1.expectInt32)(output.MaxInvocations),
27466
+ MemoryUtilization: (0, smithy_client_1.limitedParseFloat32)(output.MemoryUtilization),
27453
27467
  ModelLatency: (0, smithy_client_1.expectInt32)(output.ModelLatency),
27454
27468
  };
27455
27469
  };
@@ -10,7 +10,6 @@ const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
10
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
11
11
  const util_retry_1 = require("@aws-sdk/util-retry");
12
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
- const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
13
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
14
  const smithy_client_1 = require("@aws-sdk/smithy-client");
16
15
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
@@ -35,8 +34,6 @@ const getRuntimeConfig = (config) => {
35
34
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
36
35
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
37
36
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
38
- utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
39
- utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
40
37
  };
41
38
  };
42
39
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -13,7 +13,6 @@ const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
13
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
14
14
  const util_retry_1 = require("@aws-sdk/util-retry");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
- const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
16
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
17
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
18
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
@@ -44,8 +43,6 @@ const getRuntimeConfig = (config) => {
44
43
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
44
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
45
  useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
47
- utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
48
- utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
49
46
  };
50
47
  };
51
48
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const url_parser_1 = require("@aws-sdk/url-parser");
6
6
  const util_base64_1 = require("@aws-sdk/util-base64");
7
+ const util_utf8_1 = require("@aws-sdk/util-utf8");
7
8
  const endpointResolver_1 = require("./endpoint/endpointResolver");
8
9
  const getRuntimeConfig = (config) => ({
9
10
  apiVersion: "2017-07-24",
@@ -14,5 +15,7 @@ const getRuntimeConfig = (config) => ({
14
15
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
15
16
  serviceId: config?.serviceId ?? "SageMaker",
16
17
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
18
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
19
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
17
20
  });
18
21
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -9059,13 +9059,19 @@ const deserializeAws_json1_1ListInferenceRecommendationsJobStepsCommandError = a
9059
9059
  body: await parseErrorBody(output.body, context),
9060
9060
  };
9061
9061
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
9062
- const parsedBody = parsedOutput.body;
9063
- throwDefaultError({
9064
- output,
9065
- parsedBody,
9066
- exceptionCtor: __BaseException,
9067
- errorCode,
9068
- });
9062
+ switch (errorCode) {
9063
+ case "ResourceNotFound":
9064
+ case "com.amazonaws.sagemaker#ResourceNotFound":
9065
+ throw await deserializeAws_json1_1ResourceNotFoundResponse(parsedOutput, context);
9066
+ default:
9067
+ const parsedBody = parsedOutput.body;
9068
+ throwDefaultError({
9069
+ output,
9070
+ parsedBody,
9071
+ exceptionCtor: __BaseException,
9072
+ errorCode,
9073
+ });
9074
+ }
9069
9075
  };
9070
9076
  export const deserializeAws_json1_1ListLabelingJobsCommand = async (output, context) => {
9071
9077
  if (output.statusCode >= 300) {
@@ -17507,6 +17513,7 @@ const serializeAws_json1_1RecommendationJobCompiledOutputConfig = (input, contex
17507
17513
  };
17508
17514
  const serializeAws_json1_1RecommendationJobContainerConfig = (input, context) => {
17509
17515
  return {
17516
+ ...(input.DataInputConfig != null && { DataInputConfig: input.DataInputConfig }),
17510
17517
  ...(input.Domain != null && { Domain: input.Domain }),
17511
17518
  ...(input.Framework != null && { Framework: input.Framework }),
17512
17519
  ...(input.FrameworkVersion != null && { FrameworkVersion: input.FrameworkVersion }),
@@ -17530,6 +17537,7 @@ const serializeAws_json1_1RecommendationJobInputConfig = (input, context) => {
17530
17537
  }),
17531
17538
  ...(input.Endpoints != null && { Endpoints: serializeAws_json1_1Endpoints(input.Endpoints, context) }),
17532
17539
  ...(input.JobDurationInSeconds != null && { JobDurationInSeconds: input.JobDurationInSeconds }),
17540
+ ...(input.ModelName != null && { ModelName: input.ModelName }),
17533
17541
  ...(input.ModelPackageVersionArn != null && { ModelPackageVersionArn: input.ModelPackageVersionArn }),
17534
17542
  ...(input.ResourceLimit != null && {
17535
17543
  ResourceLimit: serializeAws_json1_1RecommendationJobResourceLimit(input.ResourceLimit, context),
@@ -23616,6 +23624,7 @@ const deserializeAws_json1_1InferenceRecommendation = (output, context) => {
23616
23624
  ModelConfiguration: output.ModelConfiguration != null
23617
23625
  ? deserializeAws_json1_1ModelConfiguration(output.ModelConfiguration, context)
23618
23626
  : undefined,
23627
+ RecommendationId: __expectString(output.RecommendationId),
23619
23628
  };
23620
23629
  };
23621
23630
  const deserializeAws_json1_1InferenceRecommendations = (output, context) => {
@@ -24841,6 +24850,7 @@ const deserializeAws_json1_1ModelClientConfig = (output, context) => {
24841
24850
  };
24842
24851
  const deserializeAws_json1_1ModelConfiguration = (output, context) => {
24843
24852
  return {
24853
+ CompilationJobName: __expectString(output.CompilationJobName),
24844
24854
  EnvironmentParameters: output.EnvironmentParameters != null
24845
24855
  ? deserializeAws_json1_1EnvironmentParameters(output.EnvironmentParameters, context)
24846
24856
  : undefined,
@@ -26711,6 +26721,7 @@ const deserializeAws_json1_1RealtimeInferenceInstanceTypes = (output, context) =
26711
26721
  };
26712
26722
  const deserializeAws_json1_1RecommendationJobContainerConfig = (output, context) => {
26713
26723
  return {
26724
+ DataInputConfig: __expectString(output.DataInputConfig),
26714
26725
  Domain: __expectString(output.Domain),
26715
26726
  Framework: __expectString(output.Framework),
26716
26727
  FrameworkVersion: __expectString(output.FrameworkVersion),
@@ -26746,6 +26757,7 @@ const deserializeAws_json1_1RecommendationJobInputConfig = (output, context) =>
26746
26757
  : undefined,
26747
26758
  Endpoints: output.Endpoints != null ? deserializeAws_json1_1Endpoints(output.Endpoints, context) : undefined,
26748
26759
  JobDurationInSeconds: __expectInt32(output.JobDurationInSeconds),
26760
+ ModelName: __expectString(output.ModelName),
26749
26761
  ModelPackageVersionArn: __expectString(output.ModelPackageVersionArn),
26750
26762
  ResourceLimit: output.ResourceLimit != null
26751
26763
  ? deserializeAws_json1_1RecommendationJobResourceLimit(output.ResourceLimit, context)
@@ -26835,7 +26847,9 @@ const deserializeAws_json1_1RecommendationMetrics = (output, context) => {
26835
26847
  return {
26836
26848
  CostPerHour: __limitedParseFloat32(output.CostPerHour),
26837
26849
  CostPerInference: __limitedParseFloat32(output.CostPerInference),
26850
+ CpuUtilization: __limitedParseFloat32(output.CpuUtilization),
26838
26851
  MaxInvocations: __expectInt32(output.MaxInvocations),
26852
+ MemoryUtilization: __limitedParseFloat32(output.MemoryUtilization),
26839
26853
  ModelLatency: __expectInt32(output.ModelLatency),
26840
26854
  };
26841
26855
  };
@@ -6,7 +6,6 @@ import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
8
8
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
- import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
9
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
10
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
12
11
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
@@ -31,7 +30,5 @@ export const getRuntimeConfig = (config) => {
31
30
  streamCollector: config?.streamCollector ?? streamCollector,
32
31
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
32
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
35
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
36
33
  };
37
34
  };
@@ -9,7 +9,6 @@ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/nod
9
9
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
10
10
  import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
11
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
12
- import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
13
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
14
13
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
15
14
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
@@ -40,7 +39,5 @@ export const getRuntimeConfig = (config) => {
40
39
  streamCollector: config?.streamCollector ?? streamCollector,
41
40
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
41
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
43
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
44
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
45
42
  };
46
43
  };
@@ -1,6 +1,7 @@
1
1
  import { NoOpLogger } from "@aws-sdk/smithy-client";
2
2
  import { parseUrl } from "@aws-sdk/url-parser";
3
3
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
4
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8";
4
5
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
5
6
  export const getRuntimeConfig = (config) => ({
6
7
  apiVersion: "2017-07-24",
@@ -11,4 +12,6 @@ export const getRuntimeConfig = (config) => ({
11
12
  logger: config?.logger ?? new NoOpLogger(),
12
13
  serviceId: config?.serviceId ?? "SageMaker",
13
14
  urlParser: config?.urlParser ?? parseUrl,
15
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
16
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
14
17
  });
@@ -2365,6 +2365,12 @@ export interface RecommendationJobContainerConfig {
2365
2365
  * <p>A list of the instance types that are used to generate inferences in real-time.</p>
2366
2366
  */
2367
2367
  SupportedInstanceTypes?: string[];
2368
+ /**
2369
+ * <p>Specifies the name and shape of the expected data inputs for your trained model with a JSON dictionary form.
2370
+ * This field is used for optimizing your model using SageMaker Neo. For more information, see
2371
+ * <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_InputConfig.html#sagemaker-Type-InputConfig-DataInputConfig">DataInputConfig</a>.</p>
2372
+ */
2373
+ DataInputConfig?: string;
2368
2374
  }
2369
2375
  /**
2370
2376
  * <p>Specifies the range of environment parameters</p>
@@ -2469,7 +2475,7 @@ export interface RecommendationJobInputConfig {
2469
2475
  /**
2470
2476
  * <p>The Amazon Resource Name (ARN) of a versioned model package.</p>
2471
2477
  */
2472
- ModelPackageVersionArn: string | undefined;
2478
+ ModelPackageVersionArn?: string;
2473
2479
  /**
2474
2480
  * <p>Specifies the maximum duration of the job, in seconds.></p>
2475
2481
  */
@@ -2539,6 +2545,10 @@ export interface RecommendationJobInputConfig {
2539
2545
  * <p>Inference Recommender provisions SageMaker endpoints with access to VPC in the inference recommendation job.</p>
2540
2546
  */
2541
2547
  VpcConfig?: RecommendationJobVpcConfig;
2548
+ /**
2549
+ * <p>The name of the created model.</p>
2550
+ */
2551
+ ModelName?: string;
2542
2552
  }
2543
2553
  export declare enum RecommendationJobType {
2544
2554
  ADVANCED = "Advanced",
@@ -2677,6 +2677,18 @@ export interface RecommendationMetrics {
2677
2677
  * <p>The expected model latency at maximum invocation per minute for the instance.</p>
2678
2678
  */
2679
2679
  ModelLatency: number | undefined;
2680
+ /**
2681
+ * <p>The expected CPU utilization at maximum invocations per minute for the instance.</p>
2682
+ * <p>
2683
+ * <code>NaN</code> indicates that the value is not available.</p>
2684
+ */
2685
+ CpuUtilization?: number;
2686
+ /**
2687
+ * <p>The expected memory utilization at maximum invocations per minute for the instance.</p>
2688
+ * <p>
2689
+ * <code>NaN</code> indicates that the value is not available.</p>
2690
+ */
2691
+ MemoryUtilization?: number;
2680
2692
  }
2681
2693
  /**
2682
2694
  * <p>A list of environment parameters suggested by the Amazon SageMaker Inference Recommender.</p>
@@ -2707,6 +2719,10 @@ export interface ModelConfiguration {
2707
2719
  * <p>Defines the environment parameters that includes key, value types, and values.</p>
2708
2720
  */
2709
2721
  EnvironmentParameters?: EnvironmentParameter[];
2722
+ /**
2723
+ * <p>The name of the compilation job used to create the recommended model artifacts.</p>
2724
+ */
2725
+ CompilationJobName?: string;
2710
2726
  }
2711
2727
  /**
2712
2728
  * <p>A list of recommendations made by Amazon SageMaker Inference Recommender.</p>
@@ -2724,6 +2740,10 @@ export interface InferenceRecommendation {
2724
2740
  * <p>Defines the model configuration.</p>
2725
2741
  */
2726
2742
  ModelConfiguration: ModelConfiguration | undefined;
2743
+ /**
2744
+ * <p>The recommendation ID which uniquely identifies each recommendation.</p>
2745
+ */
2746
+ RecommendationId?: string;
2727
2747
  }
2728
2748
  export declare enum RecommendationJobStatus {
2729
2749
  COMPLETED = "COMPLETED",
@@ -17,12 +17,12 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
17
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
18
18
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
- utf8Decoder: import("@aws-sdk/types").Decoder;
21
- utf8Encoder: import("@aws-sdk/types").Encoder;
22
20
  apiVersion: string;
23
21
  urlParser: import("@aws-sdk/types").UrlParser;
24
22
  base64Decoder: import("@aws-sdk/types").Decoder;
25
23
  base64Encoder: import("@aws-sdk/types").Encoder;
24
+ utf8Decoder: import("@aws-sdk/types").Decoder;
25
+ utf8Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -17,12 +17,12 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
17
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
18
18
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
- utf8Decoder: import("@aws-sdk/types").Decoder;
21
- utf8Encoder: import("@aws-sdk/types").Encoder;
22
20
  apiVersion: string;
23
21
  urlParser: import("@aws-sdk/types").UrlParser;
24
22
  base64Decoder: import("@aws-sdk/types").Decoder;
25
23
  base64Encoder: import("@aws-sdk/types").Encoder;
24
+ utf8Decoder: import("@aws-sdk/types").Decoder;
25
+ utf8Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -13,4 +13,6 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
13
13
  logger: import("@aws-sdk/types").Logger;
14
14
  serviceId: string;
15
15
  urlParser: import("@aws-sdk/types").UrlParser;
16
+ utf8Decoder: import("@aws-sdk/types").Decoder;
17
+ utf8Encoder: import("@aws-sdk/types").Encoder;
16
18
  };
@@ -459,6 +459,7 @@ export interface RecommendationJobContainerConfig {
459
459
  PayloadConfig?: RecommendationJobPayloadConfig;
460
460
  NearestModelName?: string;
461
461
  SupportedInstanceTypes?: string[];
462
+ DataInputConfig?: string;
462
463
  }
463
464
  export interface EnvironmentParameterRanges {
464
465
  CategoricalParameterRanges?: CategoricalParameter[];
@@ -492,7 +493,7 @@ export interface RecommendationJobVpcConfig {
492
493
  Subnets: string[] | undefined;
493
494
  }
494
495
  export interface RecommendationJobInputConfig {
495
- ModelPackageVersionArn: string | undefined;
496
+ ModelPackageVersionArn?: string;
496
497
  JobDurationInSeconds?: number;
497
498
  TrafficPattern?: TrafficPattern;
498
499
  ResourceLimit?: RecommendationJobResourceLimit;
@@ -501,6 +502,7 @@ export interface RecommendationJobInputConfig {
501
502
  ContainerConfig?: RecommendationJobContainerConfig;
502
503
  Endpoints?: EndpointInfo[];
503
504
  VpcConfig?: RecommendationJobVpcConfig;
505
+ ModelName?: string;
504
506
  }
505
507
  export declare enum RecommendationJobType {
506
508
  ADVANCED = "Advanced",
@@ -930,6 +930,8 @@ export interface RecommendationMetrics {
930
930
  CostPerInference: number | undefined;
931
931
  MaxInvocations: number | undefined;
932
932
  ModelLatency: number | undefined;
933
+ CpuUtilization?: number;
934
+ MemoryUtilization?: number;
933
935
  }
934
936
  export interface EnvironmentParameter {
935
937
  Key: string | undefined;
@@ -939,11 +941,13 @@ export interface EnvironmentParameter {
939
941
  export interface ModelConfiguration {
940
942
  InferenceSpecificationName?: string;
941
943
  EnvironmentParameters?: EnvironmentParameter[];
944
+ CompilationJobName?: string;
942
945
  }
943
946
  export interface InferenceRecommendation {
944
947
  Metrics: RecommendationMetrics | undefined;
945
948
  EndpointConfiguration: EndpointOutputConfiguration | undefined;
946
949
  ModelConfiguration: ModelConfiguration | undefined;
950
+ RecommendationId?: string;
947
951
  }
948
952
  export declare enum RecommendationJobStatus {
949
953
  COMPLETED = "COMPLETED",
@@ -27,12 +27,12 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
27
27
  streamCollector: import("@aws-sdk/types").StreamCollector;
28
28
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
29
29
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
30
- utf8Decoder: import("@aws-sdk/types").Decoder;
31
- utf8Encoder: import("@aws-sdk/types").Encoder;
32
30
  apiVersion: string;
33
31
  urlParser: import("@aws-sdk/types").UrlParser;
34
32
  base64Decoder: import("@aws-sdk/types").Decoder;
35
33
  base64Encoder: import("@aws-sdk/types").Encoder;
34
+ utf8Decoder: import("@aws-sdk/types").Decoder;
35
+ utf8Encoder: import("@aws-sdk/types").Encoder;
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
@@ -27,12 +27,12 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
27
27
  streamCollector: import("@aws-sdk/types").StreamCollector;
28
28
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
29
29
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
30
- utf8Decoder: import("@aws-sdk/types").Decoder;
31
- utf8Encoder: import("@aws-sdk/types").Encoder;
32
30
  apiVersion: string;
33
31
  urlParser: import("@aws-sdk/types").UrlParser;
34
32
  base64Decoder: import("@aws-sdk/types").Decoder;
35
33
  base64Encoder: import("@aws-sdk/types").Encoder;
34
+ utf8Decoder: import("@aws-sdk/types").Decoder;
35
+ utf8Encoder: import("@aws-sdk/types").Encoder;
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
@@ -13,4 +13,6 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
13
13
  logger: import("@aws-sdk/types").Logger;
14
14
  serviceId: string;
15
15
  urlParser: import("@aws-sdk/types").UrlParser;
16
+ utf8Decoder: import("@aws-sdk/types").Decoder;
17
+ utf8Encoder: import("@aws-sdk/types").Encoder;
16
18
  };
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.257.0",
4
+ "version": "3.259.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",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.257.0",
24
- "@aws-sdk/config-resolver": "3.257.0",
25
- "@aws-sdk/credential-provider-node": "3.257.0",
23
+ "@aws-sdk/client-sts": "3.259.0",
24
+ "@aws-sdk/config-resolver": "3.259.0",
25
+ "@aws-sdk/credential-provider-node": "3.259.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.257.0",
27
27
  "@aws-sdk/hash-node": "3.257.0",
28
28
  "@aws-sdk/invalid-dependency": "3.257.0",
@@ -31,12 +31,12 @@
31
31
  "@aws-sdk/middleware-host-header": "3.257.0",
32
32
  "@aws-sdk/middleware-logger": "3.257.0",
33
33
  "@aws-sdk/middleware-recursion-detection": "3.257.0",
34
- "@aws-sdk/middleware-retry": "3.257.0",
34
+ "@aws-sdk/middleware-retry": "3.259.0",
35
35
  "@aws-sdk/middleware-serde": "3.257.0",
36
36
  "@aws-sdk/middleware-signing": "3.257.0",
37
37
  "@aws-sdk/middleware-stack": "3.257.0",
38
38
  "@aws-sdk/middleware-user-agent": "3.257.0",
39
- "@aws-sdk/node-config-provider": "3.257.0",
39
+ "@aws-sdk/node-config-provider": "3.259.0",
40
40
  "@aws-sdk/node-http-handler": "3.257.0",
41
41
  "@aws-sdk/protocol-http": "3.257.0",
42
42
  "@aws-sdk/smithy-client": "3.257.0",
@@ -46,13 +46,12 @@
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.257.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.257.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.259.0",
50
50
  "@aws-sdk/util-endpoints": "3.257.0",
51
51
  "@aws-sdk/util-retry": "3.257.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.257.0",
53
- "@aws-sdk/util-user-agent-node": "3.257.0",
54
- "@aws-sdk/util-utf8-browser": "3.188.0",
55
- "@aws-sdk/util-utf8-node": "3.208.0",
53
+ "@aws-sdk/util-user-agent-node": "3.259.0",
54
+ "@aws-sdk/util-utf8": "3.254.0",
56
55
  "@aws-sdk/util-waiter": "3.257.0",
57
56
  "tslib": "^2.3.1",
58
57
  "uuid": "^8.3.2"