@aws-sdk/client-sagemaker 3.245.0 → 3.254.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.
@@ -15629,6 +15629,9 @@ const serializeAws_json1_1HyperParameterTrainingJobDefinition = (input, context)
15629
15629
  }),
15630
15630
  ...(input.EnableManagedSpotTraining != null && { EnableManagedSpotTraining: input.EnableManagedSpotTraining }),
15631
15631
  ...(input.EnableNetworkIsolation != null && { EnableNetworkIsolation: input.EnableNetworkIsolation }),
15632
+ ...(input.Environment != null && {
15633
+ Environment: serializeAws_json1_1HyperParameterTrainingJobEnvironmentMap(input.Environment, context),
15634
+ }),
15632
15635
  ...(input.HyperParameterRanges != null && {
15633
15636
  HyperParameterRanges: serializeAws_json1_1ParameterRanges(input.HyperParameterRanges, context),
15634
15637
  }),
@@ -15667,6 +15670,15 @@ const serializeAws_json1_1HyperParameterTrainingJobDefinitions = (input, context
15667
15670
  return serializeAws_json1_1HyperParameterTrainingJobDefinition(entry, context);
15668
15671
  });
15669
15672
  };
15673
+ const serializeAws_json1_1HyperParameterTrainingJobEnvironmentMap = (input, context) => {
15674
+ return Object.entries(input).reduce((acc, [key, value]) => {
15675
+ if (value === null) {
15676
+ return acc;
15677
+ }
15678
+ acc[key] = value;
15679
+ return acc;
15680
+ }, {});
15681
+ };
15670
15682
  const serializeAws_json1_1HyperParameterTuningInstanceConfig = (input, context) => {
15671
15683
  return {
15672
15684
  ...(input.InstanceCount != null && { InstanceCount: input.InstanceCount }),
@@ -23839,6 +23851,9 @@ const deserializeAws_json1_1HyperParameterTrainingJobDefinition = (output, conte
23839
23851
  EnableInterContainerTrafficEncryption: (0, smithy_client_1.expectBoolean)(output.EnableInterContainerTrafficEncryption),
23840
23852
  EnableManagedSpotTraining: (0, smithy_client_1.expectBoolean)(output.EnableManagedSpotTraining),
23841
23853
  EnableNetworkIsolation: (0, smithy_client_1.expectBoolean)(output.EnableNetworkIsolation),
23854
+ Environment: output.Environment != null
23855
+ ? deserializeAws_json1_1HyperParameterTrainingJobEnvironmentMap(output.Environment, context)
23856
+ : undefined,
23842
23857
  HyperParameterRanges: output.HyperParameterRanges != null
23843
23858
  ? deserializeAws_json1_1ParameterRanges(output.HyperParameterRanges, context)
23844
23859
  : undefined,
@@ -23877,6 +23892,15 @@ const deserializeAws_json1_1HyperParameterTrainingJobDefinitions = (output, cont
23877
23892
  });
23878
23893
  return retVal;
23879
23894
  };
23895
+ const deserializeAws_json1_1HyperParameterTrainingJobEnvironmentMap = (output, context) => {
23896
+ return Object.entries(output).reduce((acc, [key, value]) => {
23897
+ if (value === null) {
23898
+ return acc;
23899
+ }
23900
+ acc[key] = (0, smithy_client_1.expectString)(value);
23901
+ return acc;
23902
+ }, {});
23903
+ };
23880
23904
  const deserializeAws_json1_1HyperParameterTrainingJobSummaries = (output, context) => {
23881
23905
  const retVal = (output || [])
23882
23906
  .filter((e) => e != null)
@@ -15015,6 +15015,9 @@ const serializeAws_json1_1HyperParameterTrainingJobDefinition = (input, context)
15015
15015
  }),
15016
15016
  ...(input.EnableManagedSpotTraining != null && { EnableManagedSpotTraining: input.EnableManagedSpotTraining }),
15017
15017
  ...(input.EnableNetworkIsolation != null && { EnableNetworkIsolation: input.EnableNetworkIsolation }),
15018
+ ...(input.Environment != null && {
15019
+ Environment: serializeAws_json1_1HyperParameterTrainingJobEnvironmentMap(input.Environment, context),
15020
+ }),
15018
15021
  ...(input.HyperParameterRanges != null && {
15019
15022
  HyperParameterRanges: serializeAws_json1_1ParameterRanges(input.HyperParameterRanges, context),
15020
15023
  }),
