Skip to content

Commit 7ab95c9

Browse files
author
awstools
committed
feat(client-sagemaker): SageMaker Inference Recommender now accepts Inference Recommender fields: Domain, Task, Framework, SamplePayloadUrl, SupportedContentTypes, SupportedInstanceTypes, directly in our CreateInferenceRecommendationsJob API through ContainerConfig
1 parent d866e4a commit 7ab95c9

File tree

13 files changed

+495
-187
lines changed

13 files changed

+495
-187
lines changed

clients/client-sagemaker/src/SageMaker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,7 @@ export class SageMaker extends SageMakerClient {
29102910
* the Apps and files associated with the Domain's Amazon Elastic File System (EFS) volume.
29112911
* This operation can only be called when the authentication mode equals IAM.
29122912
* </p>
2913-
* <p>The IAM role or user used to call this API defines the permissions to access the app. Once
2913+
* <p>The IAM role or user passed to this API defines the permissions to access the app. Once
29142914
* the presigned URL is created, no additional permission is required to access this URL. IAM
29152915
* authorization policies for this API are also enforced for every HTTP request and WebSocket
29162916
* frame that attempts to connect to the app.</p>
@@ -3349,7 +3349,7 @@ export class SageMaker extends SageMakerClient {
33493349
* <p>Creates a user profile. A user profile represents a single user within a domain, and is
33503350
* the main way to reference a "person" for the purposes of sharing, reporting, and other
33513351
* user-oriented features. This entity is created when a user onboards to Amazon SageMaker Studio. If an
3352-
* administrator invites a person by email or imports them from SSO, a user profile is
3352+
* administrator invites a person by email or imports them from Amazon Web Services SSO, a user profile is
33533353
* automatically created. A user profile is the primary holder of settings for an individual
33543354
* user and has a reference to the user's private Amazon Elastic File System (EFS) home directory.
33553355
* </p>
@@ -3784,7 +3784,7 @@ export class SageMaker extends SageMakerClient {
37843784

37853785
/**
37863786
* <p>Used to delete a domain.
3787-
* If you onboarded with IAM mode, you will need to delete your domain to onboard again using SSO.
3787+
* If you onboarded with IAM mode, you will need to delete your domain to onboard again using Amazon Web Services SSO.
37883788
* Use with caution. All of the members of the domain will lose access to their EFS volume,
37893789
* including data, notebooks, and other artifacts.
37903790
* </p>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface CreatePresignedDomainUrlCommandOutput extends CreatePresignedDo
3333
* the Apps and files associated with the Domain's Amazon Elastic File System (EFS) volume.
3434
* This operation can only be called when the authentication mode equals IAM.
3535
* </p>
36-
* <p>The IAM role or user used to call this API defines the permissions to access the app. Once
36+
* <p>The IAM role or user passed to this API defines the permissions to access the app. Once
3737
* the presigned URL is created, no additional permission is required to access this URL. IAM
3838
* authorization policies for this API are also enforced for every HTTP request and WebSocket
3939
* frame that attempts to connect to the app.</p>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface CreateUserProfileCommandOutput extends CreateUserProfileRespons
3131
* <p>Creates a user profile. A user profile represents a single user within a domain, and is
3232
* the main way to reference a "person" for the purposes of sharing, reporting, and other
3333
* user-oriented features. This entity is created when a user onboards to Amazon SageMaker Studio. If an
34-
* administrator invites a person by email or imports them from SSO, a user profile is
34+
* administrator invites a person by email or imports them from Amazon Web Services SSO, a user profile is
3535
* automatically created. A user profile is the primary holder of settings for an individual
3636
* user and has a reference to the user's private Amazon Elastic File System (EFS) home directory.
3737
* </p>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface DeleteDomainCommandOutput extends __MetadataBearer {}
2424

2525
/**
2626
* <p>Used to delete a domain.
27-
* If you onboarded with IAM mode, you will need to delete your domain to onboard again using SSO.
27+
* If you onboarded with IAM mode, you will need to delete your domain to onboard again using Amazon Web Services SSO.
2828
* Use with caution. All of the members of the domain will lose access to their EFS volume,
2929
* including data, notebooks, and other artifacts.
3030
* </p>

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ import {
1212
SerdeContext as __SerdeContext,
1313
} from "@aws-sdk/types";
1414

15-
import {
16-
DescribeFlowDefinitionRequest,
17-
DescribeFlowDefinitionRequestFilterSensitiveLog,
18-
DescribeFlowDefinitionResponse,
19-
DescribeFlowDefinitionResponseFilterSensitiveLog,
20-
} from "../models/models_1";
15+
import { DescribeFlowDefinitionRequest, DescribeFlowDefinitionRequestFilterSensitiveLog } from "../models/models_1";
16+
import { DescribeFlowDefinitionResponse, DescribeFlowDefinitionResponseFilterSensitiveLog } from "../models/models_2";
2117
import {
2218
deserializeAws_json1_1DescribeFlowDefinitionCommand,
2319
serializeAws_json1_1DescribeFlowDefinitionCommand,

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ import {
1212
SerdeContext as __SerdeContext,
1313
} from "@aws-sdk/types";
1414

15-
import { DescribeHumanTaskUiRequest, DescribeHumanTaskUiRequestFilterSensitiveLog } from "../models/models_1";
16-
import { DescribeHumanTaskUiResponse, DescribeHumanTaskUiResponseFilterSensitiveLog } from "../models/models_2";
15+
import {
16+
DescribeHumanTaskUiRequest,
17+
DescribeHumanTaskUiRequestFilterSensitiveLog,
18+
DescribeHumanTaskUiResponse,
19+
DescribeHumanTaskUiResponseFilterSensitiveLog,
20+
} from "../models/models_2";
1721
import {
1822
deserializeAws_json1_1DescribeHumanTaskUiCommand,
1923
serializeAws_json1_1DescribeHumanTaskUiCommand,

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ import {
1212
SerdeContext as __SerdeContext,
1313
} from "@aws-sdk/types";
1414

15-
import {
16-
ListNotebookInstancesInput,
17-
ListNotebookInstancesInputFilterSensitiveLog,
18-
ListNotebookInstancesOutput,
19-
ListNotebookInstancesOutputFilterSensitiveLog,
20-
} from "../models/models_2";
15+
import { ListNotebookInstancesInput, ListNotebookInstancesInputFilterSensitiveLog } from "../models/models_2";
16+
import { ListNotebookInstancesOutput, ListNotebookInstancesOutputFilterSensitiveLog } from "../models/models_3";
2117
import {
2218
deserializeAws_json1_1ListNotebookInstancesCommand,
2319
serializeAws_json1_1ListNotebookInstancesCommand,

clients/client-sagemaker/src/models/models_0.ts

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,6 @@ export interface OutputDataConfig {
10441044
* </p>
10451045
* </li>
10461046
* </ul>
1047-
*
10481047
* <p>If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must
10491048
* include permissions to call <code>kms:Encrypt</code>. If you don't provide a KMS key ID,
10501049
* SageMaker uses the default KMS key for Amazon S3 for your role's account. SageMaker uses server-side
@@ -1164,20 +1163,21 @@ export interface ResourceConfig {
11641163
* algorithms might also use the ML storage volume for scratch space. If you want to store
11651164
* the training data in the ML storage volume, choose <code>File</code> as the
11661165
* <code>TrainingInputMode</code> in the algorithm specification. </p>
1167-
* <p>You must specify sufficient ML storage for your scenario. </p>
1168-
* <note>
1169-
* <p> SageMaker supports only the General Purpose SSD (gp2) ML storage volume type.
1170-
* </p>
1171-
* </note>
1172-
* <note>
1173-
* <p>Certain Nitro-based instances include local storage with a fixed total size,
1174-
* dependent on the instance type. When using these instances for training, SageMaker mounts
1175-
* the local instance storage instead of Amazon EBS gp2 storage. You can't request a
1176-
* <code>VolumeSizeInGB</code> greater than the total size of the local instance
1177-
* storage.</p>
1178-
* <p>For a list of instance types that support local instance storage, including the
1179-
* total size per instance type, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes">Instance Store Volumes</a>.</p>
1180-
* </note>
1166+
* <p>When using an ML instance with <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssd-instance-store.html#nvme-ssd-volumes">NVMe SSD
1167+
* volumes</a>, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage.
1168+
* Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures
1169+
* storage paths for training datasets, checkpoints, model artifacts, and outputs to use
1170+
* the entire capacity of the instance storage. For example, ML instance families with the
1171+
* NVMe-type instance storage include <code>ml.p4d</code>, <code>ml.g4dn</code>, and
1172+
* <code>ml.g5</code>. </p>
1173+
* <p>When using an ML instance with the EBS-only storage option and without instance
1174+
* storage, you must define the size of EBS volume through <code>VolumeSizeInGB</code> in
1175+
* the <code>ResourceConfig</code> API. For example, ML instance families that use EBS
1176+
* volumes include <code>ml.c5</code> and <code>ml.p2</code>. </p>
1177+
* <p>To look up instance types and their instance storage types and volumes, see <a href="http://aws.amazon.com/ec2/instance-types/">Amazon EC2 Instance Types</a>.</p>
1178+
* <p>To find the default local paths defined by the SageMaker training platform, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-train-storage.html">Amazon SageMaker
1179+
* Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and
1180+
* Outputs</a>.</p>
11811181
*/
11821182
VolumeSizeInGB: number | undefined;
11831183

@@ -1239,8 +1239,8 @@ export interface ResourceConfig {
12391239
*/
12401240
export interface StoppingCondition {
12411241
/**
1242-
* <p>The maximum length of time, in seconds, that a training or compilation job can
1243-
* run.</p>
1242+
* <p>The maximum length of time, in seconds, that a training or compilation job can run
1243+
* before it is stopped.</p>
12441244
* <p>For compilation jobs, if the job does not complete during this time, a
12451245
* <code>TimeOut</code> error is generated. We recommend starting with 900 seconds and
12461246
* increasing as necessary based on your model.</p>
@@ -1249,6 +1249,9 @@ export interface StoppingCondition {
12491249
* <code>MaxRuntimeInSeconds</code> specifies the maximum time for all of the attempts
12501250
* in total, not each individual attempt. The default value is 1 day. The maximum value is
12511251
* 28 days.</p>
1252+
* <p>The maximum time that a <code>TrainingJob</code> can run in total, including any time spent
1253+
* publishing metrics or archiving and uploading models after it has been stopped, is 30
1254+
* days.</p>
12521255
*/
12531256
MaxRuntimeInSeconds?: number;
12541257

@@ -4175,7 +4178,7 @@ export interface AutoMLJobCompletionCriteria {
41754178
MaxCandidates?: number;
41764179

41774180
/**
4178-
* <p>The maximum time, in seconds, that each training job is allowed to run as part of a
4181+
* <p>The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as part of a
41794182
* hyperparameter tuning job. For more information, see the used by the action.</p>
41804183
*/
41814184
MaxRuntimePerTrainingJobInSeconds?: number;
@@ -8335,7 +8338,6 @@ export interface ProductionVariantCoreDumpConfig {
83358338
* </p>
83368339
* </li>
83378340
* </ul>
8338-
*
83398341
* <p>If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must
83408342
* include permissions to call <code>kms:Encrypt</code>. If you don't provide a KMS key ID,
83418343
* SageMaker uses the default KMS key for Amazon S3 for your role's account. SageMaker uses server-side

0 commit comments

Comments
 (0)