From a618313791cc38e8301e35844ffd066f73f3bd5f Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 5 Sep 2024 18:12:30 +0000 Subject: [PATCH] feat(client-sagemaker): Amazon SageMaker now supports idle shutdown of JupyterLab and CodeEditor applications on SageMaker Studio. --- .../src/commands/CreateArtifactCommand.ts | 3 +- .../src/commands/CreateAutoMLJobCommand.ts | 3 +- .../src/commands/CreateDomainCommand.ts | 24 ++ .../src/commands/CreateSpaceCommand.ts | 10 + .../src/commands/CreateUserProfileCommand.ts | 16 + .../src/commands/DescribeDomainCommand.ts | 24 ++ .../DescribeModelBiasJobDefinitionCommand.ts | 2 +- .../src/commands/DescribeModelCardCommand.ts | 7 +- .../src/commands/DescribeModelCommand.ts | 2 +- .../src/commands/DescribeSpaceCommand.ts | 10 + .../commands/DescribeUserProfileCommand.ts | 16 + .../src/commands/ListModelCardsCommand.ts | 2 +- .../src/commands/UpdateDomainCommand.ts | 24 ++ .../src/commands/UpdateSpaceCommand.ts | 10 + .../src/commands/UpdateUserProfileCommand.ts | 16 + .../client-sagemaker/src/models/models_0.ts | 183 ++++------ .../client-sagemaker/src/models/models_1.ts | 177 ++++++--- .../client-sagemaker/src/models/models_2.ts | 276 +++++--------- .../client-sagemaker/src/models/models_3.ts | 345 ++++++++++-------- .../client-sagemaker/src/models/models_4.ts | 158 +++++++- .../src/protocols/Aws_json1_1.ts | 77 +++- codegen/sdk-codegen/aws-models/sagemaker.json | 138 ++++++- 22 files changed, 985 insertions(+), 538 deletions(-) diff --git a/clients/client-sagemaker/src/commands/CreateArtifactCommand.ts b/clients/client-sagemaker/src/commands/CreateArtifactCommand.ts index 8bfa0f4431d19..6dcfc605c3a48 100644 --- a/clients/client-sagemaker/src/commands/CreateArtifactCommand.ts +++ b/clients/client-sagemaker/src/commands/CreateArtifactCommand.ts @@ -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 { CreateArtifactRequest, CreateArtifactResponse } from "../models/models_0"; +import { CreateArtifactRequest } from "../models/models_0"; +import { CreateArtifactResponse } from "../models/models_1"; import { de_CreateArtifactCommand, se_CreateArtifactCommand } from "../protocols/Aws_json1_1"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; diff --git a/clients/client-sagemaker/src/commands/CreateAutoMLJobCommand.ts b/clients/client-sagemaker/src/commands/CreateAutoMLJobCommand.ts index 029c1606d07e7..df2a640237177 100644 --- a/clients/client-sagemaker/src/commands/CreateAutoMLJobCommand.ts +++ b/clients/client-sagemaker/src/commands/CreateAutoMLJobCommand.ts @@ -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 { CreateAutoMLJobRequest } from "../models/models_0"; -import { CreateAutoMLJobResponse } from "../models/models_1"; +import { CreateAutoMLJobRequest, CreateAutoMLJobResponse } from "../models/models_1"; import { de_CreateAutoMLJobCommand, se_CreateAutoMLJobCommand } from "../protocols/Aws_json1_1"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; diff --git a/clients/client-sagemaker/src/commands/CreateDomainCommand.ts b/clients/client-sagemaker/src/commands/CreateDomainCommand.ts index f95cbbfa93c0b..b498d5f8acba4 100644 --- a/clients/client-sagemaker/src/commands/CreateDomainCommand.ts +++ b/clients/client-sagemaker/src/commands/CreateDomainCommand.ts @@ -208,6 +208,14 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad * LifecycleConfigArns: [ * "STRING_VALUE", * ], + * AppLifecycleManagement: { // AppLifecycleManagement + * IdleSettings: { // IdleSettings + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * }, * JupyterLabAppSettings: { // JupyterLabAppSettings * DefaultResourceSpec: "", @@ -226,6 +234,14 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad * RepositoryUrl: "STRING_VALUE", // required * }, * ], + * AppLifecycleManagement: { + * IdleSettings: { + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * EmrSettings: { // EmrSettings * AssumableRoleArns: [ // AssumableRoleArns * "STRING_VALUE", @@ -337,6 +353,14 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad * RepositoryUrl: "STRING_VALUE", // required * }, * ], + * AppLifecycleManagement: { + * IdleSettings: { + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * EmrSettings: { * AssumableRoleArns: [ * "STRING_VALUE", diff --git a/clients/client-sagemaker/src/commands/CreateSpaceCommand.ts b/clients/client-sagemaker/src/commands/CreateSpaceCommand.ts index e198ee5c3c450..a3551c3e7bcf7 100644 --- a/clients/client-sagemaker/src/commands/CreateSpaceCommand.ts +++ b/clients/client-sagemaker/src/commands/CreateSpaceCommand.ts @@ -89,6 +89,11 @@ export interface CreateSpaceCommandOutput extends CreateSpaceResponse, __Metadat * InstanceType: "system" || "ml.t3.micro" || "ml.t3.small" || "ml.t3.medium" || "ml.t3.large" || "ml.t3.xlarge" || "ml.t3.2xlarge" || "ml.m5.large" || "ml.m5.xlarge" || "ml.m5.2xlarge" || "ml.m5.4xlarge" || "ml.m5.8xlarge" || "ml.m5.12xlarge" || "ml.m5.16xlarge" || "ml.m5.24xlarge" || "ml.m5d.large" || "ml.m5d.xlarge" || "ml.m5d.2xlarge" || "ml.m5d.4xlarge" || "ml.m5d.8xlarge" || "ml.m5d.12xlarge" || "ml.m5d.16xlarge" || "ml.m5d.24xlarge" || "ml.c5.large" || "ml.c5.xlarge" || "ml.c5.2xlarge" || "ml.c5.4xlarge" || "ml.c5.9xlarge" || "ml.c5.12xlarge" || "ml.c5.18xlarge" || "ml.c5.24xlarge" || "ml.p3.2xlarge" || "ml.p3.8xlarge" || "ml.p3.16xlarge" || "ml.p3dn.24xlarge" || "ml.g4dn.xlarge" || "ml.g4dn.2xlarge" || "ml.g4dn.4xlarge" || "ml.g4dn.8xlarge" || "ml.g4dn.12xlarge" || "ml.g4dn.16xlarge" || "ml.r5.large" || "ml.r5.xlarge" || "ml.r5.2xlarge" || "ml.r5.4xlarge" || "ml.r5.8xlarge" || "ml.r5.12xlarge" || "ml.r5.16xlarge" || "ml.r5.24xlarge" || "ml.g5.xlarge" || "ml.g5.2xlarge" || "ml.g5.4xlarge" || "ml.g5.8xlarge" || "ml.g5.16xlarge" || "ml.g5.12xlarge" || "ml.g5.24xlarge" || "ml.g5.48xlarge" || "ml.g6.xlarge" || "ml.g6.2xlarge" || "ml.g6.4xlarge" || "ml.g6.8xlarge" || "ml.g6.12xlarge" || "ml.g6.16xlarge" || "ml.g6.24xlarge" || "ml.g6.48xlarge" || "ml.geospatial.interactive" || "ml.p4d.24xlarge" || "ml.p4de.24xlarge" || "ml.trn1.2xlarge" || "ml.trn1.32xlarge" || "ml.trn1n.32xlarge" || "ml.p5.48xlarge" || "ml.m6i.large" || "ml.m6i.xlarge" || "ml.m6i.2xlarge" || "ml.m6i.4xlarge" || "ml.m6i.8xlarge" || "ml.m6i.12xlarge" || "ml.m6i.16xlarge" || "ml.m6i.24xlarge" || "ml.m6i.32xlarge" || "ml.m7i.large" || "ml.m7i.xlarge" || "ml.m7i.2xlarge" || "ml.m7i.4xlarge" || "ml.m7i.8xlarge" || "ml.m7i.12xlarge" || "ml.m7i.16xlarge" || "ml.m7i.24xlarge" || "ml.m7i.48xlarge" || "ml.c6i.large" || "ml.c6i.xlarge" || "ml.c6i.2xlarge" || "ml.c6i.4xlarge" || "ml.c6i.8xlarge" || "ml.c6i.12xlarge" || "ml.c6i.16xlarge" || "ml.c6i.24xlarge" || "ml.c6i.32xlarge" || "ml.c7i.large" || "ml.c7i.xlarge" || "ml.c7i.2xlarge" || "ml.c7i.4xlarge" || "ml.c7i.8xlarge" || "ml.c7i.12xlarge" || "ml.c7i.16xlarge" || "ml.c7i.24xlarge" || "ml.c7i.48xlarge" || "ml.r6i.large" || "ml.r6i.xlarge" || "ml.r6i.2xlarge" || "ml.r6i.4xlarge" || "ml.r6i.8xlarge" || "ml.r6i.12xlarge" || "ml.r6i.16xlarge" || "ml.r6i.24xlarge" || "ml.r6i.32xlarge" || "ml.r7i.large" || "ml.r7i.xlarge" || "ml.r7i.2xlarge" || "ml.r7i.4xlarge" || "ml.r7i.8xlarge" || "ml.r7i.12xlarge" || "ml.r7i.16xlarge" || "ml.r7i.24xlarge" || "ml.r7i.48xlarge" || "ml.m6id.large" || "ml.m6id.xlarge" || "ml.m6id.2xlarge" || "ml.m6id.4xlarge" || "ml.m6id.8xlarge" || "ml.m6id.12xlarge" || "ml.m6id.16xlarge" || "ml.m6id.24xlarge" || "ml.m6id.32xlarge" || "ml.c6id.large" || "ml.c6id.xlarge" || "ml.c6id.2xlarge" || "ml.c6id.4xlarge" || "ml.c6id.8xlarge" || "ml.c6id.12xlarge" || "ml.c6id.16xlarge" || "ml.c6id.24xlarge" || "ml.c6id.32xlarge" || "ml.r6id.large" || "ml.r6id.xlarge" || "ml.r6id.2xlarge" || "ml.r6id.4xlarge" || "ml.r6id.8xlarge" || "ml.r6id.12xlarge" || "ml.r6id.16xlarge" || "ml.r6id.24xlarge" || "ml.r6id.32xlarge", * LifecycleConfigArn: "STRING_VALUE", * }, + * AppLifecycleManagement: { // SpaceAppLifecycleManagement + * IdleSettings: { // SpaceIdleSettings + * IdleTimeoutInMinutes: Number("int"), + * }, + * }, * }, * JupyterLabAppSettings: { // SpaceJupyterLabAppSettings * DefaultResourceSpec: { @@ -103,6 +108,11 @@ export interface CreateSpaceCommandOutput extends CreateSpaceResponse, __Metadat * RepositoryUrl: "STRING_VALUE", // required * }, * ], + * AppLifecycleManagement: { + * IdleSettings: { + * IdleTimeoutInMinutes: Number("int"), + * }, + * }, * }, * AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas", * SpaceStorageSettings: { // SpaceStorageSettings diff --git a/clients/client-sagemaker/src/commands/CreateUserProfileCommand.ts b/clients/client-sagemaker/src/commands/CreateUserProfileCommand.ts index 5b39597565a64..b6f3e5dc63be4 100644 --- a/clients/client-sagemaker/src/commands/CreateUserProfileCommand.ts +++ b/clients/client-sagemaker/src/commands/CreateUserProfileCommand.ts @@ -179,6 +179,14 @@ export interface CreateUserProfileCommandOutput extends CreateUserProfileRespons * LifecycleConfigArns: [ * "STRING_VALUE", * ], + * AppLifecycleManagement: { // AppLifecycleManagement + * IdleSettings: { // IdleSettings + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * }, * JupyterLabAppSettings: { // JupyterLabAppSettings * DefaultResourceSpec: "", @@ -197,6 +205,14 @@ export interface CreateUserProfileCommandOutput extends CreateUserProfileRespons * RepositoryUrl: "STRING_VALUE", // required * }, * ], + * AppLifecycleManagement: { + * IdleSettings: { + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * EmrSettings: { // EmrSettings * AssumableRoleArns: [ // AssumableRoleArns * "STRING_VALUE", diff --git a/clients/client-sagemaker/src/commands/DescribeDomainCommand.ts b/clients/client-sagemaker/src/commands/DescribeDomainCommand.ts index a39ef0a12ba62..e2a4b869aff5a 100644 --- a/clients/client-sagemaker/src/commands/DescribeDomainCommand.ts +++ b/clients/client-sagemaker/src/commands/DescribeDomainCommand.ts @@ -180,6 +180,14 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M * // LifecycleConfigArns: [ * // "STRING_VALUE", * // ], + * // AppLifecycleManagement: { // AppLifecycleManagement + * // IdleSettings: { // IdleSettings + * // LifecycleManagement: "ENABLED" || "DISABLED", + * // IdleTimeoutInMinutes: Number("int"), + * // MinIdleTimeoutInMinutes: Number("int"), + * // MaxIdleTimeoutInMinutes: Number("int"), + * // }, + * // }, * // }, * // JupyterLabAppSettings: { // JupyterLabAppSettings * // DefaultResourceSpec: "", @@ -198,6 +206,14 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M * // RepositoryUrl: "STRING_VALUE", // required * // }, * // ], + * // AppLifecycleManagement: { + * // IdleSettings: { + * // LifecycleManagement: "ENABLED" || "DISABLED", + * // IdleTimeoutInMinutes: Number("int"), + * // MinIdleTimeoutInMinutes: Number("int"), + * // MaxIdleTimeoutInMinutes: Number("int"), + * // }, + * // }, * // EmrSettings: { // EmrSettings * // AssumableRoleArns: [ // AssumableRoleArns * // "STRING_VALUE", @@ -304,6 +320,14 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M * // RepositoryUrl: "STRING_VALUE", // required * // }, * // ], + * // AppLifecycleManagement: { + * // IdleSettings: { + * // LifecycleManagement: "ENABLED" || "DISABLED", + * // IdleTimeoutInMinutes: Number("int"), + * // MinIdleTimeoutInMinutes: Number("int"), + * // MaxIdleTimeoutInMinutes: Number("int"), + * // }, + * // }, * // EmrSettings: { * // AssumableRoleArns: [ * // "STRING_VALUE", diff --git a/clients/client-sagemaker/src/commands/DescribeModelBiasJobDefinitionCommand.ts b/clients/client-sagemaker/src/commands/DescribeModelBiasJobDefinitionCommand.ts index d704b88ebf891..e50f39fcbf311 100644 --- a/clients/client-sagemaker/src/commands/DescribeModelBiasJobDefinitionCommand.ts +++ b/clients/client-sagemaker/src/commands/DescribeModelBiasJobDefinitionCommand.ts @@ -5,7 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DescribeModelBiasJobDefinitionRequest, DescribeModelBiasJobDefinitionResponse } from "../models/models_2"; +import { DescribeModelBiasJobDefinitionRequest, DescribeModelBiasJobDefinitionResponse } from "../models/models_3"; import { de_DescribeModelBiasJobDefinitionCommand, se_DescribeModelBiasJobDefinitionCommand, diff --git a/clients/client-sagemaker/src/commands/DescribeModelCardCommand.ts b/clients/client-sagemaker/src/commands/DescribeModelCardCommand.ts index c76eb2f3cbf67..c665a363c033a 100644 --- a/clients/client-sagemaker/src/commands/DescribeModelCardCommand.ts +++ b/clients/client-sagemaker/src/commands/DescribeModelCardCommand.ts @@ -5,8 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DescribeModelCardRequest } from "../models/models_2"; -import { DescribeModelCardResponse, DescribeModelCardResponseFilterSensitiveLog } from "../models/models_3"; +import { + DescribeModelCardRequest, + DescribeModelCardResponse, + DescribeModelCardResponseFilterSensitiveLog, +} from "../models/models_3"; import { de_DescribeModelCardCommand, se_DescribeModelCardCommand } from "../protocols/Aws_json1_1"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; diff --git a/clients/client-sagemaker/src/commands/DescribeModelCommand.ts b/clients/client-sagemaker/src/commands/DescribeModelCommand.ts index e66a5ff92785a..fbe28453bee83 100644 --- a/clients/client-sagemaker/src/commands/DescribeModelCommand.ts +++ b/clients/client-sagemaker/src/commands/DescribeModelCommand.ts @@ -5,7 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DescribeModelInput, DescribeModelOutput } from "../models/models_2"; +import { DescribeModelInput, DescribeModelOutput } from "../models/models_3"; import { de_DescribeModelCommand, se_DescribeModelCommand } from "../protocols/Aws_json1_1"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; diff --git a/clients/client-sagemaker/src/commands/DescribeSpaceCommand.ts b/clients/client-sagemaker/src/commands/DescribeSpaceCommand.ts index 92580e32b7121..ca5c76fd64eae 100644 --- a/clients/client-sagemaker/src/commands/DescribeSpaceCommand.ts +++ b/clients/client-sagemaker/src/commands/DescribeSpaceCommand.ts @@ -95,6 +95,11 @@ export interface DescribeSpaceCommandOutput extends DescribeSpaceResponse, __Met * // InstanceType: "system" || "ml.t3.micro" || "ml.t3.small" || "ml.t3.medium" || "ml.t3.large" || "ml.t3.xlarge" || "ml.t3.2xlarge" || "ml.m5.large" || "ml.m5.xlarge" || "ml.m5.2xlarge" || "ml.m5.4xlarge" || "ml.m5.8xlarge" || "ml.m5.12xlarge" || "ml.m5.16xlarge" || "ml.m5.24xlarge" || "ml.m5d.large" || "ml.m5d.xlarge" || "ml.m5d.2xlarge" || "ml.m5d.4xlarge" || "ml.m5d.8xlarge" || "ml.m5d.12xlarge" || "ml.m5d.16xlarge" || "ml.m5d.24xlarge" || "ml.c5.large" || "ml.c5.xlarge" || "ml.c5.2xlarge" || "ml.c5.4xlarge" || "ml.c5.9xlarge" || "ml.c5.12xlarge" || "ml.c5.18xlarge" || "ml.c5.24xlarge" || "ml.p3.2xlarge" || "ml.p3.8xlarge" || "ml.p3.16xlarge" || "ml.p3dn.24xlarge" || "ml.g4dn.xlarge" || "ml.g4dn.2xlarge" || "ml.g4dn.4xlarge" || "ml.g4dn.8xlarge" || "ml.g4dn.12xlarge" || "ml.g4dn.16xlarge" || "ml.r5.large" || "ml.r5.xlarge" || "ml.r5.2xlarge" || "ml.r5.4xlarge" || "ml.r5.8xlarge" || "ml.r5.12xlarge" || "ml.r5.16xlarge" || "ml.r5.24xlarge" || "ml.g5.xlarge" || "ml.g5.2xlarge" || "ml.g5.4xlarge" || "ml.g5.8xlarge" || "ml.g5.16xlarge" || "ml.g5.12xlarge" || "ml.g5.24xlarge" || "ml.g5.48xlarge" || "ml.g6.xlarge" || "ml.g6.2xlarge" || "ml.g6.4xlarge" || "ml.g6.8xlarge" || "ml.g6.12xlarge" || "ml.g6.16xlarge" || "ml.g6.24xlarge" || "ml.g6.48xlarge" || "ml.geospatial.interactive" || "ml.p4d.24xlarge" || "ml.p4de.24xlarge" || "ml.trn1.2xlarge" || "ml.trn1.32xlarge" || "ml.trn1n.32xlarge" || "ml.p5.48xlarge" || "ml.m6i.large" || "ml.m6i.xlarge" || "ml.m6i.2xlarge" || "ml.m6i.4xlarge" || "ml.m6i.8xlarge" || "ml.m6i.12xlarge" || "ml.m6i.16xlarge" || "ml.m6i.24xlarge" || "ml.m6i.32xlarge" || "ml.m7i.large" || "ml.m7i.xlarge" || "ml.m7i.2xlarge" || "ml.m7i.4xlarge" || "ml.m7i.8xlarge" || "ml.m7i.12xlarge" || "ml.m7i.16xlarge" || "ml.m7i.24xlarge" || "ml.m7i.48xlarge" || "ml.c6i.large" || "ml.c6i.xlarge" || "ml.c6i.2xlarge" || "ml.c6i.4xlarge" || "ml.c6i.8xlarge" || "ml.c6i.12xlarge" || "ml.c6i.16xlarge" || "ml.c6i.24xlarge" || "ml.c6i.32xlarge" || "ml.c7i.large" || "ml.c7i.xlarge" || "ml.c7i.2xlarge" || "ml.c7i.4xlarge" || "ml.c7i.8xlarge" || "ml.c7i.12xlarge" || "ml.c7i.16xlarge" || "ml.c7i.24xlarge" || "ml.c7i.48xlarge" || "ml.r6i.large" || "ml.r6i.xlarge" || "ml.r6i.2xlarge" || "ml.r6i.4xlarge" || "ml.r6i.8xlarge" || "ml.r6i.12xlarge" || "ml.r6i.16xlarge" || "ml.r6i.24xlarge" || "ml.r6i.32xlarge" || "ml.r7i.large" || "ml.r7i.xlarge" || "ml.r7i.2xlarge" || "ml.r7i.4xlarge" || "ml.r7i.8xlarge" || "ml.r7i.12xlarge" || "ml.r7i.16xlarge" || "ml.r7i.24xlarge" || "ml.r7i.48xlarge" || "ml.m6id.large" || "ml.m6id.xlarge" || "ml.m6id.2xlarge" || "ml.m6id.4xlarge" || "ml.m6id.8xlarge" || "ml.m6id.12xlarge" || "ml.m6id.16xlarge" || "ml.m6id.24xlarge" || "ml.m6id.32xlarge" || "ml.c6id.large" || "ml.c6id.xlarge" || "ml.c6id.2xlarge" || "ml.c6id.4xlarge" || "ml.c6id.8xlarge" || "ml.c6id.12xlarge" || "ml.c6id.16xlarge" || "ml.c6id.24xlarge" || "ml.c6id.32xlarge" || "ml.r6id.large" || "ml.r6id.xlarge" || "ml.r6id.2xlarge" || "ml.r6id.4xlarge" || "ml.r6id.8xlarge" || "ml.r6id.12xlarge" || "ml.r6id.16xlarge" || "ml.r6id.24xlarge" || "ml.r6id.32xlarge", * // LifecycleConfigArn: "STRING_VALUE", * // }, + * // AppLifecycleManagement: { // SpaceAppLifecycleManagement + * // IdleSettings: { // SpaceIdleSettings + * // IdleTimeoutInMinutes: Number("int"), + * // }, + * // }, * // }, * // JupyterLabAppSettings: { // SpaceJupyterLabAppSettings * // DefaultResourceSpec: { @@ -109,6 +114,11 @@ export interface DescribeSpaceCommandOutput extends DescribeSpaceResponse, __Met * // RepositoryUrl: "STRING_VALUE", // required * // }, * // ], + * // AppLifecycleManagement: { + * // IdleSettings: { + * // IdleTimeoutInMinutes: Number("int"), + * // }, + * // }, * // }, * // AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas", * // SpaceStorageSettings: { // SpaceStorageSettings diff --git a/clients/client-sagemaker/src/commands/DescribeUserProfileCommand.ts b/clients/client-sagemaker/src/commands/DescribeUserProfileCommand.ts index abe44cf303091..b82d9ed098603 100644 --- a/clients/client-sagemaker/src/commands/DescribeUserProfileCommand.ts +++ b/clients/client-sagemaker/src/commands/DescribeUserProfileCommand.ts @@ -179,6 +179,14 @@ export interface DescribeUserProfileCommandOutput extends DescribeUserProfileRes * // LifecycleConfigArns: [ * // "STRING_VALUE", * // ], + * // AppLifecycleManagement: { // AppLifecycleManagement + * // IdleSettings: { // IdleSettings + * // LifecycleManagement: "ENABLED" || "DISABLED", + * // IdleTimeoutInMinutes: Number("int"), + * // MinIdleTimeoutInMinutes: Number("int"), + * // MaxIdleTimeoutInMinutes: Number("int"), + * // }, + * // }, * // }, * // JupyterLabAppSettings: { // JupyterLabAppSettings * // DefaultResourceSpec: "", @@ -197,6 +205,14 @@ export interface DescribeUserProfileCommandOutput extends DescribeUserProfileRes * // RepositoryUrl: "STRING_VALUE", // required * // }, * // ], + * // AppLifecycleManagement: { + * // IdleSettings: { + * // LifecycleManagement: "ENABLED" || "DISABLED", + * // IdleTimeoutInMinutes: Number("int"), + * // MinIdleTimeoutInMinutes: Number("int"), + * // MaxIdleTimeoutInMinutes: Number("int"), + * // }, + * // }, * // EmrSettings: { // EmrSettings * // AssumableRoleArns: [ // AssumableRoleArns * // "STRING_VALUE", diff --git a/clients/client-sagemaker/src/commands/ListModelCardsCommand.ts b/clients/client-sagemaker/src/commands/ListModelCardsCommand.ts index b94f7d6456ef4..e3835c1f88e20 100644 --- a/clients/client-sagemaker/src/commands/ListModelCardsCommand.ts +++ b/clients/client-sagemaker/src/commands/ListModelCardsCommand.ts @@ -5,7 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { ListModelCardsRequest, ListModelCardsResponse } from "../models/models_3"; +import { ListModelCardsRequest, ListModelCardsResponse } from "../models/models_4"; import { de_ListModelCardsCommand, se_ListModelCardsCommand } from "../protocols/Aws_json1_1"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; diff --git a/clients/client-sagemaker/src/commands/UpdateDomainCommand.ts b/clients/client-sagemaker/src/commands/UpdateDomainCommand.ts index c7c7df0682a03..70da982fb89c6 100644 --- a/clients/client-sagemaker/src/commands/UpdateDomainCommand.ts +++ b/clients/client-sagemaker/src/commands/UpdateDomainCommand.ts @@ -164,6 +164,14 @@ export interface UpdateDomainCommandOutput extends UpdateDomainResponse, __Metad * LifecycleConfigArns: [ * "STRING_VALUE", * ], + * AppLifecycleManagement: { // AppLifecycleManagement + * IdleSettings: { // IdleSettings + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * }, * JupyterLabAppSettings: { // JupyterLabAppSettings * DefaultResourceSpec: "", @@ -182,6 +190,14 @@ export interface UpdateDomainCommandOutput extends UpdateDomainResponse, __Metad * RepositoryUrl: "STRING_VALUE", // required * }, * ], + * AppLifecycleManagement: { + * IdleSettings: { + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * EmrSettings: { // EmrSettings * AssumableRoleArns: [ // AssumableRoleArns * "STRING_VALUE", @@ -280,6 +296,14 @@ export interface UpdateDomainCommandOutput extends UpdateDomainResponse, __Metad * RepositoryUrl: "STRING_VALUE", // required * }, * ], + * AppLifecycleManagement: { + * IdleSettings: { + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * EmrSettings: { * AssumableRoleArns: [ * "STRING_VALUE", diff --git a/clients/client-sagemaker/src/commands/UpdateSpaceCommand.ts b/clients/client-sagemaker/src/commands/UpdateSpaceCommand.ts index 10bd019138d28..561ff3232d224 100644 --- a/clients/client-sagemaker/src/commands/UpdateSpaceCommand.ts +++ b/clients/client-sagemaker/src/commands/UpdateSpaceCommand.ts @@ -83,6 +83,11 @@ export interface UpdateSpaceCommandOutput extends UpdateSpaceResponse, __Metadat * InstanceType: "system" || "ml.t3.micro" || "ml.t3.small" || "ml.t3.medium" || "ml.t3.large" || "ml.t3.xlarge" || "ml.t3.2xlarge" || "ml.m5.large" || "ml.m5.xlarge" || "ml.m5.2xlarge" || "ml.m5.4xlarge" || "ml.m5.8xlarge" || "ml.m5.12xlarge" || "ml.m5.16xlarge" || "ml.m5.24xlarge" || "ml.m5d.large" || "ml.m5d.xlarge" || "ml.m5d.2xlarge" || "ml.m5d.4xlarge" || "ml.m5d.8xlarge" || "ml.m5d.12xlarge" || "ml.m5d.16xlarge" || "ml.m5d.24xlarge" || "ml.c5.large" || "ml.c5.xlarge" || "ml.c5.2xlarge" || "ml.c5.4xlarge" || "ml.c5.9xlarge" || "ml.c5.12xlarge" || "ml.c5.18xlarge" || "ml.c5.24xlarge" || "ml.p3.2xlarge" || "ml.p3.8xlarge" || "ml.p3.16xlarge" || "ml.p3dn.24xlarge" || "ml.g4dn.xlarge" || "ml.g4dn.2xlarge" || "ml.g4dn.4xlarge" || "ml.g4dn.8xlarge" || "ml.g4dn.12xlarge" || "ml.g4dn.16xlarge" || "ml.r5.large" || "ml.r5.xlarge" || "ml.r5.2xlarge" || "ml.r5.4xlarge" || "ml.r5.8xlarge" || "ml.r5.12xlarge" || "ml.r5.16xlarge" || "ml.r5.24xlarge" || "ml.g5.xlarge" || "ml.g5.2xlarge" || "ml.g5.4xlarge" || "ml.g5.8xlarge" || "ml.g5.16xlarge" || "ml.g5.12xlarge" || "ml.g5.24xlarge" || "ml.g5.48xlarge" || "ml.g6.xlarge" || "ml.g6.2xlarge" || "ml.g6.4xlarge" || "ml.g6.8xlarge" || "ml.g6.12xlarge" || "ml.g6.16xlarge" || "ml.g6.24xlarge" || "ml.g6.48xlarge" || "ml.geospatial.interactive" || "ml.p4d.24xlarge" || "ml.p4de.24xlarge" || "ml.trn1.2xlarge" || "ml.trn1.32xlarge" || "ml.trn1n.32xlarge" || "ml.p5.48xlarge" || "ml.m6i.large" || "ml.m6i.xlarge" || "ml.m6i.2xlarge" || "ml.m6i.4xlarge" || "ml.m6i.8xlarge" || "ml.m6i.12xlarge" || "ml.m6i.16xlarge" || "ml.m6i.24xlarge" || "ml.m6i.32xlarge" || "ml.m7i.large" || "ml.m7i.xlarge" || "ml.m7i.2xlarge" || "ml.m7i.4xlarge" || "ml.m7i.8xlarge" || "ml.m7i.12xlarge" || "ml.m7i.16xlarge" || "ml.m7i.24xlarge" || "ml.m7i.48xlarge" || "ml.c6i.large" || "ml.c6i.xlarge" || "ml.c6i.2xlarge" || "ml.c6i.4xlarge" || "ml.c6i.8xlarge" || "ml.c6i.12xlarge" || "ml.c6i.16xlarge" || "ml.c6i.24xlarge" || "ml.c6i.32xlarge" || "ml.c7i.large" || "ml.c7i.xlarge" || "ml.c7i.2xlarge" || "ml.c7i.4xlarge" || "ml.c7i.8xlarge" || "ml.c7i.12xlarge" || "ml.c7i.16xlarge" || "ml.c7i.24xlarge" || "ml.c7i.48xlarge" || "ml.r6i.large" || "ml.r6i.xlarge" || "ml.r6i.2xlarge" || "ml.r6i.4xlarge" || "ml.r6i.8xlarge" || "ml.r6i.12xlarge" || "ml.r6i.16xlarge" || "ml.r6i.24xlarge" || "ml.r6i.32xlarge" || "ml.r7i.large" || "ml.r7i.xlarge" || "ml.r7i.2xlarge" || "ml.r7i.4xlarge" || "ml.r7i.8xlarge" || "ml.r7i.12xlarge" || "ml.r7i.16xlarge" || "ml.r7i.24xlarge" || "ml.r7i.48xlarge" || "ml.m6id.large" || "ml.m6id.xlarge" || "ml.m6id.2xlarge" || "ml.m6id.4xlarge" || "ml.m6id.8xlarge" || "ml.m6id.12xlarge" || "ml.m6id.16xlarge" || "ml.m6id.24xlarge" || "ml.m6id.32xlarge" || "ml.c6id.large" || "ml.c6id.xlarge" || "ml.c6id.2xlarge" || "ml.c6id.4xlarge" || "ml.c6id.8xlarge" || "ml.c6id.12xlarge" || "ml.c6id.16xlarge" || "ml.c6id.24xlarge" || "ml.c6id.32xlarge" || "ml.r6id.large" || "ml.r6id.xlarge" || "ml.r6id.2xlarge" || "ml.r6id.4xlarge" || "ml.r6id.8xlarge" || "ml.r6id.12xlarge" || "ml.r6id.16xlarge" || "ml.r6id.24xlarge" || "ml.r6id.32xlarge", * LifecycleConfigArn: "STRING_VALUE", * }, + * AppLifecycleManagement: { // SpaceAppLifecycleManagement + * IdleSettings: { // SpaceIdleSettings + * IdleTimeoutInMinutes: Number("int"), + * }, + * }, * }, * JupyterLabAppSettings: { // SpaceJupyterLabAppSettings * DefaultResourceSpec: { @@ -97,6 +102,11 @@ export interface UpdateSpaceCommandOutput extends UpdateSpaceResponse, __Metadat * RepositoryUrl: "STRING_VALUE", // required * }, * ], + * AppLifecycleManagement: { + * IdleSettings: { + * IdleTimeoutInMinutes: Number("int"), + * }, + * }, * }, * AppType: "JupyterServer" || "KernelGateway" || "DetailedProfiler" || "TensorBoard" || "CodeEditor" || "JupyterLab" || "RStudioServerPro" || "RSessionGateway" || "Canvas", * SpaceStorageSettings: { // SpaceStorageSettings diff --git a/clients/client-sagemaker/src/commands/UpdateUserProfileCommand.ts b/clients/client-sagemaker/src/commands/UpdateUserProfileCommand.ts index 90170fb6c3baa..07e89dc109cf0 100644 --- a/clients/client-sagemaker/src/commands/UpdateUserProfileCommand.ts +++ b/clients/client-sagemaker/src/commands/UpdateUserProfileCommand.ts @@ -165,6 +165,14 @@ export interface UpdateUserProfileCommandOutput extends UpdateUserProfileRespons * LifecycleConfigArns: [ * "STRING_VALUE", * ], + * AppLifecycleManagement: { // AppLifecycleManagement + * IdleSettings: { // IdleSettings + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * }, * JupyterLabAppSettings: { // JupyterLabAppSettings * DefaultResourceSpec: "", @@ -183,6 +191,14 @@ export interface UpdateUserProfileCommandOutput extends UpdateUserProfileRespons * RepositoryUrl: "STRING_VALUE", // required * }, * ], + * AppLifecycleManagement: { + * IdleSettings: { + * LifecycleManagement: "ENABLED" || "DISABLED", + * IdleTimeoutInMinutes: Number("int"), + * MinIdleTimeoutInMinutes: Number("int"), + * MaxIdleTimeoutInMinutes: Number("int"), + * }, + * }, * EmrSettings: { // EmrSettings * AssumableRoleArns: [ // AssumableRoleArns * "STRING_VALUE", diff --git a/clients/client-sagemaker/src/models/models_0.ts b/clients/client-sagemaker/src/models/models_0.ts index 7ff7872716e03..9d2137100c89a 100644 --- a/clients/client-sagemaker/src/models/models_0.ts +++ b/clients/client-sagemaker/src/models/models_0.ts @@ -4682,6 +4682,62 @@ export const AppImageConfigSortKey = { */ export type AppImageConfigSortKey = (typeof AppImageConfigSortKey)[keyof typeof AppImageConfigSortKey]; +/** + * @public + * @enum + */ +export const LifecycleManagement = { + Disabled: "DISABLED", + Enabled: "ENABLED", +} as const; + +/** + * @public + */ +export type LifecycleManagement = (typeof LifecycleManagement)[keyof typeof LifecycleManagement]; + +/** + *

Settings related to idle shutdown of Studio applications.

+ * @public + */ +export interface IdleSettings { + /** + *

Indicates whether idle shutdown is activated for the application type.

+ * @public + */ + LifecycleManagement?: LifecycleManagement; + + /** + *

The time that SageMaker waits after the application becomes idle before shutting it down.

+ * @public + */ + IdleTimeoutInMinutes?: number; + + /** + *

The minimum value in minutes that custom idle shutdown can be set to by the user.

+ * @public + */ + MinIdleTimeoutInMinutes?: number; + + /** + *

The maximum value in minutes that custom idle shutdown can be set to by the user.

+ * @public + */ + MaxIdleTimeoutInMinutes?: number; +} + +/** + *

Settings that are used to configure and manage the lifecycle of Amazon SageMaker Studio applications.

+ * @public + */ +export interface AppLifecycleManagement { + /** + *

Settings related to idle shutdown of Studio applications.

+ * @public + */ + IdleSettings?: IdleSettings; +} + /** * @public * @enum @@ -9623,6 +9679,13 @@ export interface CodeEditorAppSettings { * @public */ LifecycleConfigArns?: string[]; + + /** + *

Settings that are used to configure and manage the lifecycle of CodeEditor applications.

+ *

+ * @public + */ + AppLifecycleManagement?: AppLifecycleManagement; } /** @@ -11172,123 +11235,3 @@ export interface CreateArtifactRequest { */ Tags?: Tag[]; } - -/** - * @public - */ -export interface CreateArtifactResponse { - /** - *

The Amazon Resource Name (ARN) of the artifact.

- * @public - */ - ArtifactArn?: string; -} - -/** - *

Specifies how to generate the endpoint name for an automatic one-click Autopilot model - * deployment.

- * @public - */ -export interface ModelDeployConfig { - /** - *

Set to True to automatically generate an endpoint name for a one-click - * Autopilot model deployment; set to False otherwise. The default value is - * False.

- * - *

If you set AutoGenerateEndpointName to True, do not specify - * the EndpointName; otherwise a 400 error is thrown.

- *
- * @public - */ - AutoGenerateEndpointName?: boolean; - - /** - *

Specifies the endpoint name to use for a one-click Autopilot model deployment if the - * endpoint name is not generated automatically.

- * - *

Specify the EndpointName if and only if you set - * AutoGenerateEndpointName to False; otherwise a 400 error is - * thrown.

- *
- * @public - */ - EndpointName?: string; -} - -/** - * @public - */ -export interface CreateAutoMLJobRequest { - /** - *

Identifies an Autopilot job. The name must be unique to your account and is case - * insensitive.

- * @public - */ - AutoMLJobName: string | undefined; - - /** - *

An array of channel objects that describes the input data and its location. Each channel - * is a named input source. Similar to InputDataConfig supported by HyperParameterTrainingJobDefinition. Format(s) supported: CSV, Parquet. A - * minimum of 500 rows is required for the training dataset. There is not a minimum number of - * rows required for the validation dataset.

- * @public - */ - InputDataConfig: AutoMLChannel[] | undefined; - - /** - *

Provides information about encryption and the Amazon S3 output path needed to - * store artifacts from an AutoML job. Format(s) supported: CSV.

- * @public - */ - OutputDataConfig: AutoMLOutputDataConfig | undefined; - - /** - *

Defines the type of supervised learning problem available for the candidates. For more - * information, see - * SageMaker Autopilot problem types.

- * @public - */ - ProblemType?: ProblemType; - - /** - *

Specifies a metric to minimize or maximize as the objective of a job. If not specified, - * the default objective metric depends on the problem type. See AutoMLJobObjective for the default values.

- * @public - */ - AutoMLJobObjective?: AutoMLJobObjective; - - /** - *

A collection of settings used to configure an AutoML job.

- * @public - */ - AutoMLJobConfig?: AutoMLJobConfig; - - /** - *

The ARN of the role that is used to access the data.

- * @public - */ - RoleArn: string | undefined; - - /** - *

Generates possible candidates without training the models. A candidate is a combination - * of data preprocessors, algorithms, and algorithm parameter settings.

- * @public - */ - GenerateCandidateDefinitionsOnly?: boolean; - - /** - *

An array of key-value pairs. You can use tags to categorize your Amazon Web Services - * resources in different ways, for example, by purpose, owner, or environment. For more - * information, see Tagging Amazon Web ServicesResources. Tag keys must be unique per - * resource.

- * @public - */ - Tags?: Tag[]; - - /** - *

Specifies how to generate the endpoint name for an automatic one-click Autopilot model - * deployment.

- * @public - */ - ModelDeployConfig?: ModelDeployConfig; -} diff --git a/clients/client-sagemaker/src/models/models_1.ts b/clients/client-sagemaker/src/models/models_1.ts index 17854f2ca8434..4c4be0e4809da 100644 --- a/clients/client-sagemaker/src/models/models_1.ts +++ b/clients/client-sagemaker/src/models/models_1.ts @@ -5,14 +5,17 @@ import { AdditionalInferenceSpecificationDefinition, AmazonQSettings, AnnotationConsolidationConfig, + AppLifecycleManagement, AppNetworkAccessType, AppSecurityGroupManagement, AppType, AsyncInferenceConfig, AuthMode, + AutoMLChannel, AutoMLComputeConfig, AutoMLDataSplitConfig, AutoMLJobChannel, + AutoMLJobConfig, AutoMLJobObjective, AutoMLOutputDataConfig, AutoMLProblemTypeConfig, @@ -56,8 +59,8 @@ import { MetricsSource, ModelApprovalStatus, ModelDataSource, - ModelDeployConfig, OutputDataConfig, + ProblemType, ProcessingS3DataDistributionType, ProcessingS3InputMode, ProductionVariantInstanceType, @@ -75,6 +78,126 @@ import { VpcConfig, } from "./models_0"; +/** + * @public + */ +export interface CreateArtifactResponse { + /** + *

The Amazon Resource Name (ARN) of the artifact.

+ * @public + */ + ArtifactArn?: string; +} + +/** + *

Specifies how to generate the endpoint name for an automatic one-click Autopilot model + * deployment.

+ * @public + */ +export interface ModelDeployConfig { + /** + *

Set to True to automatically generate an endpoint name for a one-click + * Autopilot model deployment; set to False otherwise. The default value is + * False.

+ * + *

If you set AutoGenerateEndpointName to True, do not specify + * the EndpointName; otherwise a 400 error is thrown.

+ *
+ * @public + */ + AutoGenerateEndpointName?: boolean; + + /** + *

Specifies the endpoint name to use for a one-click Autopilot model deployment if the + * endpoint name is not generated automatically.

+ * + *

Specify the EndpointName if and only if you set + * AutoGenerateEndpointName to False; otherwise a 400 error is + * thrown.

+ *
+ * @public + */ + EndpointName?: string; +} + +/** + * @public + */ +export interface CreateAutoMLJobRequest { + /** + *

Identifies an Autopilot job. The name must be unique to your account and is case + * insensitive.

+ * @public + */ + AutoMLJobName: string | undefined; + + /** + *

An array of channel objects that describes the input data and its location. Each channel + * is a named input source. Similar to InputDataConfig supported by HyperParameterTrainingJobDefinition. Format(s) supported: CSV, Parquet. A + * minimum of 500 rows is required for the training dataset. There is not a minimum number of + * rows required for the validation dataset.

+ * @public + */ + InputDataConfig: AutoMLChannel[] | undefined; + + /** + *

Provides information about encryption and the Amazon S3 output path needed to + * store artifacts from an AutoML job. Format(s) supported: CSV.

+ * @public + */ + OutputDataConfig: AutoMLOutputDataConfig | undefined; + + /** + *

Defines the type of supervised learning problem available for the candidates. For more + * information, see + * SageMaker Autopilot problem types.

+ * @public + */ + ProblemType?: ProblemType; + + /** + *

Specifies a metric to minimize or maximize as the objective of a job. If not specified, + * the default objective metric depends on the problem type. See AutoMLJobObjective for the default values.

+ * @public + */ + AutoMLJobObjective?: AutoMLJobObjective; + + /** + *

A collection of settings used to configure an AutoML job.

+ * @public + */ + AutoMLJobConfig?: AutoMLJobConfig; + + /** + *

The ARN of the role that is used to access the data.

+ * @public + */ + RoleArn: string | undefined; + + /** + *

Generates possible candidates without training the models. A candidate is a combination + * of data preprocessors, algorithms, and algorithm parameter settings.

+ * @public + */ + GenerateCandidateDefinitionsOnly?: boolean; + + /** + *

An array of key-value pairs. You can use tags to categorize your Amazon Web Services + * resources in different ways, for example, by purpose, owner, or environment. For more + * information, see Tagging Amazon Web ServicesResources. Tag keys must be unique per + * resource.

+ * @public + */ + Tags?: Tag[]; + + /** + *

Specifies how to generate the endpoint name for an automatic one-click Autopilot model + * deployment.

+ * @public + */ + ModelDeployConfig?: ModelDeployConfig; +} + /** * @public */ @@ -2034,6 +2157,12 @@ export interface JupyterLabAppSettings { */ CodeRepositories?: CodeRepository[]; + /** + *

Indicates whether idle shutdown is activated for JupyterLab applications.

+ * @public + */ + AppLifecycleManagement?: AppLifecycleManagement; + /** *

The configuration parameters that specify the IAM roles assumed by the execution role of * SageMaker (assumable roles) and the cluster instances or job execution environments @@ -12788,52 +12917,6 @@ export interface ExperimentConfig { RunName?: string; } -/** - * @public - * @enum - */ -export const DataDistributionType = { - FULLYREPLICATED: "FullyReplicated", - SHARDEDBYS3KEY: "ShardedByS3Key", -} as const; - -/** - * @public - */ -export type DataDistributionType = (typeof DataDistributionType)[keyof typeof DataDistributionType]; - -/** - * @public - * @enum - */ -export const InputMode = { - FILE: "File", - PIPE: "Pipe", -} as const; - -/** - * @public - */ -export type InputMode = (typeof InputMode)[keyof typeof InputMode]; - -/** - * @public - * @enum - */ -export const RedshiftResultCompressionType = { - BZIP2: "BZIP2", - GZIP: "GZIP", - NONE: "None", - SNAPPY: "SNAPPY", - ZSTD: "ZSTD", -} as const; - -/** - * @public - */ -export type RedshiftResultCompressionType = - (typeof RedshiftResultCompressionType)[keyof typeof RedshiftResultCompressionType]; - /** * @internal */ diff --git a/clients/client-sagemaker/src/models/models_2.ts b/clients/client-sagemaker/src/models/models_2.ts index 78e0ccab8d9d9..3f72d4c21c29e 100644 --- a/clients/client-sagemaker/src/models/models_2.ts +++ b/clients/client-sagemaker/src/models/models_2.ts @@ -49,7 +49,6 @@ import { CognitoMemberDefinition, CollectionConfiguration, CompilationJobStatus, - ContainerDefinition, ContextSource, GitConfig, HyperParameterTuningJobObjectiveType, @@ -57,7 +56,6 @@ import { JupyterLabAppImageConfig, KernelGatewayImageConfig, MetadataProperties, - ModelDeployConfig, ObjectiveStatus, OutputDataConfig, ProblemType, @@ -78,7 +76,6 @@ import { import { DataCaptureConfig, - DataDistributionType, DataQualityAppSpecification, DataQualityBaselineConfig, DataQualityJobInput, @@ -106,12 +103,10 @@ import { HyperParameterTuningJobWarmStartConfig, InferenceComponentComputeResourceRequirements, InferenceComponentStartupParameters, - InferenceExecutionConfig, InferenceExperimentDataStorageConfig, InferenceExperimentSchedule, InferenceExperimentType, InputConfig, - InputMode, JobType, JupyterServerAppSettings, KernelGatewayAppSettings, @@ -119,9 +114,7 @@ import { LabelingJobInputConfig, LabelingJobOutputConfig, LabelingJobStoppingConditions, - ModelBiasAppSpecification, - ModelBiasBaselineConfig, - ModelBiasJobInput, + ModelDeployConfig, ModelInfrastructureConfig, MonitoringNetworkConfig, MonitoringOutputConfig, @@ -143,7 +136,6 @@ import { RecommendationJobInputConfig, RecommendationJobStoppingConditions, RecommendationJobType, - RedshiftResultCompressionType, RetryStrategy, ShadowModeConfig, ThroughputMode, @@ -152,6 +144,52 @@ import { VendorGuidance, } from "./models_1"; +/** + * @public + * @enum + */ +export const DataDistributionType = { + FULLYREPLICATED: "FullyReplicated", + SHARDEDBYS3KEY: "ShardedByS3Key", +} as const; + +/** + * @public + */ +export type DataDistributionType = (typeof DataDistributionType)[keyof typeof DataDistributionType]; + +/** + * @public + * @enum + */ +export const InputMode = { + FILE: "File", + PIPE: "Pipe", +} as const; + +/** + * @public + */ +export type InputMode = (typeof InputMode)[keyof typeof InputMode]; + +/** + * @public + * @enum + */ +export const RedshiftResultCompressionType = { + BZIP2: "BZIP2", + GZIP: "GZIP", + NONE: "None", + SNAPPY: "SNAPPY", + ZSTD: "ZSTD", +} as const; + +/** + * @public + */ +export type RedshiftResultCompressionType = + (typeof RedshiftResultCompressionType)[keyof typeof RedshiftResultCompressionType]; + /** * @public * @enum @@ -790,6 +828,30 @@ export interface OwnershipSettings { OwnerUserProfileName: string | undefined; } +/** + *

Settings related to idle shutdown of Studio applications in a space.

+ * @public + */ +export interface SpaceIdleSettings { + /** + *

The time that SageMaker waits after the application becomes idle before shutting it down.

+ * @public + */ + IdleTimeoutInMinutes?: number; +} + +/** + *

Settings that are used to configure and manage the lifecycle of Amazon SageMaker Studio applications in a space.

+ * @public + */ +export interface SpaceAppLifecycleManagement { + /** + *

Settings related to idle shutdown of Studio applications.

+ * @public + */ + IdleSettings?: SpaceIdleSettings; +} + /** *

The application settings for a Code Editor space.

* @public @@ -801,6 +863,12 @@ export interface SpaceCodeEditorAppSettings { * @public */ DefaultResourceSpec?: ResourceSpec; + + /** + *

Settings that are used to configure and manage the lifecycle of CodeEditor applications in a space.

+ * @public + */ + AppLifecycleManagement?: SpaceAppLifecycleManagement; } /** @@ -873,6 +941,12 @@ export interface SpaceJupyterLabAppSettings { * @public */ CodeRepositories?: CodeRepository[]; + + /** + *

Settings that are used to configure and manage the lifecycle of JupyterLab applications in a space.

+ * @public + */ + AppLifecycleManagement?: SpaceAppLifecycleManagement; } /** @@ -9271,190 +9345,6 @@ export interface DescribeMlflowTrackingServerResponse { LastModifiedBy?: UserContext; } -/** - * @public - */ -export interface DescribeModelInput { - /** - *

The name of the model.

- * @public - */ - ModelName: string | undefined; -} - -/** - * @public - */ -export interface DescribeModelOutput { - /** - *

Name of the SageMaker model.

- * @public - */ - ModelName: string | undefined; - - /** - *

The location of the primary inference code, associated artifacts, and custom - * environment map that the inference code uses when it is deployed in production. - *

- * @public - */ - PrimaryContainer?: ContainerDefinition; - - /** - *

The containers in the inference pipeline.

- * @public - */ - Containers?: ContainerDefinition[]; - - /** - *

Specifies details of how containers in a multi-container endpoint are called.

- * @public - */ - InferenceExecutionConfig?: InferenceExecutionConfig; - - /** - *

The Amazon Resource Name (ARN) of the IAM role that you specified for the - * model.

- * @public - */ - ExecutionRoleArn?: string; - - /** - *

A VpcConfig object that specifies the VPC that this model has access to. For - * more information, see Protect Endpoints by Using an Amazon Virtual - * Private Cloud - *

- * @public - */ - VpcConfig?: VpcConfig; - - /** - *

A timestamp that shows when the model was created.

- * @public - */ - CreationTime: Date | undefined; - - /** - *

The Amazon Resource Name (ARN) of the model.

- * @public - */ - ModelArn: string | undefined; - - /** - *

If True, no inbound or outbound network calls can be made to or from the - * model container.

- * @public - */ - EnableNetworkIsolation?: boolean; - - /** - *

A set of recommended deployment configurations for the model.

- * @public - */ - DeploymentRecommendation?: DeploymentRecommendation; -} - -/** - * @public - */ -export interface DescribeModelBiasJobDefinitionRequest { - /** - *

The name of the model bias job definition. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

- * @public - */ - JobDefinitionName: string | undefined; -} - -/** - * @public - */ -export interface DescribeModelBiasJobDefinitionResponse { - /** - *

The Amazon Resource Name (ARN) of the model bias job.

- * @public - */ - JobDefinitionArn: string | undefined; - - /** - *

The name of the bias job definition. The name must be unique within an Amazon Web Services - * Region in the Amazon Web Services account.

- * @public - */ - JobDefinitionName: string | undefined; - - /** - *

The time at which the model bias job was created.

- * @public - */ - CreationTime: Date | undefined; - - /** - *

The baseline configuration for a model bias job.

- * @public - */ - ModelBiasBaselineConfig?: ModelBiasBaselineConfig; - - /** - *

Configures the model bias job to run a specified Docker container image.

- * @public - */ - ModelBiasAppSpecification: ModelBiasAppSpecification | undefined; - - /** - *

Inputs for the model bias job.

- * @public - */ - ModelBiasJobInput: ModelBiasJobInput | undefined; - - /** - *

The output configuration for monitoring jobs.

- * @public - */ - ModelBiasJobOutputConfig: MonitoringOutputConfig | undefined; - - /** - *

Identifies the resources to deploy for a monitoring job.

- * @public - */ - JobResources: MonitoringResources | undefined; - - /** - *

Networking options for a model bias job.

- * @public - */ - NetworkConfig?: MonitoringNetworkConfig; - - /** - *

The Amazon Resource Name (ARN) of the IAM role that has read permission to the - * input data location and write permission to the output data location in Amazon S3.

- * @public - */ - RoleArn: string | undefined; - - /** - *

A time limit for how long the monitoring job is allowed to run before stopping.

- * @public - */ - StoppingCondition?: MonitoringStoppingCondition; -} - -/** - * @public - */ -export interface DescribeModelCardRequest { - /** - *

The name or Amazon Resource Name (ARN) of the model card to describe.

- * @public - */ - ModelCardName: string | undefined; - - /** - *

The version of the model card to describe. If a version is not provided, then the latest version of the model card is described.

- * @public - */ - ModelCardVersion?: number; -} - /** * @internal */ diff --git a/clients/client-sagemaker/src/models/models_3.ts b/clients/client-sagemaker/src/models/models_3.ts index 5a14977573ac8..2da7db7f2eaf2 100644 --- a/clients/client-sagemaker/src/models/models_3.ts +++ b/clients/client-sagemaker/src/models/models_3.ts @@ -37,6 +37,7 @@ import { CognitoConfig, CompilationJobStatus, CompilationJobSummary, + ContainerDefinition, ContextSummary, InferenceSpecification, MetadataProperties, @@ -69,10 +70,14 @@ import { HyperParameterTuningJobConfig, HyperParameterTuningJobStrategyType, HyperParameterTuningJobWarmStartConfig, + InferenceExecutionConfig, InferenceExperimentSchedule, InferenceExperimentType, InstanceMetadataServiceConfiguration, LabelingJobInputConfig, + ModelBiasAppSpecification, + ModelBiasBaselineConfig, + ModelBiasJobInput, ModelCardExportOutputConfig, ModelCardSecurityConfig, ModelCardStatus, @@ -120,6 +125,7 @@ import { DebugHookConfig, DebugRuleConfiguration, DebugRuleEvaluationStatus, + DeploymentRecommendation, DomainStatus, EdgePackagingJobStatus, EndpointOutputConfiguration, @@ -182,6 +188,190 @@ import { WorkerAccessConfiguration, } from "./models_2"; +/** + * @public + */ +export interface DescribeModelInput { + /** + *

The name of the model.

+ * @public + */ + ModelName: string | undefined; +} + +/** + * @public + */ +export interface DescribeModelOutput { + /** + *

Name of the SageMaker model.

+ * @public + */ + ModelName: string | undefined; + + /** + *

The location of the primary inference code, associated artifacts, and custom + * environment map that the inference code uses when it is deployed in production. + *

+ * @public + */ + PrimaryContainer?: ContainerDefinition; + + /** + *

The containers in the inference pipeline.

+ * @public + */ + Containers?: ContainerDefinition[]; + + /** + *

Specifies details of how containers in a multi-container endpoint are called.

+ * @public + */ + InferenceExecutionConfig?: InferenceExecutionConfig; + + /** + *

The Amazon Resource Name (ARN) of the IAM role that you specified for the + * model.

+ * @public + */ + ExecutionRoleArn?: string; + + /** + *

A VpcConfig object that specifies the VPC that this model has access to. For + * more information, see Protect Endpoints by Using an Amazon Virtual + * Private Cloud + *

+ * @public + */ + VpcConfig?: VpcConfig; + + /** + *

A timestamp that shows when the model was created.

+ * @public + */ + CreationTime: Date | undefined; + + /** + *

The Amazon Resource Name (ARN) of the model.

+ * @public + */ + ModelArn: string | undefined; + + /** + *

If True, no inbound or outbound network calls can be made to or from the + * model container.

+ * @public + */ + EnableNetworkIsolation?: boolean; + + /** + *

A set of recommended deployment configurations for the model.

+ * @public + */ + DeploymentRecommendation?: DeploymentRecommendation; +} + +/** + * @public + */ +export interface DescribeModelBiasJobDefinitionRequest { + /** + *

The name of the model bias job definition. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account.

+ * @public + */ + JobDefinitionName: string | undefined; +} + +/** + * @public + */ +export interface DescribeModelBiasJobDefinitionResponse { + /** + *

The Amazon Resource Name (ARN) of the model bias job.

+ * @public + */ + JobDefinitionArn: string | undefined; + + /** + *

The name of the bias job definition. The name must be unique within an Amazon Web Services + * Region in the Amazon Web Services account.

+ * @public + */ + JobDefinitionName: string | undefined; + + /** + *

The time at which the model bias job was created.

+ * @public + */ + CreationTime: Date | undefined; + + /** + *

The baseline configuration for a model bias job.

+ * @public + */ + ModelBiasBaselineConfig?: ModelBiasBaselineConfig; + + /** + *

Configures the model bias job to run a specified Docker container image.

+ * @public + */ + ModelBiasAppSpecification: ModelBiasAppSpecification | undefined; + + /** + *

Inputs for the model bias job.

+ * @public + */ + ModelBiasJobInput: ModelBiasJobInput | undefined; + + /** + *

The output configuration for monitoring jobs.

+ * @public + */ + ModelBiasJobOutputConfig: MonitoringOutputConfig | undefined; + + /** + *

Identifies the resources to deploy for a monitoring job.

+ * @public + */ + JobResources: MonitoringResources | undefined; + + /** + *

Networking options for a model bias job.

+ * @public + */ + NetworkConfig?: MonitoringNetworkConfig; + + /** + *

The Amazon Resource Name (ARN) of the IAM role that has read permission to the + * input data location and write permission to the output data location in Amazon S3.

+ * @public + */ + RoleArn: string | undefined; + + /** + *

A time limit for how long the monitoring job is allowed to run before stopping.

+ * @public + */ + StoppingCondition?: MonitoringStoppingCondition; +} + +/** + * @public + */ +export interface DescribeModelCardRequest { + /** + *

The name or Amazon Resource Name (ARN) of the model card to describe.

+ * @public + */ + ModelCardName: string | undefined; + + /** + *

The version of the model card to describe. If a version is not provided, then the latest version of the model card is described.

+ * @public + */ + ModelCardVersion?: number; +} + /** * @public * @enum @@ -11392,161 +11582,6 @@ export const ModelCardSortBy = { */ export type ModelCardSortBy = (typeof ModelCardSortBy)[keyof typeof ModelCardSortBy]; -/** - * @public - * @enum - */ -export const ModelCardSortOrder = { - ASCENDING: "Ascending", - DESCENDING: "Descending", -} as const; - -/** - * @public - */ -export type ModelCardSortOrder = (typeof ModelCardSortOrder)[keyof typeof ModelCardSortOrder]; - -/** - * @public - */ -export interface ListModelCardsRequest { - /** - *

Only list model cards that were created after the time specified.

- * @public - */ - CreationTimeAfter?: Date; - - /** - *

Only list model cards that were created before the time specified.

- * @public - */ - CreationTimeBefore?: Date; - - /** - *

The maximum number of model cards to list.

- * @public - */ - MaxResults?: number; - - /** - *

Only list model cards with names that contain the specified string.

- * @public - */ - NameContains?: string; - - /** - *

Only list model cards with the specified approval status.

- * @public - */ - ModelCardStatus?: ModelCardStatus; - - /** - *

If the response to a previous ListModelCards request was truncated, the - * response includes a NextToken. To retrieve the next set of model cards, use - * the token in the next request.

- * @public - */ - NextToken?: string; - - /** - *

Sort model cards by either name or creation time. Sorts by creation time by default.

- * @public - */ - SortBy?: ModelCardSortBy; - - /** - *

Sort model cards by ascending or descending order.

- * @public - */ - SortOrder?: ModelCardSortOrder; -} - -/** - *

A summary of the model card.

- * @public - */ -export interface ModelCardSummary { - /** - *

The name of the model card.

- * @public - */ - ModelCardName: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the model card.

- * @public - */ - ModelCardArn: string | undefined; - - /** - *

The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.

- *
    - *
  • - *

    - * Draft: The model card is a work in progress.

    - *
  • - *
  • - *

    - * PendingReview: The model card is pending review.

    - *
  • - *
  • - *

    - * Approved: The model card is approved.

    - *
  • - *
  • - *

    - * Archived: The model card is archived. No more updates should be made to the model - * card, but it can still be exported.

    - *
  • - *
- * @public - */ - ModelCardStatus: ModelCardStatus | undefined; - - /** - *

The date and time that the model card was created.

- * @public - */ - CreationTime: Date | undefined; - - /** - *

The date and time that the model card was last modified.

- * @public - */ - LastModifiedTime?: Date; -} - -/** - * @public - */ -export interface ListModelCardsResponse { - /** - *

The summaries of the listed model cards.

- * @public - */ - ModelCardSummaries: ModelCardSummary[] | undefined; - - /** - *

If the response is truncated, SageMaker returns this token. To retrieve the next set of model - * cards, use it in the subsequent request.

- * @public - */ - NextToken?: string; -} - -/** - * @public - * @enum - */ -export const ModelCardVersionSortBy = { - VERSION: "Version", -} as const; - -/** - * @public - */ -export type ModelCardVersionSortBy = (typeof ModelCardVersionSortBy)[keyof typeof ModelCardVersionSortBy]; - /** * @internal */ diff --git a/clients/client-sagemaker/src/models/models_4.ts b/clients/client-sagemaker/src/models/models_4.ts index 045cf54a54604..036b45f088a07 100644 --- a/clients/client-sagemaker/src/models/models_4.ts +++ b/clients/client-sagemaker/src/models/models_4.ts @@ -147,8 +147,7 @@ import { LambdaStepMetadata, LineageType, MetricData, - ModelCardSortOrder, - ModelCardVersionSortBy, + ModelCardSortBy, ModelPackageGroupStatus, ModelPackageStatusDetails, MonitoringExecutionSummary, @@ -183,6 +182,161 @@ import { Workteam, } from "./models_3"; +/** + * @public + * @enum + */ +export const ModelCardSortOrder = { + ASCENDING: "Ascending", + DESCENDING: "Descending", +} as const; + +/** + * @public + */ +export type ModelCardSortOrder = (typeof ModelCardSortOrder)[keyof typeof ModelCardSortOrder]; + +/** + * @public + */ +export interface ListModelCardsRequest { + /** + *

Only list model cards that were created after the time specified.

+ * @public + */ + CreationTimeAfter?: Date; + + /** + *

Only list model cards that were created before the time specified.

+ * @public + */ + CreationTimeBefore?: Date; + + /** + *

The maximum number of model cards to list.

+ * @public + */ + MaxResults?: number; + + /** + *

Only list model cards with names that contain the specified string.

+ * @public + */ + NameContains?: string; + + /** + *

Only list model cards with the specified approval status.

+ * @public + */ + ModelCardStatus?: ModelCardStatus; + + /** + *

If the response to a previous ListModelCards request was truncated, the + * response includes a NextToken. To retrieve the next set of model cards, use + * the token in the next request.

+ * @public + */ + NextToken?: string; + + /** + *

Sort model cards by either name or creation time. Sorts by creation time by default.

+ * @public + */ + SortBy?: ModelCardSortBy; + + /** + *

Sort model cards by ascending or descending order.

+ * @public + */ + SortOrder?: ModelCardSortOrder; +} + +/** + *

A summary of the model card.

+ * @public + */ +export interface ModelCardSummary { + /** + *

The name of the model card.

+ * @public + */ + ModelCardName: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the model card.

+ * @public + */ + ModelCardArn: string | undefined; + + /** + *

The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.

+ *
    + *
  • + *

    + * Draft: The model card is a work in progress.

    + *
  • + *
  • + *

    + * PendingReview: The model card is pending review.

    + *
  • + *
  • + *

    + * Approved: The model card is approved.

    + *
  • + *
  • + *

    + * Archived: The model card is archived. No more updates should be made to the model + * card, but it can still be exported.

    + *
  • + *
+ * @public + */ + ModelCardStatus: ModelCardStatus | undefined; + + /** + *

The date and time that the model card was created.

+ * @public + */ + CreationTime: Date | undefined; + + /** + *

The date and time that the model card was last modified.

+ * @public + */ + LastModifiedTime?: Date; +} + +/** + * @public + */ +export interface ListModelCardsResponse { + /** + *

The summaries of the listed model cards.

+ * @public + */ + ModelCardSummaries: ModelCardSummary[] | undefined; + + /** + *

If the response is truncated, SageMaker returns this token. To retrieve the next set of model + * cards, use it in the subsequent request.

+ * @public + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const ModelCardVersionSortBy = { + VERSION: "Version", +} as const; + +/** + * @public + */ +export type ModelCardVersionSortBy = (typeof ModelCardVersionSortBy)[keyof typeof ModelCardVersionSortBy]; + /** * @public */ diff --git a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts index cff354c422a62..cc3b583cd7643 100644 --- a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts +++ b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts @@ -927,6 +927,7 @@ import { AnnotationConsolidationConfig, AppDetails, AppImageConfigDetails, + AppLifecycleManagement, AppSpecification, AppType, ArtifactSource, @@ -1039,8 +1040,6 @@ import { CreateAppRequest, CreateAppResponse, CreateArtifactRequest, - CreateArtifactResponse, - CreateAutoMLJobRequest, CustomImage, DataSource, DirectDeploySettings, @@ -1057,6 +1056,7 @@ import { HyperParameterTuningJobObjective, IamIdentity, IdentityProviderOAuthSetting, + IdleSettings, ImageClassificationJobConfig, ImageConfig, InferenceHubAccessConfig, @@ -1073,7 +1073,6 @@ import { MetricsSource, ModelAccessConfig, ModelDataSource, - ModelDeployConfig, ModelInput, ModelPackageContainerDefinition, ModelRegisterSettings, @@ -1126,6 +1125,8 @@ import { WorkspaceSettings, } from "../models/models_0"; import { + CreateArtifactResponse, + CreateAutoMLJobRequest, CreateAutoMLJobResponse, CreateAutoMLJobV2Request, CreateAutoMLJobV2Response, @@ -1290,6 +1291,7 @@ import { ModelCardSecurityConfig, ModelCompilationConfig, ModelDataQuality, + ModelDeployConfig, ModelExplainabilityAppSpecification, ModelExplainabilityBaselineConfig, ModelExplainabilityJobInput, @@ -1559,11 +1561,6 @@ import { DescribeLineageGroupResponse, DescribeMlflowTrackingServerRequest, DescribeMlflowTrackingServerResponse, - DescribeModelBiasJobDefinitionRequest, - DescribeModelBiasJobDefinitionResponse, - DescribeModelCardRequest, - DescribeModelInput, - DescribeModelOutput, EbsStorageSettings, EdgeDeploymentStatus, EdgeModel, @@ -1629,7 +1626,9 @@ import { ServiceCatalogProvisioningDetails, SessionChainingConfig, SourceIpConfig, + SpaceAppLifecycleManagement, SpaceCodeEditorAppSettings, + SpaceIdleSettings, SpaceJupyterLabAppSettings, SpaceSettings, SpaceSharingSettings, @@ -1645,11 +1644,16 @@ import { WorkforceVpcConfigRequest, } from "../models/models_2"; import { + DescribeModelBiasJobDefinitionRequest, + DescribeModelBiasJobDefinitionResponse, DescribeModelCardExportJobRequest, DescribeModelCardExportJobResponse, + DescribeModelCardRequest, DescribeModelCardResponse, DescribeModelExplainabilityJobDefinitionRequest, DescribeModelExplainabilityJobDefinitionResponse, + DescribeModelInput, + DescribeModelOutput, DescribeModelPackageGroupInput, DescribeModelPackageGroupOutput, DescribeModelPackageInput, @@ -1844,13 +1848,10 @@ import { ListModelBiasJobDefinitionsResponse, ListModelCardExportJobsRequest, ListModelCardExportJobsResponse, - ListModelCardsRequest, - ListModelCardsResponse, MetricData, MetricSpecification, ModelCardExportArtifacts, ModelCardExportJobSummary, - ModelCardSummary, ModelPackageStatusDetails, ModelPackageStatusItem, MonitoringExecutionSummary, @@ -1886,6 +1887,8 @@ import { Workteam, } from "../models/models_3"; import { + ListModelCardsRequest, + ListModelCardsResponse, ListModelCardVersionsRequest, ListModelCardVersionsResponse, ListModelExplainabilityJobDefinitionsRequest, @@ -1956,6 +1959,7 @@ import { ListWorkteamsResponse, Model, ModelCard, + ModelCardSummary, ModelCardVersionSummary, ModelDashboardEndpoint, ModelDashboardIndicatorAction, @@ -13150,6 +13154,8 @@ const de_ResourceNotFoundRes = async (parsedOutput: any, context: __SerdeContext // se_AnnotationConsolidationConfig omitted. +// se_AppLifecycleManagement omitted. + // se_AppSpecification omitted. // se_ArtifactProperties omitted. @@ -14342,6 +14348,8 @@ const se_HyperParameterTuningJobConfig = (input: HyperParameterTuningJobConfig, // se_IdentityProviderOAuthSettings omitted. +// se_IdleSettings omitted. + // se_ImageClassificationJobConfig omitted. // se_ImageConfig omitted. @@ -16157,8 +16165,12 @@ const se_SendPipelineExecutionStepSuccessRequest = ( // se_SourceIpConfig omitted. +// se_SpaceAppLifecycleManagement omitted. + // se_SpaceCodeEditorAppSettings omitted. +// se_SpaceIdleSettings omitted. + // se_SpaceJupyterLabAppSettings omitted. // se_SpaceSettings omitted. @@ -16894,6 +16906,15 @@ const de_AppImageConfigList = (output: any, context: __SerdeContext): AppImageCo return retVal; }; +/** + * deserializeAws_json1_1AppLifecycleManagement + */ +const de_AppLifecycleManagement = (output: any, context: __SerdeContext): AppLifecycleManagement => { + return take(output, { + IdleSettings: (_: any) => de_IdleSettings(_, context), + }) as any; +}; + /** * deserializeAws_json1_1AppList */ @@ -18228,6 +18249,7 @@ const de_CodeEditorAppImageConfig = (output: any, context: __SerdeContext): Code */ const de_CodeEditorAppSettings = (output: any, context: __SerdeContext): CodeEditorAppSettings => { return take(output, { + AppLifecycleManagement: (_: any) => de_AppLifecycleManagement(_, context), CustomImages: (_: any) => de_CustomImages(_, context), DefaultResourceSpec: (_: any) => de_ResourceSpec(_, context), LifecycleConfigArns: (_: any) => de_LifecycleConfigArns(_, context), @@ -23077,6 +23099,18 @@ const de_IdentityProviderOAuthSettings = (output: any, context: __SerdeContext): return retVal; }; +/** + * deserializeAws_json1_1IdleSettings + */ +const de_IdleSettings = (output: any, context: __SerdeContext): IdleSettings => { + return take(output, { + IdleTimeoutInMinutes: __expectInt32, + LifecycleManagement: __expectString, + MaxIdleTimeoutInMinutes: __expectInt32, + MinIdleTimeoutInMinutes: __expectInt32, + }) as any; +}; + /** * deserializeAws_json1_1Image */ @@ -23596,6 +23630,7 @@ const de_JupyterLabAppImageConfig = (output: any, context: __SerdeContext): Jupy */ const de_JupyterLabAppSettings = (output: any, context: __SerdeContext): JupyterLabAppSettings => { return take(output, { + AppLifecycleManagement: (_: any) => de_AppLifecycleManagement(_, context), CodeRepositories: (_: any) => de_CodeRepositories(_, context), CustomImages: (_: any) => de_CustomImages(_, context), DefaultResourceSpec: (_: any) => de_ResourceSpec(_, context), @@ -28402,11 +28437,21 @@ const de_SourceIpConfig = (output: any, context: __SerdeContext): SourceIpConfig }) as any; }; +/** + * deserializeAws_json1_1SpaceAppLifecycleManagement + */ +const de_SpaceAppLifecycleManagement = (output: any, context: __SerdeContext): SpaceAppLifecycleManagement => { + return take(output, { + IdleSettings: (_: any) => de_SpaceIdleSettings(_, context), + }) as any; +}; + /** * deserializeAws_json1_1SpaceCodeEditorAppSettings */ const de_SpaceCodeEditorAppSettings = (output: any, context: __SerdeContext): SpaceCodeEditorAppSettings => { return take(output, { + AppLifecycleManagement: (_: any) => de_SpaceAppLifecycleManagement(_, context), DefaultResourceSpec: (_: any) => de_ResourceSpec(_, context), }) as any; }; @@ -28428,11 +28473,21 @@ const de_SpaceDetails = (output: any, context: __SerdeContext): SpaceDetails => }) as any; }; +/** + * deserializeAws_json1_1SpaceIdleSettings + */ +const de_SpaceIdleSettings = (output: any, context: __SerdeContext): SpaceIdleSettings => { + return take(output, { + IdleTimeoutInMinutes: __expectInt32, + }) as any; +}; + /** * deserializeAws_json1_1SpaceJupyterLabAppSettings */ const de_SpaceJupyterLabAppSettings = (output: any, context: __SerdeContext): SpaceJupyterLabAppSettings => { return take(output, { + AppLifecycleManagement: (_: any) => de_SpaceAppLifecycleManagement(_, context), CodeRepositories: (_: any) => de_CodeRepositories(_, context), DefaultResourceSpec: (_: any) => de_ResourceSpec(_, context), }) as any; diff --git a/codegen/sdk-codegen/aws-models/sagemaker.json b/codegen/sdk-codegen/aws-models/sagemaker.json index c5a76ee1021ee..ea27ec9962615 100644 --- a/codegen/sdk-codegen/aws-models/sagemaker.json +++ b/codegen/sdk-codegen/aws-models/sagemaker.json @@ -2017,6 +2017,20 @@ } } }, + "com.amazonaws.sagemaker#AppLifecycleManagement": { + "type": "structure", + "members": { + "IdleSettings": { + "target": "com.amazonaws.sagemaker#IdleSettings", + "traits": { + "smithy.api#documentation": "

Settings related to idle shutdown of Studio applications.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Settings that are used to configure and manage the lifecycle of Amazon SageMaker Studio applications.

" + } + }, "com.amazonaws.sagemaker#AppList": { "type": "list", "member": { @@ -6677,7 +6691,7 @@ } }, "ExecutionRole": { - "target": "com.amazonaws.sagemaker#RoleArn", + "target": "com.amazonaws.sagemaker#IAMRoleArn", "traits": { "smithy.api#documentation": "

The execution role for the instance group to assume.

" } @@ -6751,7 +6765,7 @@ } }, "ExecutionRole": { - "target": "com.amazonaws.sagemaker#RoleArn", + "target": "com.amazonaws.sagemaker#IAMRoleArn", "traits": { "smithy.api#clientOptional": {}, "smithy.api#documentation": "

Specifies an IAM execution role to be assumed by the instance group.

", @@ -7485,6 +7499,12 @@ "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Code Editor application \n lifecycle configuration.

" } + }, + "AppLifecycleManagement": { + "target": "com.amazonaws.sagemaker#AppLifecycleManagement", + "traits": { + "smithy.api#documentation": "

Settings that are used to configure and manage the lifecycle of CodeEditor applications.

\n

" + } } }, "traits": { @@ -32114,6 +32134,16 @@ } } }, + "com.amazonaws.sagemaker#IAMRoleArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^arn:aws[a-z\\-]*:iam::\\d{12}:role/[\\w+=,.@-]{1,64}$" + } + }, "com.amazonaws.sagemaker#IamIdentity": { "type": "structure", "members": { @@ -32207,6 +32237,47 @@ } } }, + "com.amazonaws.sagemaker#IdleSettings": { + "type": "structure", + "members": { + "LifecycleManagement": { + "target": "com.amazonaws.sagemaker#LifecycleManagement", + "traits": { + "smithy.api#documentation": "

Indicates whether idle shutdown is activated for the application type.

" + } + }, + "IdleTimeoutInMinutes": { + "target": "com.amazonaws.sagemaker#IdleTimeoutInMinutes", + "traits": { + "smithy.api#documentation": "

The time that SageMaker waits after the application becomes idle before shutting it down.

" + } + }, + "MinIdleTimeoutInMinutes": { + "target": "com.amazonaws.sagemaker#IdleTimeoutInMinutes", + "traits": { + "smithy.api#documentation": "

The minimum value in minutes that custom idle shutdown can be set to by the user.

" + } + }, + "MaxIdleTimeoutInMinutes": { + "target": "com.amazonaws.sagemaker#IdleTimeoutInMinutes", + "traits": { + "smithy.api#documentation": "

The maximum value in minutes that custom idle shutdown can be set to by the user.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Settings related to idle shutdown of Studio applications.

" + } + }, + "com.amazonaws.sagemaker#IdleTimeoutInMinutes": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 60, + "max": 525600 + } + } + }, "com.amazonaws.sagemaker#Image": { "type": "structure", "members": { @@ -35245,6 +35316,12 @@ "smithy.api#documentation": "

A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.

" } }, + "AppLifecycleManagement": { + "target": "com.amazonaws.sagemaker#AppLifecycleManagement", + "traits": { + "smithy.api#documentation": "

Indicates whether idle shutdown is activated for JupyterLab applications.

" + } + }, "EmrSettings": { "target": "com.amazonaws.sagemaker#EmrSettings", "traits": { @@ -36033,6 +36110,23 @@ "target": "com.amazonaws.sagemaker#StudioLifecycleConfigArn" } }, + "com.amazonaws.sagemaker#LifecycleManagement": { + "type": "enum", + "members": { + "Enabled": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "Disabled": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.sagemaker#LineageEntityParameters": { "type": "map", "key": { @@ -60617,6 +60711,20 @@ "smithy.api#pattern": ".*" } }, + "com.amazonaws.sagemaker#SpaceAppLifecycleManagement": { + "type": "structure", + "members": { + "IdleSettings": { + "target": "com.amazonaws.sagemaker#SpaceIdleSettings", + "traits": { + "smithy.api#documentation": "

Settings related to idle shutdown of Studio applications.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Settings that are used to configure and manage the lifecycle of Amazon SageMaker Studio applications in a space.

" + } + }, "com.amazonaws.sagemaker#SpaceArn": { "type": "string", "traits": { @@ -60632,6 +60740,12 @@ "members": { "DefaultResourceSpec": { "target": "com.amazonaws.sagemaker#ResourceSpec" + }, + "AppLifecycleManagement": { + "target": "com.amazonaws.sagemaker#SpaceAppLifecycleManagement", + "traits": { + "smithy.api#documentation": "

Settings that are used to configure and manage the lifecycle of CodeEditor applications in a space.

" + } } }, "traits": { @@ -60709,6 +60823,20 @@ } } }, + "com.amazonaws.sagemaker#SpaceIdleSettings": { + "type": "structure", + "members": { + "IdleTimeoutInMinutes": { + "target": "com.amazonaws.sagemaker#IdleTimeoutInMinutes", + "traits": { + "smithy.api#documentation": "

The time that SageMaker waits after the application becomes idle before shutting it down.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Settings related to idle shutdown of Studio applications in a space.

" + } + }, "com.amazonaws.sagemaker#SpaceJupyterLabAppSettings": { "type": "structure", "members": { @@ -60720,6 +60848,12 @@ "traits": { "smithy.api#documentation": "

A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.

" } + }, + "AppLifecycleManagement": { + "target": "com.amazonaws.sagemaker#SpaceAppLifecycleManagement", + "traits": { + "smithy.api#documentation": "

Settings that are used to configure and manage the lifecycle of JupyterLab applications in a space.

" + } } }, "traits": {