@@ -15053,6 +15056,15 @@ const serializeAws_json1_1HyperParameterTrainingJobDefinitions = (input, context
15053
15056
  return serializeAws_json1_1HyperParameterTrainingJobDefinition(entry, context);
15054
15057
  });
15055
15058
  };
15059
+ const serializeAws_json1_1HyperParameterTrainingJobEnvironmentMap = (input, context) => {
15060
+ return Object.entries(input).reduce((acc, [key, value]) => {
15061
+ if (value === null) {
15062
+ return acc;
15063
+ }
15064
+ acc[key] = value;
15065
+ return acc;
15066
+ }, {});
15067
+ };
15056
15068
  const serializeAws_json1_1HyperParameterTuningInstanceConfig = (input, context) => {
15057
15069
  return {
15058
15070
  ...(input.InstanceCount != null && { InstanceCount: input.InstanceCount }),
@@ -23225,6 +23237,9 @@ const deserializeAws_json1_1HyperParameterTrainingJobDefinition = (output, conte
23225
23237
  EnableInterContainerTrafficEncryption: __expectBoolean(output.EnableInterContainerTrafficEncryption),
23226
23238
  EnableManagedSpotTraining: __expectBoolean(output.EnableManagedSpotTraining),
23227
23239
  EnableNetworkIsolation: __expectBoolean(output.EnableNetworkIsolation),
23240
+ Environment: output.Environment != null
23241
+ ? deserializeAws_json1_1HyperParameterTrainingJobEnvironmentMap(output.Environment, context)
23242
+ : undefined,
23228
23243
  HyperParameterRanges: output.HyperParameterRanges != null
23229
23244
  ? deserializeAws_json1_1ParameterRanges(output.HyperParameterRanges, context)
23230
23245
  : undefined,
@@ -23263,6 +23278,15 @@ const deserializeAws_json1_1HyperParameterTrainingJobDefinitions = (output, cont
23263
23278
  });
23264
23279
  return retVal;
23265
23280
  };
23281
+ const deserializeAws_json1_1HyperParameterTrainingJobEnvironmentMap = (output, context) => {
23282
+ return Object.entries(output).reduce((acc, [key, value]) => {
23283
+ if (value === null) {
23284
+ return acc;
23285
+ }
23286
+ acc[key] = __expectString(value);
23287
+ return acc;
23288
+ }, {});
23289
+ };
23266
23290
  const deserializeAws_json1_1HyperParameterTrainingJobSummaries = (output, context) => {
23267
23291
  const retVal = (output || [])
23268
23292
  .filter((e) => e != null)
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- 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, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { AddAssociationCommandInput, AddAssociationCommandOutput } from "./commands/AddAssociationCommand";
11
11
  import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
12
12
  import { AssociateTrialComponentCommandInput, AssociateTrialComponentCommandOutput } from "./commands/AssociateTrialComponentCommand";
@@ -316,11 +316,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
316
316
  */
317
317
  requestHandler?: __HttpHandler;
318
318
  /**
319
- * A constructor for a class implementing the {@link __Hash} interface
319
+ * A constructor for a class implementing the {@link __Checksum} interface
320
320
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
321
321
  * @internal
322
322
  */
323
- sha256?: __HashConstructor;
323
+ sha256?: __ChecksumConstructor | __HashConstructor;
324
324
  /**
325
325
  * The function that will be used to convert strings into HTTP endpoints.
326
326
  * @internal
@@ -8538,7 +8538,7 @@ export interface CreateEndpointConfigInput {
8538
8538
  * to host at this endpoint in shadow mode with production traffic replicated from the
8539
8539
  * model specified on <code>ProductionVariants</code>. If you use this field, you can only
8540
8540
  * specify one variant for <code>ProductionVariants</code> and one variant for
8541
- * <code>ShadowProductionVariants</code>.</p>
8541
+ * <code>ShadowProductionVariants</code>.</p>
8542
8542
  */
8543
8543
  ShadowProductionVariants?: ProductionVariant[];
8544
8544
  }
@@ -1442,7 +1442,7 @@ export interface HyperParameterTuningInstanceConfig {
1442
1442
  /**
1443
1443
  * <p>The number of instances of the type specified by <code>InstanceType</code>. Choose an
1444
1444
  * instance count larger than 1 for distributed training algorithms. See <a href="https://docs.aws.amazon.com/data-parallel-use-api.html">SageMaker distributed training
1445
- * jobs</a> for more informcration.</p>
1445
+ * jobs</a> for more information.</p>
1446
1446
  */
1447
1447
  InstanceCount: number | undefined;
1448
1448
  /**
@@ -1608,13 +1608,11 @@ export interface HyperParameterTrainingJobDefinition {
1608
1608
  */
1609
1609
  InputDataConfig?: Channel[];
1610
1610
  /**
1611
- * <p>The <a>VpcConfig</a> object that
1612
- * specifies
1613
- * the VPC that you want the training jobs that this hyperparameter
1614
- * tuning job launches to connect to. Control access to and from your
1615
- * training
1616
- * container by configuring the VPC. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html">Protect Training Jobs
1617
- * by Using an Amazon Virtual Private Cloud</a>.</p>
1611
+ * <p>The <a>VpcConfig</a> object that specifies the VPC that you want the
1612
+ * training jobs that this hyperparameter tuning job launches to connect to. Control access
1613
+ * to and from your training container by configuring the VPC. For more information, see
1614
+ * <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html">Protect
1615
+ * Training Jobs by Using an Amazon Virtual Private Cloud</a>.</p>
1618
1616
  */
1619
1617
  VpcConfig?: VpcConfig;
1620
1618
  /**
@@ -1689,6 +1687,19 @@ export interface HyperParameterTrainingJobDefinition {
1689
1687
  * the storage volume (optional).</p>
1690
1688
  */
1691
1689
  HyperParameterTuningResourceConfig?: HyperParameterTuningResourceConfig;
1690
+ /**
1691
+ * <p>An environment variable that you can pass into the SageMaker <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html">CreateTrainingJob</a> API. You can use an existing <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-Environment">environment variable from the training container</a> or use your own. See
1692
+ * <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html">Define metrics
1693
+ * and variables</a> for more information.</p>
1694
+ * <note>
1695
+ * <p>The maximum number of items specified for <code>Map Entries</code> refers to the
1696
+ * maximum number of environment variables for each <code>TrainingJobDefinition</code>
1697
+ * and also the maximum for the hyperparameter tuning job itself. That is, the sum of
1698
+ * the number of environment variables for all the training job definitions can't
1699
+ * exceed the maximum number specified.</p>
1700
+ * </note>
1701
+ */
1702
+ Environment?: Record<string, string>;
1692
1703
  }
1693
1704
  /**
1694
1705
  * <p>A previously completed or stopped hyperparameter tuning job to be used as a starting
@@ -1148,8 +1148,8 @@ export interface PendingDeploymentSummary {
1148
1148
  */
1149
1149
  EndpointConfigName: string | undefined;
1150
1150
  /**
1151
- * <p>An array of <a>PendingProductionVariantSummary</a> objects, one for each model
1152
- * hosted behind this endpoint for the in-progress deployment.</p>
1151
+ * <p>An array of <a>PendingProductionVariantSummary</a> objects, one for each
1152
+ * model hosted behind this endpoint for the in-progress deployment.</p>
1153
1153
  */
1154
1154
  ProductionVariants?: PendingProductionVariantSummary[];
1155
1155
  /**
@@ -1157,9 +1157,10 @@ export interface PendingDeploymentSummary {
1157
1157
  */
1158
1158
  StartTime?: Date;
1159
1159
  /**
1160
- * <p>An array of <a>PendingProductionVariantSummary</a> objects, one for each model
1161
- * hosted behind this endpoint in shadow mode with production traffic replicated from the
1162
- * model specified on <code>ProductionVariants</code> for the in-progress deployment.</p>
1160
+ * <p>An array of <a>PendingProductionVariantSummary</a> objects, one for each
1161
+ * model hosted behind this endpoint in shadow mode with production traffic replicated from
1162
+ * the model specified on <code>ProductionVariants</code> for the in-progress
1163
+ * deployment.</p>
1163
1164
  */
1164
1165
  ShadowProductionVariants?: PendingProductionVariantSummary[];
1165
1166
  }
