Skip to content

Commit

Permalink
feat(client-sagemaker): Amazon SageMaker now supports automatic mount…
Browse files Browse the repository at this point in the history
…ing 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.
  • Loading branch information
awstools committed Sep 3, 2024
1 parent 4e6cb80 commit 202fdf2
Show file tree
Hide file tree
Showing 15 changed files with 177 additions and 117 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { CreateAutoMLJobRequest, CreateAutoMLJobResponse } from "../models/models_0";
import { CreateAutoMLJobRequest } from "../models/models_0";
import { CreateAutoMLJobResponse } from "../models/models_1";
import { de_CreateAutoMLJobCommand, se_CreateAutoMLJobCommand } from "../protocols/Aws_json1_1";
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
* "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* ],
* },
* AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
* },
* DomainSettings: { // DomainSettings
* SecurityGroupIds: [ // DomainSecurityGroupIds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export interface CreateUserProfileCommandOutput extends CreateUserProfileRespons
* "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* ],
* },
* AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
* },
* };
* const command = new CreateUserProfileCommand(input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M
* // "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* // ],
* // },
* // AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
* // },
* // DomainSettings: { // DomainSettings
* // SecurityGroupIds: [ // DomainSecurityGroupIds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export interface DescribeUserProfileCommandOutput extends DescribeUserProfileRes
* // "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* // ],
* // },
* // AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { ListModelCardVersionsRequest } from "../models/models_3";
import { ListModelCardVersionsResponse } from "../models/models_4";
import { ListModelCardVersionsRequest, ListModelCardVersionsResponse } from "../models/models_4";
import { de_ListModelCardVersionsCommand, se_ListModelCardVersionsCommand } from "../protocols/Aws_json1_1";
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export interface UpdateDomainCommandOutput extends UpdateDomainResponse, __Metad
* "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* ],
* },
* AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
* },
* DomainSettingsForUpdate: { // DomainSettingsForUpdate
* RStudioServerProDomainSettingsForUpdate: { // RStudioServerProDomainSettingsForUpdate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export interface UpdateUserProfileCommandOutput extends UpdateUserProfileRespons
* "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas",
* ],
* },
* AutoMountHomeEFS: "Enabled" || "Disabled" || "DefaultAsDomain",
* },
* };
* const command = new UpdateUserProfileCommand(input);
Expand Down
29 changes: 17 additions & 12 deletions clients/client-sagemaker/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7408,6 +7408,21 @@ export const AutoMLSortOrder = {
*/
export type AutoMLSortOrder = (typeof AutoMLSortOrder)[keyof typeof AutoMLSortOrder];

/**
* @public
* @enum
*/
export const AutoMountHomeEFS = {
DEFAULT_AS_DOMAIN: "DefaultAsDomain",
DISABLED: "Disabled",
ENABLED: "Enabled",
} as const;

/**
* @public
*/
export type AutoMountHomeEFS = (typeof AutoMountHomeEFS)[keyof typeof AutoMountHomeEFS];

/**
* <p>The name and an example value of the hyperparameter that you want to use in Autotune.
* If Automatic model tuning (AMT) determines that your hyperparameter is eligible for
Expand Down Expand Up @@ -10336,7 +10351,8 @@ export interface ContainerDefinition {
AdditionalModelDataSources?: AdditionalModelDataSource[];

/**
* <p>The environment variables to set in the Docker container.</p>
* <p>The environment variables to set in the Docker container. Don't include any
* sensitive data in your environment variables.</p>
* <p>The maximum length of each key and value in the <code>Environment</code> map is
* 1024 bytes. The maximum length of all keys and values in the map, combined, is 32 KB. If
* you pass multiple containers to a <code>CreateModel</code> request, then the maximum
Expand Down Expand Up @@ -11276,14 +11292,3 @@ export interface CreateAutoMLJobRequest {
*/
ModelDeployConfig?: ModelDeployConfig;
}

/**
* @public
*/
export interface CreateAutoMLJobResponse {
/**
* <p>The unique ARN assigned to the AutoML job when it is created.</p>
* @public
*/
AutoMLJobArn: string | undefined;
}
32 changes: 18 additions & 14 deletions clients/client-sagemaker/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
AutoMLOutputDataConfig,
AutoMLProblemTypeConfig,
AutoMLSecurityConfig,
AutoMountHomeEFS,
AutoParameter,
AutoRollbackConfig,
Autotune,
Expand Down Expand Up @@ -74,6 +75,17 @@ import {
VpcConfig,
} from "./models_0";

/**
* @public
*/
export interface CreateAutoMLJobResponse {
/**
* <p>The unique ARN assigned to the AutoML job when it is created.</p>
* @public
*/
AutoMLJobArn: string | undefined;
}

/**
* @public
*/
Expand Down Expand Up @@ -2512,6 +2524,12 @@ export interface UserSettings {
* @public
*/
StudioWebPortalSettings?: StudioWebPortalSettings;

/**
* <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>
* @public
*/
AutoMountHomeEFS?: AutoMountHomeEFS;
}

