Skip to content

Commit 202fdf2

Browse files
author
awstools
committed
feat(client-sagemaker): Amazon SageMaker now supports automatic mounting of a user's home folder in the Amazon Elastic File System (EFS) associated with the SageMaker Studio domain to their Studio Spaces to enable users to share data between their own private spaces.
1 parent 4e6cb80 commit 202fdf2

15 files changed

+177
-117
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { CreateAutoMLJobRequest, CreateAutoMLJobResponse } from "../models/models_0";
8+
import { CreateAutoMLJobRequest } from "../models/models_0";
9+
import { CreateAutoMLJobResponse } from "../models/models_1";
910
import { de_CreateAutoMLJobCommand, se_CreateAutoMLJobCommand } from "../protocols/Aws_json1_1";
1011
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1112

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

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
263263
* "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
264264
* ],
265265
* },
266+
* AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
266267
* },
267268
* DomainSettings: { // DomainSettings
268269
* SecurityGroupIds: [ // DomainSecurityGroupIds

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

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ export interface CreateUserProfileCommandOutput extends CreateUserProfileRespons
234234
* "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
235235
* ],
236236
* },
237+
* AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
237238
* },
238239
* };
239240
* const command = new CreateUserProfileCommand(input);

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

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M
235235
* // "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
236236
* // ],
237237
* // },
238+
* // AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
238239
* // },
239240
* // DomainSettings: { // DomainSettings
240241
* // SecurityGroupIds: [ // DomainSecurityGroupIds

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

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ export interface DescribeUserProfileCommandOutput extends DescribeUserProfileRes
234234
* // "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
235235
* // ],
236236
* // },
237+
* // AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
237238
* // },
238239
* // };
239240
*

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { ListModelCardVersionsRequest } from "../models/models_3";
9-
import { ListModelCardVersionsResponse } from "../models/models_4";
8+
import { ListModelCardVersionsRequest, ListModelCardVersionsResponse } from "../models/models_4";
109
import { de_ListModelCardVersionsCommand, se_ListModelCardVersionsCommand } from "../protocols/Aws_json1_1";
1110
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1211

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

+1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export interface UpdateDomainCommandOutput extends UpdateDomainResponse, __Metad
219219
* "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
220220
* ],
221221
* },
222+
* AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
222223
* },
223224
* DomainSettingsForUpdate: { // DomainSettingsForUpdate
224225
* RStudioServerProDomainSettingsForUpdate: { // RStudioServerProDomainSettingsForUpdate

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

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ export interface UpdateUserProfileCommandOutput extends UpdateUserProfileRespons
220220
* "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
221221
* ],
222222
* },
223+
* AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
223224
* },
224225
* };
225226
* const command = new UpdateUserProfileCommand(input);

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

+17-12
Original file line numberDiff line numberDiff line change
@@ -7408,6 +7408,21 @@ export const AutoMLSortOrder = {
74087408
*/
74097409
export type AutoMLSortOrder = (typeof AutoMLSortOrder)[keyof typeof AutoMLSortOrder];
74107410

7411+
/**
7412+
* @public
7413+
* @enum
7414+
*/
7415+
export const AutoMountHomeEFS = {
7416+
DEFAULT_AS_DOMAIN: "DefaultAsDomain",
7417+
DISABLED: "Disabled",
7418+
ENABLED: "Enabled",
7419+
} as const;
7420+
7421+
/**
7422+
* @public
7423+
*/
7424+
export type AutoMountHomeEFS = (typeof AutoMountHomeEFS)[keyof typeof AutoMountHomeEFS];
7425+
74117426
/**
74127427
* <p>The name and an example value of the hyperparameter that you want to use in Autotune.
74137428
* If Automatic model tuning (AMT) determines that your hyperparameter is eligible for
@@ -10336,7 +10351,8 @@ export interface ContainerDefinition {
1033610351
AdditionalModelDataSources?: AdditionalModelDataSource[];
1033710352

1033810353
/**
10339-
* <p>The environment variables to set in the Docker container.</p>
10354+
* <p>The environment variables to set in the Docker container. Don't include any
10355+
* sensitive data in your environment variables.</p>
1034010356
* <p>The maximum length of each key and value in the <code>Environment</code> map is
1034110357
* 1024 bytes. The maximum length of all keys and values in the map, combined, is 32 KB. If
1034210358
* you pass multiple containers to a <code>CreateModel</code> request, then the maximum
@@ -11276,14 +11292,3 @@ export interface CreateAutoMLJobRequest {
1127611292
*/
1127711293
ModelDeployConfig?: ModelDeployConfig;
1127811294
}
11279-
11280-
/**
11281-
* @public
11282-
*/
11283-
export interface CreateAutoMLJobResponse {
11284-
/**
11285-
* <p>The unique ARN assigned to the AutoML job when it is created.</p>
11286-
* @public
11287-
*/
11288-
AutoMLJobArn: string | undefined;
11289-
}

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

