Skip to content

Commit 92e9095

Browse files
author
awstools
committed
feat(client-sagemaker): This release adds support for C7g, C6g, C6gd, C6gn, M6g, M6gd, R6g, and R6gn Graviton instance types in Amazon SageMaker Inference.
1 parent e37a76d commit 92e9095

File tree

276 files changed

+6201
-264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+6201
-264
lines changed

clients/client-sagemaker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@aws-sdk/hash-node": "*",
2727
"@aws-sdk/invalid-dependency": "*",
2828
"@aws-sdk/middleware-content-length": "*",
29+
"@aws-sdk/middleware-endpoint": "*",
2930
"@aws-sdk/middleware-host-header": "*",
3031
"@aws-sdk/middleware-logger": "*",
3132
"@aws-sdk/middleware-recursion-detection": "*",

clients/client-sagemaker/src/SageMaker.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,6 +2303,16 @@ export class SageMaker extends SageMakerClient {
23032303
* and values for hyperparameters within ranges that you specify. It then chooses the
23042304
* hyperparameter values that result in a model that performs the best, as measured by an
23052305
* objective metric that you choose.</p>
2306+
* <p>A hyperparameter tuning job automatically creates Amazon SageMaker experiments, trials, and
2307+
* trial components for each training job that it runs. You can view these entities in
2308+
* Amazon SageMaker Studio. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/experiments-view-compare.html#experiments-view">View
2309+
* Experiments, Trials, and Trial Components</a>.</p>
2310+
* <important>
2311+
* <p>Do not include any security-sensitive information including account access
2312+
* IDs, secrets or tokens in any hyperparameter field. If the use of
2313+
* security-sensitive credentials are detected, SageMaker will reject your training
2314+
* job request and return an exception error.</p>
2315+
* </important>
23062316
*/
23072317
public createHyperParameterTuningJob(
23082318
args: CreateHyperParameterTuningJobCommandInput,
@@ -3120,11 +3130,10 @@ export class SageMaker extends SageMakerClient {
31203130
* be tuned to optimize this learning process. For a list of hyperparameters for
31213131
* each training algorithm provided by SageMaker, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html">Algorithms</a>. </p>
31223132
* <important>
3123-
* <p>You must not include any security-sensitive information, such as account
3124-
* access IDs, secrets, and tokens, in the dictionary for configuring
3125-
* hyperparameters. SageMaker rejects the training job request and returns an
3126-
* exception error for detected credentials, if such user input is
3127-
* found.</p>
3133+
* <p>Do not include any security-sensitive information including account access
3134+
* IDs, secrets or tokens in any hyperparameter field. If the use of
3135+
* security-sensitive credentials are detected, SageMaker will reject your training
3136+
* job request and return an exception error.</p>
31283137
* </important>
31293138
* </li>
31303139
* <li>
@@ -10233,7 +10242,8 @@ export class SageMaker extends SageMakerClient {
1023310242
}
1023410243

1023510244
/**
10236-
* <p>Update a model training job to request a new Debugger profiling configuration or to change warm pool retention length.</p>
10245+
* <p>Update a model training job to request a new Debugger profiling configuration or to
10246+
* change warm pool retention length.</p>
1023710247
*/
1023810248
public updateTrainingJob(
1023910249
args: UpdateTrainingJobCommandInput,

clients/client-sagemaker/src/SageMakerClient.ts

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
// smithy-typescript generated code
2-
import {
3-
EndpointsInputConfig,
4-
EndpointsResolvedConfig,
5-
RegionInputConfig,
6-
RegionResolvedConfig,
7-
resolveEndpointsConfig,
8-
resolveRegionConfig,
9-
} from "@aws-sdk/config-resolver";
2+
import { RegionInputConfig, RegionResolvedConfig, resolveRegionConfig } from "@aws-sdk/config-resolver";
103
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4+
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
115
import {
126
getHostHeaderPlugin,
137
HostHeaderInputConfig,
@@ -41,13 +35,13 @@ import {
4135
Credentials as __Credentials,
4236
Decoder as __Decoder,
4337
Encoder as __Encoder,
38+
EndpointV2 as __EndpointV2,
4439
Hash as __Hash,
4540
HashConstructor as __HashConstructor,
4641
HttpHandlerOptions as __HttpHandlerOptions,
4742
Logger as __Logger,
4843
Provider as __Provider,
4944
Provider,
50-
RegionInfoProvider,
5145
StreamCollector as __StreamCollector,
5246
UrlParser as __UrlParser,
5347
UserAgent as __UserAgent,
@@ -721,6 +715,12 @@ import {
721715
import { UpdateUserProfileCommandInput, UpdateUserProfileCommandOutput } from "./commands/UpdateUserProfileCommand";
722716
import { UpdateWorkforceCommandInput, UpdateWorkforceCommandOutput } from "./commands/UpdateWorkforceCommand";
723717
import { UpdateWorkteamCommandInput, UpdateWorkteamCommandOutput } from "./commands/UpdateWorkteamCommand";
718+
import {
719+
ClientInputEndpointParameters,
720+
ClientResolvedEndpointParameters,
721+
EndpointParameters,
722+
resolveClientEndpointParameters,
723+
} from "./endpoint/EndpointParameters";
724724
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
725725

726726
export type ServiceInputTypes =
@@ -1362,12 +1362,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
13621362
*/
13631363
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
13641364

1365-
/**
1366-
* Fetch related hostname, signing name or signing region with given region.
1367-
* @internal
1368-
*/
1369-
regionInfoProvider?: RegionInfoProvider;
1370-
13711365
/**
13721366
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
13731367
* @internal
@@ -1383,11 +1377,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
13831377
type SageMakerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
13841378
ClientDefaults &
13851379
RegionInputConfig &
1386-
EndpointsInputConfig &
1380+
EndpointInputConfig<EndpointParameters> &
13871381
RetryInputConfig &
13881382
HostHeaderInputConfig &
13891383
AwsAuthInputConfig &
1390-
UserAgentInputConfig;
1384+
UserAgentInputConfig &
1385+
ClientInputEndpointParameters;
13911386
/**
13921387
* The configuration interface of SageMakerClient class constructor that set the region, credentials and other options.
13931388
*/
@@ -1396,11 +1391,12 @@ export interface SageMakerClientConfig extends SageMakerClientConfigType {}
13961391
type SageMakerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
13971392
Required<ClientDefaults> &
13981393
RegionResolvedConfig &
1399-
EndpointsResolvedConfig &
1394+
EndpointResolvedConfig<EndpointParameters> &
14001395
RetryResolvedConfig &
14011396
HostHeaderResolvedConfig &
14021397
AwsAuthResolvedConfig &
1403-
UserAgentResolvedConfig;
1398+
UserAgentResolvedConfig &
1399+
ClientResolvedEndpointParameters;
14041400
/**
14051401
* The resolved configuration interface of SageMakerClient class. This is resolved and normalized from the {@link SageMakerClientConfig | constructor configuration interface}.
14061402
*/
@@ -1437,14 +1433,15 @@ export class SageMakerClient extends __Client<
14371433

14381434
constructor(configuration: SageMakerClientConfig) {
14391435
const _config_0 = __getRuntimeConfig(configuration);
1440-
const _config_1 = resolveRegionConfig(_config_0);
1441-
const _config_2 = resolveEndpointsConfig(_config_1);
1442-
const _config_3 = resolveRetryConfig(_config_2);
1443-
const _config_4 = resolveHostHeaderConfig(_config_3);
1444-
const _config_5 = resolveAwsAuthConfig(_config_4);
1445-
const _config_6 = resolveUserAgentConfig(_config_5);
1446-
super(_config_6);
1447-
this.config = _config_6;
1436+
const _config_1 = resolveClientEndpointParameters(_config_0);
1437+
const _config_2 = resolveRegionConfig(_config_1);
1438+
const _config_3 = resolveEndpointConfig(_config_2);
1439+
const _config_4 = resolveRetryConfig(_config_3);
1440+
const _config_5 = resolveHostHeaderConfig(_config_4);
1441+
const _config_6 = resolveAwsAuthConfig(_config_5);
1442+
const _config_7 = resolveUserAgentConfig(_config_6);
1443+
super(_config_7);
1444+
this.config = _config_7;
14481445
this.middlewareStack.use(getRetryPlugin(this.config));
14491446
this.middlewareStack.use(getContentLengthPlugin(this.config));
14501447
this.middlewareStack.use(getHostHeaderPlugin(this.config));

clients/client-sagemaker/src/commands/AddAssociationCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -56,6 +57,15 @@ export class AddAssociationCommand extends $Command<
5657
// Start section: command_properties
5758
// End section: command_properties
5859

60+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
61+
return {
62+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
63+
Endpoint: { type: "builtInParams", name: "Endpoint" },
64+
Region: { type: "builtInParams", name: "region" },
65+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
66+
};
67+
}
68+
5969
constructor(readonly input: AddAssociationCommandInput) {
6070
// Start section: command_constructor
6171
super();
@@ -71,6 +81,9 @@ export class AddAssociationCommand extends $Command<
7181
options?: __HttpHandlerOptions
7282
): Handler<AddAssociationCommandInput, AddAssociationCommandOutput> {
7383
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
84+
this.middlewareStack.use(
85+
getEndpointPlugin(configuration, AddAssociationCommand.getEndpointParameterInstructions())
86+
);
7487

7588
const stack = clientStack.concat(this.middlewareStack);
7689

clients/client-sagemaker/src/commands/AddTagsCommand.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -69,6 +70,15 @@ export class AddTagsCommand extends $Command<AddTagsCommandInput, AddTagsCommand
6970
// Start section: command_properties
7071
// End section: command_properties
7172

73+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
74+
return {
75+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
76+
Endpoint: { type: "builtInParams", name: "Endpoint" },
77+
Region: { type: "builtInParams", name: "region" },
78+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79+
};
80+
}
81+
7282
constructor(readonly input: AddTagsCommandInput) {
7383
// Start section: command_constructor
7484
super();
@@ -84,6 +94,7 @@ export class AddTagsCommand extends $Command<AddTagsCommandInput, AddTagsCommand
8494
options?: __HttpHandlerOptions
8595
): Handler<AddTagsCommandInput, AddTagsCommandOutput> {
8696
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
97+
this.middlewareStack.use(getEndpointPlugin(configuration, AddTagsCommand.getEndpointParameterInstructions()));
8798

8899
const stack = clientStack.concat(this.middlewareStack);
89100

clients/client-sagemaker/src/commands/AssociateTrialComponentCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -53,6 +54,15 @@ export class AssociateTrialComponentCommand extends $Command<
5354
// Start section: command_properties
5455
// End section: command_properties
5556

57+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
58+
return {
59+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
60+
Endpoint: { type: "builtInParams", name: "Endpoint" },
61+
Region: { type: "builtInParams", name: "region" },
62+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
63+
};
64+
}
65+
5666
constructor(readonly input: AssociateTrialComponentCommandInput) {
5767
// Start section: command_constructor
5868
super();
@@ -68,6 +78,9 @@ export class AssociateTrialComponentCommand extends $Command<
6878
options?: __HttpHandlerOptions
6979
): Handler<AssociateTrialComponentCommandInput, AssociateTrialComponentCommandOutput> {
7080
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
81+
this.middlewareStack.use(
82+
getEndpointPlugin(configuration, AssociateTrialComponentCommand.getEndpointParameterInstructions())
83+
);
7184

7285
const stack = clientStack.concat(this.middlewareStack);
7386

clients/client-sagemaker/src/commands/BatchDescribeModelPackageCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -52,6 +53,15 @@ export class BatchDescribeModelPackageCommand extends $Command<
5253
// Start section: command_properties
5354
// End section: command_properties
5455

56+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
57+
return {
58+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
59+
Endpoint: { type: "builtInParams", name: "Endpoint" },
60+
Region: { type: "builtInParams", name: "region" },
61+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
62+
};
63+
}
64+
5565
constructor(readonly input: BatchDescribeModelPackageCommandInput) {
5666
// Start section: command_constructor
5767
super();
@@ -67,6 +77,9 @@ export class BatchDescribeModelPackageCommand extends $Command<
6777
options?: __HttpHandlerOptions
6878
): Handler<BatchDescribeModelPackageCommandInput, BatchDescribeModelPackageCommandOutput> {
6979
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80+
this.middlewareStack.use(
81+
getEndpointPlugin(configuration, BatchDescribeModelPackageCommand.getEndpointParameterInstructions())
82+
);
7083

7184
const stack = clientStack.concat(this.middlewareStack);
7285

clients/client-sagemaker/src/commands/CreateActionCommand.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -56,6 +57,15 @@ export class CreateActionCommand extends $Command<
5657
// Start section: command_properties
5758
// End section: command_properties
5859

60+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
61+
return {
62+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
63+
Endpoint: { type: "builtInParams", name: "Endpoint" },
64+
Region: { type: "builtInParams", name: "region" },
65+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
66+
};
67+
}
68+
5969
constructor(readonly input: CreateActionCommandInput) {
6070
// Start section: command_constructor
6171
super();
@@ -71,6 +81,7 @@ export class CreateActionCommand extends $Command<
7181
options?: __HttpHandlerOptions
7282
): Handler<CreateActionCommandInput, CreateActionCommandOutput> {
7383
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
84+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateActionCommand.getEndpointParameterInstructions()));
7485

7586
const stack = clientStack.concat(this.middlewareStack);
7687

clients/client-sagemaker/src/commands/CreateAlgorithmCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -52,6 +53,15 @@ export class CreateAlgorithmCommand extends $Command<
5253
// Start section: command_properties
5354
// End section: command_properties
5455

56+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
57+
return {
58+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
59+
Endpoint: { type: "builtInParams", name: "Endpoint" },
60+
Region: { type: "builtInParams", name: "region" },
61+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
62+
};
63+
}
64+
5565
constructor(readonly input: CreateAlgorithmCommandInput) {
5666
// Start section: command_constructor
5767
super();
@@ -67,6 +77,9 @@ export class CreateAlgorithmCommand extends $Command<
6777
options?: __HttpHandlerOptions
6878
): Handler<CreateAlgorithmCommandInput, CreateAlgorithmCommandOutput> {
6979
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80+
this.middlewareStack.use(
81+
getEndpointPlugin(configuration, CreateAlgorithmCommand.getEndpointParameterInstructions())
82+
);
7083

7184
const stack = clientStack.concat(this.middlewareStack);
7285

clients/client-sagemaker/src/commands/CreateAppCommand.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -51,6 +52,15 @@ export class CreateAppCommand extends $Command<
5152
// Start section: command_properties
5253
// End section: command_properties
5354

55+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
56+
return {
57+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
58+
Endpoint: { type: "builtInParams", name: "Endpoint" },
59+
Region: { type: "builtInParams", name: "region" },
60+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
61+
};
62+
}
63+
5464
constructor(readonly input: CreateAppCommandInput) {
5565
// Start section: command_constructor
5666
super();
@@ -66,6 +76,7 @@ export class CreateAppCommand extends $Command<
6676
options?: __HttpHandlerOptions
6777
): Handler<CreateAppCommandInput, CreateAppCommandOutput> {
6878
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
79+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateAppCommand.getEndpointParameterInstructions()));
6980

7081
const stack = clientStack.concat(this.middlewareStack);
7182

0 commit comments

Comments
 (0)