/**
Expand Down Expand Up @@ -12816,20 +12834,6 @@ export const RedshiftResultCompressionType = {
export type RedshiftResultCompressionType =
(typeof RedshiftResultCompressionType)[keyof typeof RedshiftResultCompressionType];

/**
* @public
* @enum
*/
export const RedshiftResultFormat = {
CSV: "CSV",
PARQUET: "PARQUET",
} as const;

/**
* @public
*/
export type RedshiftResultFormat = (typeof RedshiftResultFormat)[keyof typeof RedshiftResultFormat];

/**
* @internal
*/
Expand Down
36 changes: 16 additions & 20 deletions clients/client-sagemaker/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ import {
RecommendationJobStoppingConditions,
RecommendationJobType,
RedshiftResultCompressionType,
RedshiftResultFormat,
RetryStrategy,
ShadowModeConfig,
ThroughputMode,
Expand All @@ -153,6 +152,20 @@ import {
VendorGuidance,
} from "./models_1";

/**
* @public
* @enum
*/
export const RedshiftResultFormat = {
CSV: "CSV",
PARQUET: "PARQUET",
} as const;

/**
* @public
*/
export type RedshiftResultFormat = (typeof RedshiftResultFormat)[keyof typeof RedshiftResultFormat];

/**
* <p>Configuration for Redshift Dataset Definition input.</p>
* @public
Expand Down Expand Up @@ -1756,7 +1769,8 @@ export interface CreateTransformJobRequest {
BatchStrategy?: BatchStrategy;

/**
* <p>The environment variables to set in the Docker container. We support up to 16 key and
* <p>The environment variables to set in the Docker container. Don't include any
* sensitive data in your environment variables. We support up to 16 key and
* values entries in the map.</p>
* @public
*/
Expand Down Expand Up @@ -9441,24 +9455,6 @@ export interface DescribeModelCardRequest {
ModelCardVersion?: number;
}

/**
* @public
* @enum
*/
export const ModelCardProcessingStatus = {
CONTENT_DELETED: "ContentDeleted",
DELETE_COMPLETED: "DeleteCompleted",
DELETE_FAILED: "DeleteFailed",
DELETE_INPROGRESS: "DeleteInProgress",
DELETE_PENDING: "DeletePending",
EXPORTJOBS_DELETED: "ExportJobsDeleted",
} as const;

/**
* @public
*/
export type ModelCardProcessingStatus = (typeof ModelCardProcessingStatus)[keyof typeof ModelCardProcessingStatus];

/**
* @internal
*/
Expand Down
74 changes: 18 additions & 56 deletions clients/client-sagemaker/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ import {
LastUpdateStatus,
MemberDefinition,
ModelArtifacts,
ModelCardProcessingStatus,
ModelClientConfig,
ModelConfiguration,
NotificationConfiguration,
Expand Down Expand Up @@ -183,6 +182,24 @@ import {
WorkerAccessConfiguration,
} from "./models_2";

/**
* @public
* @enum
*/
export const ModelCardProcessingStatus = {
CONTENT_DELETED: "ContentDeleted",
DELETE_COMPLETED: "DeleteCompleted",
DELETE_FAILED: "DeleteFailed",
DELETE_INPROGRESS: "DeleteInProgress",
DELETE_PENDING: "DeletePending",
EXPORTJOBS_DELETED: "ExportJobsDeleted",
} as const;

/**
* @public
*/
export type ModelCardProcessingStatus = (typeof ModelCardProcessingStatus)[keyof typeof ModelCardProcessingStatus];

/**
* @public
*/
Expand Down Expand Up @@ -11530,61 +11547,6 @@ export const ModelCardVersionSortBy = {
*/
export type ModelCardVersionSortBy = (typeof ModelCardVersionSortBy)[keyof typeof ModelCardVersionSortBy];

/**
* @public
*/
export interface ListModelCardVersionsRequest {
/**
* <p>Only list model card versions that were created after the time specified.</p>
* @public
*/
CreationTimeAfter?: Date;

/**
* <p>Only list model card versions that were created before the time specified.</p>
* @public
*/
CreationTimeBefore?: Date;

/**
* <p>The maximum number of model card versions to list.</p>
* @public
*/
MaxResults?: number;

/**
* <p>List model card versions for the model card with the specified name or Amazon Resource Name (ARN).</p>
* @public
*/
ModelCardName: string | undefined;

/**
* <p>Only list model card versions with the specified approval status.</p>
* @public
*/
ModelCardStatus?: ModelCardStatus;

/**
* <p>If the response to a previous <code>ListModelCardVersions</code> request was truncated,
* the response includes a <code>NextToken</code>. To retrieve the next set of model card
* versions, use the token in the next request.</p>
* @public
*/
NextToken?: string;

/**
* <p>Sort listed model card versions by version. Sorts by version by default.</p>
* @public
*/
SortBy?: ModelCardVersionSortBy;

/**
* <p>Sort model card versions by ascending or descending order.</p>
* @public
*/
SortOrder?: ModelCardSortOrder;
}

/**
* @internal
*/
Expand Down
Loading

0 comments on commit 202fdf2

Please sign in to comment.