+18-14
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
AutoMLOutputDataConfig,
1818
AutoMLProblemTypeConfig,
1919
AutoMLSecurityConfig,
20+
AutoMountHomeEFS,
2021
AutoParameter,
2122
AutoRollbackConfig,
2223
Autotune,
@@ -74,6 +75,17 @@ import {
7475
VpcConfig,
7576
} from "./models_0";
7677

78+
/**
79+
* @public
80+
*/
81+
export interface CreateAutoMLJobResponse {
82+
/**
83+
* <p>The unique ARN assigned to the AutoML job when it is created.</p>
84+
* @public
85+
*/
86+
AutoMLJobArn: string | undefined;
87+
}
88+
7789
/**
7890
* @public
7991
*/
@@ -2512,6 +2524,12 @@ export interface UserSettings {
25122524
* @public
25132525
*/
25142526
StudioWebPortalSettings?: StudioWebPortalSettings;
2527+
2528+
/**
2529+
* <p>Indicates whether auto-mounting of an EFS volume is supported for the user profile. The <code>DefaultAsDomain</code> value is only supported for user profiles. Do not use the <code>DefaultAsDomain</code> value when setting this parameter for a domain.</p>
2530+
* @public
2531+
*/
2532+
AutoMountHomeEFS?: AutoMountHomeEFS;
25152533
}
25162534

25172535
/**
@@ -12816,20 +12834,6 @@ export const RedshiftResultCompressionType = {
1281612834
export type RedshiftResultCompressionType =
1281712835
(typeof RedshiftResultCompressionType)[keyof typeof RedshiftResultCompressionType];
1281812836

12819-
/**
12820-
* @public
12821-
* @enum
12822-
*/
12823-
export const RedshiftResultFormat = {
12824-
CSV: "CSV",
12825-
PARQUET: "PARQUET",
12826-
} as const;
12827-
12828-
/**
12829-
* @public
12830-
*/
12831-
export type RedshiftResultFormat = (typeof RedshiftResultFormat)[keyof typeof RedshiftResultFormat];
12832-
1283312837
/**
1283412838
* @internal
1283512839
*/

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

