@aws-sdk/client-sagemaker 3.197.0 → 3.199.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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.199.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.198.0...v3.199.0) (2022-10-28)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-sagemaker
9
+
10
+
11
+
12
+
13
+
14
+ # [3.198.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.197.0...v3.198.0) (2022-10-27)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-sagemaker:** This change allows customers to provide a custom entrypoint script for the docker container to be run while executing training jobs, and provide custom arguments to the entrypoint script. ([4978352](https://github.com/aws/aws-sdk-js-v3/commit/49783528794a2aac328033d0aea2464e6dba6fc8))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.197.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.196.0...v3.197.0) (2022-10-26)
7
26
 
8
27
 
@@ -11211,6 +11211,12 @@ const serializeAws_json1_1AlarmList = (input, context) => {
11211
11211
  const serializeAws_json1_1AlgorithmSpecification = (input, context) => {
11212
11212
  return {
11213
11213
  ...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
11214
+ ...(input.ContainerArguments != null && {
11215
+ ContainerArguments: serializeAws_json1_1TrainingContainerArguments(input.ContainerArguments, context),
11216
+ }),
11217
+ ...(input.ContainerEntrypoint != null && {
11218
+ ContainerEntrypoint: serializeAws_json1_1TrainingContainerEntrypoint(input.ContainerEntrypoint, context),
11219
+ }),
11214
11220
  ...(input.EnableSageMakerMetricsTimeSeries != null && {
11215
11221
  EnableSageMakerMetricsTimeSeries: input.EnableSageMakerMetricsTimeSeries,
11216
11222
  }),
@@ -16617,6 +16623,20 @@ const serializeAws_json1_1TrafficRoutingConfig = (input, context) => {
16617
16623
  ...(input.WaitIntervalInSeconds != null && { WaitIntervalInSeconds: input.WaitIntervalInSeconds }),
16618
16624
  };
16619
16625
  };
16626
+ const serializeAws_json1_1TrainingContainerArguments = (input, context) => {
16627
+ return input
16628
+ .filter((e) => e != null)
16629
+ .map((entry) => {
16630
+ return entry;
16631
+ });
16632
+ };
16633
+ const serializeAws_json1_1TrainingContainerEntrypoint = (input, context) => {
16634
+ return input
16635
+ .filter((e) => e != null)
16636
+ .map((entry) => {
16637
+ return entry;
16638
+ });
16639
+ };
16620
16640
  const serializeAws_json1_1TrainingEnvironmentMap = (input, context) => {
16621
16641
  return Object.entries(input).reduce((acc, [key, value]) => {
16622
16642
  if (value === null) {
@@ -17346,6 +17366,12 @@ const deserializeAws_json1_1AlarmList = (output, context) => {
17346
17366
  const deserializeAws_json1_1AlgorithmSpecification = (output, context) => {
17347
17367
  return {
17348
17368
  AlgorithmName: (0, smithy_client_1.expectString)(output.AlgorithmName),
17369
+ ContainerArguments: output.ContainerArguments != null
17370
+ ? deserializeAws_json1_1TrainingContainerArguments(output.ContainerArguments, context)
17371
+ : undefined,
17372
+ ContainerEntrypoint: output.ContainerEntrypoint != null
17373
+ ? deserializeAws_json1_1TrainingContainerEntrypoint(output.ContainerEntrypoint, context)
17374
+ : undefined,
17349
17375
  EnableSageMakerMetricsTimeSeries: (0, smithy_client_1.expectBoolean)(output.EnableSageMakerMetricsTimeSeries),
17350
17376
  MetricDefinitions: output.MetricDefinitions != null
17351
17377
  ? deserializeAws_json1_1MetricDefinitionList(output.MetricDefinitions, context)
@@ -24863,6 +24889,28 @@ const deserializeAws_json1_1TrafficRoutingConfig = (output, context) => {
24863
24889
  WaitIntervalInSeconds: (0, smithy_client_1.expectInt32)(output.WaitIntervalInSeconds),
24864
24890
  };
24865
24891
  };
24892
+ const deserializeAws_json1_1TrainingContainerArguments = (output, context) => {
24893
+ const retVal = (output || [])
24894
+ .filter((e) => e != null)
24895
+ .map((entry) => {
24896
+ if (entry === null) {
24897
+ return null;
24898
+ }
24899
+ return (0, smithy_client_1.expectString)(entry);
24900
+ });
24901
+ return retVal;
24902
+ };
24903
+ const deserializeAws_json1_1TrainingContainerEntrypoint = (output, context) => {
24904
+ const retVal = (output || [])
24905
+ .filter((e) => e != null)
24906
+ .map((entry) => {
24907
+ if (entry === null) {
24908
+ return null;
24909
+ }
24910
+ return (0, smithy_client_1.expectString)(entry);
24911
+ });
24912
+ return retVal;
24913
+ };
24866
24914
  const deserializeAws_json1_1TrainingEnvironmentMap = (output, context) => {
24867
24915
  return Object.entries(output).reduce((acc, [key, value]) => {
24868
24916
  if (value === null) {
@@ -10670,6 +10670,12 @@ const serializeAws_json1_1AlarmList = (input, context) => {
10670
10670
  const serializeAws_json1_1AlgorithmSpecification = (input, context) => {
10671
10671
  return {
10672
10672
  ...(input.AlgorithmName != null && { AlgorithmName: input.AlgorithmName }),
10673
+ ...(input.ContainerArguments != null && {
10674
+ ContainerArguments: serializeAws_json1_1TrainingContainerArguments(input.ContainerArguments, context),
10675
+ }),
10676
+ ...(input.ContainerEntrypoint != null && {
10677
+ ContainerEntrypoint: serializeAws_json1_1TrainingContainerEntrypoint(input.ContainerEntrypoint, context),
10678
+ }),
10673
10679
  ...(input.EnableSageMakerMetricsTimeSeries != null && {
10674
10680
  EnableSageMakerMetricsTimeSeries: input.EnableSageMakerMetricsTimeSeries,
10675
10681
  }),
@@ -16067,6 +16073,20 @@ const serializeAws_json1_1TrafficRoutingConfig = (input, context) => {
16067
16073
  ...(input.WaitIntervalInSeconds != null && { WaitIntervalInSeconds: input.WaitIntervalInSeconds }),
16068
16074
  };
16069
16075
  };
16076
+ const serializeAws_json1_1TrainingContainerArguments = (input, context) => {
16077
+ return input
16078
+ .filter((e) => e != null)
16079
+ .map((entry) => {
16080
+ return entry;
16081
+ });
16082
+ };
16083
+ const serializeAws_json1_1TrainingContainerEntrypoint = (input, context) => {
16084
+ return input
16085
+ .filter((e) => e != null)
16086
+ .map((entry) => {
16087
+ return entry;
16088
+ });
16089
+ };
16070
16090
  const serializeAws_json1_1TrainingEnvironmentMap = (input, context) => {
16071
16091
  return Object.entries(input).reduce((acc, [key, value]) => {
16072
16092
  if (value === null) {
@@ -16796,6 +16816,12 @@ const deserializeAws_json1_1AlarmList = (output, context) => {
16796
16816
  const deserializeAws_json1_1AlgorithmSpecification = (output, context) => {
16797
16817
  return {
16798
16818
  AlgorithmName: __expectString(output.AlgorithmName),
16819
+ ContainerArguments: output.ContainerArguments != null
16820
+ ? deserializeAws_json1_1TrainingContainerArguments(output.ContainerArguments, context)
16821
+ : undefined,
16822
+ ContainerEntrypoint: output.ContainerEntrypoint != null
16823
+ ? deserializeAws_json1_1TrainingContainerEntrypoint(output.ContainerEntrypoint, context)
16824
+ : undefined,
16799
16825
  EnableSageMakerMetricsTimeSeries: __expectBoolean(output.EnableSageMakerMetricsTimeSeries),
16800
16826
  MetricDefinitions: output.MetricDefinitions != null
16801
16827
  ? deserializeAws_json1_1MetricDefinitionList(output.MetricDefinitions, context)
@@ -24313,6 +24339,28 @@ const deserializeAws_json1_1TrafficRoutingConfig = (output, context) => {
24313
24339
  WaitIntervalInSeconds: __expectInt32(output.WaitIntervalInSeconds),
24314
24340
  };
24315
24341
  };
24342
+ const deserializeAws_json1_1TrainingContainerArguments = (output, context) => {
24343
+ const retVal = (output || [])
24344
+ .filter((e) => e != null)
24345
+ .map((entry) => {
24346
+ if (entry === null) {
24347
+ return null;
24348
+ }
24349
+ return __expectString(entry);
24350
+ });
24351
+ return retVal;
24352
+ };
24353
+ const deserializeAws_json1_1TrainingContainerEntrypoint = (output, context) => {
24354
+ const retVal = (output || [])
24355
+ .filter((e) => e != null)
24356
+ .map((entry) => {
24357
+ if (entry === null) {
24358
+ return null;
24359
+ }
24360
+ return __expectString(entry);
24361
+ });
24362
+ return retVal;
24363
+ };
24316
24364
  const deserializeAws_json1_1TrainingEnvironmentMap = (output, context) => {
24317
24365
  return Object.entries(output).reduce((acc, [key, value]) => {
24318
24366
  if (value === null) {
@@ -710,10 +710,10 @@ export declare class SageMaker extends SageMakerClient {
710
710
  * Amazon SageMaker Studio. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/experiments-view-compare.html#experiments-view">View
711
711
  * Experiments, Trials, and Trial Components</a>.</p>
712
712
  * <important>
713
- * <p>Do not include any security-sensitive information including account access
714
- * IDs, secrets or tokens in any hyperparameter field. If the use of
715
- * security-sensitive credentials are detected, SageMaker will reject your training
716
- * job request and return an exception error.</p>
713
+ * <p>Do not include any security-sensitive information including account access IDs,
714
+ * secrets or tokens in any hyperparameter field. If the use of security-sensitive
715
+ * credentials are detected, SageMaker will reject your training job request and return an
716
+ * exception error.</p>
717
717
  * </important>
718
718
  */
719
719
  createHyperParameterTuningJob(args: CreateHyperParameterTuningJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateHyperParameterTuningJobCommandOutput>;
@@ -1028,7 +1028,7 @@ export declare class SageMaker extends SageMakerClient {
1028
1028
  * </li>
1029
1029
  * <li>
1030
1030
  * <p>
1031
- * <code>InputDataConfig</code> - Describes the training dataset and the Amazon S3,
1031
+ * <code>InputDataConfig</code> - Describes the input required by the training job and the Amazon S3,
1032
1032
  * EFS, or FSx location where it is stored.</p>
1033
1033
  * </li>
1034
1034
  * <li>
@@ -18,10 +18,10 @@ export interface CreateHyperParameterTuningJobCommandOutput extends CreateHyperP
18
18
  * Amazon SageMaker Studio. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/experiments-view-compare.html#experiments-view">View
19
19
  * Experiments, Trials, and Trial Components</a>.</p>
20
20
  * <important>
21
- * <p>Do not include any security-sensitive information including account access
22
- * IDs, secrets or tokens in any hyperparameter field. If the use of
23
- * security-sensitive credentials are detected, SageMaker will reject your training
24
- * job request and return an exception error.</p>
21
+ * <p>Do not include any security-sensitive information including account access IDs,
22
+ * secrets or tokens in any hyperparameter field. If the use of security-sensitive
23
+ * credentials are detected, SageMaker will reject your training job request and return an
24
+ * exception error.</p>
25
25
  * </important>
26
26
  * @example
27
27
  * Use a bare-bones client and the command you need to make an API call.
@@ -38,7 +38,7 @@ export interface CreateTrainingJobCommandOutput extends CreateTrainingJobRespons
38
38
  * </li>
39
39
  * <li>
40
40
  * <p>
41
- * <code>InputDataConfig</code> - Describes the training dataset and the Amazon S3,
41
+ * <code>InputDataConfig</code> - Describes the input required by the training job and the Amazon S3,
42
42
  * EFS, or FSx location where it is stored.</p>
43
43
  * </li>
44
44
  * <li>
@@ -631,6 +631,18 @@ export interface AlgorithmSpecification {
631
631
  * </ul>
632
632
  */
633
633
  EnableSageMakerMetricsTimeSeries?: boolean;
634
+ /**
635
+ * <p>The <a href="https://docs.docker.com/engine/reference/builder/">entrypoint script
636
+ * for a Docker container</a> used to run a training job. This script takes
637
+ * precedence over the default train processing instructions. See <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-dockerfile.html">How Amazon SageMaker
638
+ * Runs Your Training Image</a> for more information.</p>
639
+ */
640
+ ContainerEntrypoint?: string[];
641
+ /**
642
+ * <p>The arguments for a container used to run a training job. See <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-dockerfile.html">How Amazon SageMaker
643
+ * Runs Your Training Image</a> for additional information.</p>
644
+ */
645
+ ContainerArguments?: string[];
634
646
  }
635
647
  export declare enum AlgorithmStatus {
636
648
  COMPLETED = "Completed",
@@ -6237,8 +6237,8 @@ export interface CreateTrainingJobRequest {
6237
6237
  * <important>
6238
6238
  * <p>Do not include any security-sensitive information including account access IDs,
6239
6239
  * secrets or tokens in any hyperparameter field. If the use of security-sensitive
6240
- * credentials are detected, SageMaker will reject your training job request and return
6241
- * an exception error.</p>
6240
+ * credentials are detected, SageMaker will reject your training job request and return an
6241
+ * exception error.</p>
6242
6242
  * </important>
6243
6243
  */
6244
6244
  HyperParameters?: Record<string, string>;
@@ -291,6 +291,8 @@ export interface AlgorithmSpecification {
291
291
  TrainingInputMode: TrainingInputMode | string | undefined;
292
292
  MetricDefinitions?: MetricDefinition[];
293
293
  EnableSageMakerMetricsTimeSeries?: boolean;
294
+ ContainerEntrypoint?: string[];
295
+ ContainerArguments?: string[];
294
296
  }
295
297
  export declare enum AlgorithmStatus {
296
298
  COMPLETED = "Completed",
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.197.0",
4
+ "version": "3.199.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",
@@ -19,40 +19,40 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.197.0",
23
- "@aws-sdk/config-resolver": "3.197.0",
24
- "@aws-sdk/credential-provider-node": "3.197.0",
25
- "@aws-sdk/fetch-http-handler": "3.197.0",
26
- "@aws-sdk/hash-node": "3.197.0",
27
- "@aws-sdk/invalid-dependency": "3.197.0",
28
- "@aws-sdk/middleware-content-length": "3.197.0",
29
- "@aws-sdk/middleware-endpoint": "3.197.0",
30
- "@aws-sdk/middleware-host-header": "3.197.0",
31
- "@aws-sdk/middleware-logger": "3.197.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.197.0",
33
- "@aws-sdk/middleware-retry": "3.197.0",
34
- "@aws-sdk/middleware-serde": "3.197.0",
35
- "@aws-sdk/middleware-signing": "3.197.0",
36
- "@aws-sdk/middleware-stack": "3.197.0",
37
- "@aws-sdk/middleware-user-agent": "3.197.0",
38
- "@aws-sdk/node-config-provider": "3.197.0",
39
- "@aws-sdk/node-http-handler": "3.197.0",
40
- "@aws-sdk/protocol-http": "3.197.0",
41
- "@aws-sdk/smithy-client": "3.197.0",
42
- "@aws-sdk/types": "3.197.0",
43
- "@aws-sdk/url-parser": "3.197.0",
22
+ "@aws-sdk/client-sts": "3.199.0",
23
+ "@aws-sdk/config-resolver": "3.198.0",
24
+ "@aws-sdk/credential-provider-node": "3.199.0",
25
+ "@aws-sdk/fetch-http-handler": "3.199.0",
26
+ "@aws-sdk/hash-node": "3.198.0",
27
+ "@aws-sdk/invalid-dependency": "3.198.0",
28
+ "@aws-sdk/middleware-content-length": "3.199.0",
29
+ "@aws-sdk/middleware-endpoint": "3.198.0",
30
+ "@aws-sdk/middleware-host-header": "3.198.0",
31
+ "@aws-sdk/middleware-logger": "3.198.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.198.0",
33
+ "@aws-sdk/middleware-retry": "3.198.0",
34
+ "@aws-sdk/middleware-serde": "3.198.0",
35
+ "@aws-sdk/middleware-signing": "3.198.0",
36
+ "@aws-sdk/middleware-stack": "3.198.0",
37
+ "@aws-sdk/middleware-user-agent": "3.198.0",
38
+ "@aws-sdk/node-config-provider": "3.198.0",
39
+ "@aws-sdk/node-http-handler": "3.199.0",
40
+ "@aws-sdk/protocol-http": "3.198.0",
41
+ "@aws-sdk/smithy-client": "3.198.0",
42
+ "@aws-sdk/types": "3.198.0",
43
+ "@aws-sdk/url-parser": "3.198.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
45
  "@aws-sdk/util-base64-node": "3.188.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.197.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.197.0",
50
- "@aws-sdk/util-endpoints": "3.197.0",
51
- "@aws-sdk/util-user-agent-browser": "3.197.0",
52
- "@aws-sdk/util-user-agent-node": "3.197.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.198.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.198.0",
50
+ "@aws-sdk/util-endpoints": "3.198.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.198.0",
52
+ "@aws-sdk/util-user-agent-node": "3.198.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.188.0",
55
- "@aws-sdk/util-waiter": "3.197.0",
54
+ "@aws-sdk/util-utf8-node": "3.199.0",
55
+ "@aws-sdk/util-waiter": "3.198.0",
56
56
  "tslib": "^2.3.1",
57
57
  "uuid": "^8.3.2"
58
58
  },