@@ -1319,8 +1320,8 @@ export interface DescribeEndpointOutput {
1319
1320
  ExplainerConfig?: ExplainerConfig;
1320
1321
  /**
1321
1322
  * <p>An array of <a>ProductionVariantSummary</a> objects, one for each model
1322
- * that you want to host at this endpoint in shadow mode with production traffic
1323
- * replicated from the model specified on <code>ProductionVariants</code>.</p>
1323
+ * that you want to host at this endpoint in shadow mode with production traffic replicated
1324
+ * from the model specified on <code>ProductionVariants</code>.</p>
1324
1325
  */
1325
1326
  ShadowProductionVariants?: ProductionVariantSummary[];
1326
1327
  }
@@ -6292,7 +6293,7 @@ export interface Endpoint {
6292
6293
  Tags?: Tag[];
6293
6294
  /**
6294
6295
  * <p>A list of the shadow variants hosted on the endpoint. Each shadow variant is a model
6295
- * in shadow mode with production traffic replicated from the proudction variant.</p>
6296
+ * in shadow mode with production traffic replicated from the proudction variant.</p>
6296
6297
  */
6297
6298
  ShadowProductionVariants?: ProductionVariantSummary[];
6298
6299
  }
@@ -6864,7 +6864,7 @@ export interface UpdateEndpointInput {
6864
6864
  * <code>true</code>, <code>ExcludeRetainedVariantProperties</code> specifies the list
6865
6865
  * of type <a>VariantProperty</a> to override with the values provided by
6866
6866
  * <code>EndpointConfig</code>. If you don't specify a value for
6867
- * <code>ExcludeAllVariantProperties</code>, no variant properties are overridden.
6867
+ * <code>ExcludeRetainedVariantProperties</code>, no variant properties are overridden.
6868
6868
  * </p>
6869
6869
  */
6870
6870
  ExcludeRetainedVariantProperties?: VariantProperty[];
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -1853,7 +1854,7 @@ export declare type ServiceOutputTypes =
1853
1854
  export interface ClientDefaults
1854
1855
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
1855
1856
  requestHandler?: __HttpHandler;
1856
- sha256?: __HashConstructor;
1857
+ sha256?: __ChecksumConstructor | __HashConstructor;
1857
1858
  urlParser?: __UrlParser;
1858
1859
  bodyLengthChecker?: __BodyLengthCalculator;
1859
1860
  streamCollector?: __StreamCollector;
@@ -259,6 +259,7 @@ export interface HyperParameterTrainingJobDefinition {
259
259
  CheckpointConfig?: CheckpointConfig;
260
260
  RetryStrategy?: RetryStrategy;
261
261
  HyperParameterTuningResourceConfig?: HyperParameterTuningResourceConfig;
262
+ Environment?: Record<string, string>;
262
263
  }
263
264
  export interface ParentHyperParameterTuningJob {
264
265
  HyperParameterTuningJobName?: string;
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.245.0",
4
+ "version": "3.254.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",
@@ -11,49 +11,49 @@
11
11
  "build:types": "tsc -p tsconfig.types.json",
12
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
13
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
- "generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/sagemaker.json --keepFiles)"
14
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo sagemaker"
15
15
  },
16
16
  "main": "./dist-cjs/index.js",
17
17
  "types": "./dist-types/index.d.ts",
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.245.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.245.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.254.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.254.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-serde": "3.254.0",
36
+ "@aws-sdk/middleware-signing": "3.254.0",
37
+ "@aws-sdk/middleware-stack": "3.254.0",
38
+ "@aws-sdk/middleware-user-agent": "3.254.0",
39
+ "@aws-sdk/node-config-provider": "3.254.0",
40
+ "@aws-sdk/node-http-handler": "3.254.0",
41
+ "@aws-sdk/protocol-http": "3.254.0",
42
+ "@aws-sdk/smithy-client": "3.254.0",
43
+ "@aws-sdk/types": "3.254.0",
44
+ "@aws-sdk/url-parser": "3.254.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-user-agent-browser": "3.226.0",
53
- "@aws-sdk/util-user-agent-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
50
+ "@aws-sdk/util-endpoints": "3.254.0",
51
+ "@aws-sdk/util-retry": "3.254.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
53
+ "@aws-sdk/util-user-agent-node": "3.254.0",
54
54
  "@aws-sdk/util-utf8-browser": "3.188.0",
55
55
  "@aws-sdk/util-utf8-node": "3.208.0",
56
- "@aws-sdk/util-waiter": "3.226.0",
56
+ "@aws-sdk/util-waiter": "3.254.0",
57
57
  "tslib": "^2.3.1",
58
58
  "uuid": "^8.3.2"
59
59
  },