+16-20
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ import {
144144
RecommendationJobStoppingConditions,
145145
RecommendationJobType,
146146
RedshiftResultCompressionType,
147-
RedshiftResultFormat,
148147
RetryStrategy,
149148
ShadowModeConfig,
150149
ThroughputMode,
@@ -153,6 +152,20 @@ import {
153152
VendorGuidance,
154153
} from "./models_1";
155154

155+
/**
156+
* @public
157+
* @enum
158+
*/
159+
export const RedshiftResultFormat = {
160+
CSV: "CSV",
161+
PARQUET: "PARQUET",
162+
} as const;
163+
164+
/**
165+
* @public
166+
*/
167+
export type RedshiftResultFormat = (typeof RedshiftResultFormat)[keyof typeof RedshiftResultFormat];
168+
156169
/**
157170
* <p>Configuration for Redshift Dataset Definition input.</p>
158171
* @public
@@ -1756,7 +1769,8 @@ export interface CreateTransformJobRequest {
17561769
BatchStrategy?: BatchStrategy;
17571770

17581771
/**
1759-
* <p>The environment variables to set in the Docker container. We support up to 16 key and
1772+
* <p>The environment variables to set in the Docker container. Don't include any
1773+
* sensitive data in your environment variables. We support up to 16 key and
17601774
* values entries in the map.</p>
17611775
* @public
17621776
*/
@@ -9441,24 +9455,6 @@ export interface DescribeModelCardRequest {
94419455
ModelCardVersion?: number;
94429456
}
94439457

9444-
/**
9445-
* @public
9446-
* @enum
9447-
*/
9448-
export const ModelCardProcessingStatus = {
9449-
CONTENT_DELETED: "ContentDeleted",
9450-
DELETE_COMPLETED: "DeleteCompleted",
9451-
DELETE_FAILED: "DeleteFailed",
9452-
DELETE_INPROGRESS: "DeleteInProgress",
9453-
DELETE_PENDING: "DeletePending",
9454-
EXPORTJOBS_DELETED: "ExportJobsDeleted",
9455-
} as const;
9456-
9457-
/**
9458-
* @public
9459-
*/
9460-
export type ModelCardProcessingStatus = (typeof ModelCardProcessingStatus)[keyof typeof ModelCardProcessingStatus];
9461-
94629458
/**
94639459
* @internal
94649460
*/

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

+18-56
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ import {
149149
LastUpdateStatus,
150150
MemberDefinition,
151151
ModelArtifacts,
152-
ModelCardProcessingStatus,
153152
ModelClientConfig,
154153
ModelConfiguration,
155154
NotificationConfiguration,
@@ -183,6 +182,24 @@ import {
183182
WorkerAccessConfiguration,
184183
} from "./models_2";
185184

185+
/**
186+
* @public
187+
* @enum
188+
*/
189+
export const ModelCardProcessingStatus = {
190+
CONTENT_DELETED: "ContentDeleted",
191+
DELETE_COMPLETED: "DeleteCompleted",
192+
DELETE_FAILED: "DeleteFailed",
193+
DELETE_INPROGRESS: "DeleteInProgress",
194+
DELETE_PENDING: "DeletePending",
195+
EXPORTJOBS_DELETED: "ExportJobsDeleted",
196+
} as const;
197+
198+
/**
199+
* @public
200+
*/
201+
export type ModelCardProcessingStatus = (typeof ModelCardProcessingStatus)[keyof typeof ModelCardProcessingStatus];
202+
186203
/**
187204
* @public
188205
*/
@@ -11530,61 +11547,6 @@ export const ModelCardVersionSortBy = {
1153011547
*/
1153111548
export type ModelCardVersionSortBy = (typeof ModelCardVersionSortBy)[keyof typeof ModelCardVersionSortBy];
1153211549

11533-
/**
11534-
* @public
11535-
*/
11536-
export interface ListModelCardVersionsRequest {
11537-
/**
11538-
* <p>Only list model card versions that were created after the time specified.</p>
11539-
* @public
11540-
*/
11541-
CreationTimeAfter?: Date;
11542-
11543-
/**
11544-
* <p>Only list model card versions that were created before the time specified.</p>
11545-
* @public
11546-
*/
11547-
CreationTimeBefore?: Date;
11548-
11549-
/**
11550-
* <p>The maximum number of model card versions to list.</p>
11551-
* @public
11552-
*/
11553-
MaxResults?: number;
11554-
11555-
/**
11556-
* <p>List model card versions for the model card with the specified name or Amazon Resource Name (ARN).</p>
11557-
* @public
11558-
*/
11559-
ModelCardName: string | undefined;
11560-
11561-
/**
11562-
* <p>Only list model card versions with the specified approval status.</p>
11563-
* @public
11564-
*/
11565-
ModelCardStatus?: ModelCardStatus;
11566-
11567-
/**
11568-
* <p>If the response to a previous <code>ListModelCardVersions</code> request was truncated,
11569-
* the response includes a <code>NextToken</code>. To retrieve the next set of model card
11570-
* versions, use the token in the next request.</p>
11571-
* @public
11572-
*/
11573-
NextToken?: string;
11574-
11575-
/**
11576-
* <p>Sort listed model card versions by version. Sorts by version by default.</p>
11577-
* @public
11578-
*/
11579-
SortBy?: ModelCardVersionSortBy;
11580-
11581-
/**
11582-
* <p>Sort model card versions by ascending or descending order.</p>
11583-
* @public
11584-
*/
11585-
SortOrder?: ModelCardSortOrder;
11586-
}
11587-
1158811550
/**
1158911551
* @internal
1159011552
*/

0 commit comments

Comments
 (0)