Skip to content

Commit 1aa3572

Browse files
author
awstools
committed
feat(client-sagemaker): This release introduces a new optional parameter: InferenceAmiVersion, in ProductionVariant.
1 parent 41f4cc5 commit 1aa3572

File tree

10 files changed

+165
-106
lines changed

10 files changed

+165
-106
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export interface CreateEndpointConfigCommandOutput extends CreateEndpointConfigO
9696
* RoutingConfig: { // ProductionVariantRoutingConfig
9797
* RoutingStrategy: "LEAST_OUTSTANDING_REQUESTS" || "RANDOM", // required
9898
* },
99+
* InferenceAmiVersion: "al2-ami-sagemaker-inference-gpu-2",
99100
* },
100101
* ],
101102
* DataCaptureConfig: { // DataCaptureConfig
@@ -208,6 +209,7 @@ export interface CreateEndpointConfigCommandOutput extends CreateEndpointConfigO
208209
* RoutingConfig: {
209210
* RoutingStrategy: "LEAST_OUTSTANDING_REQUESTS" || "RANDOM", // required
210211
* },
212+
* InferenceAmiVersion: "al2-ami-sagemaker-inference-gpu-2",
211213
* },
212214
* ],
213215
* ExecutionRoleArn: "STRING_VALUE",

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

Lines changed: 1 addition & 2 deletions
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 { CreateSpaceRequest } from "../models/models_1";
9-
import { CreateSpaceResponse } from "../models/models_2";
8+
import { CreateSpaceRequest, CreateSpaceResponse } from "../models/models_2";
109
import { de_CreateSpaceCommand, se_CreateSpaceCommand } from "../protocols/Aws_json1_1";
1110
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1211

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export interface DescribeEndpointConfigCommandOutput extends DescribeEndpointCon
7373
* // RoutingConfig: { // ProductionVariantRoutingConfig
7474
* // RoutingStrategy: "LEAST_OUTSTANDING_REQUESTS" || "RANDOM", // required
7575
* // },
76+
* // InferenceAmiVersion: "al2-ami-sagemaker-inference-gpu-2",
7677
* // },
7778
* // ],
7879
* // DataCaptureConfig: { // DataCaptureConfig
@@ -180,6 +181,7 @@ export interface DescribeEndpointConfigCommandOutput extends DescribeEndpointCon
180181
* // RoutingConfig: {
181182
* // RoutingStrategy: "LEAST_OUTSTANDING_REQUESTS" || "RANDOM", // required
182183
* // },
184+
* // InferenceAmiVersion: "al2-ami-sagemaker-inference-gpu-2",
183185
* // },
184186
* // ],
185187
* // ExecutionRoleArn: "STRING_VALUE",

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

Lines changed: 1 addition & 2 deletions
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 { DescribeProcessingJobRequest } from "../models/models_2";
9-
import { DescribeProcessingJobResponse } from "../models/models_3";
8+
import { DescribeProcessingJobRequest, DescribeProcessingJobResponse } from "../models/models_3";
109
import { de_DescribeProcessingJobCommand, se_DescribeProcessingJobCommand } from "../protocols/Aws_json1_1";
1110
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1211

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

Lines changed: 35 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2483,6 +2483,20 @@ export interface ProductionVariantCoreDumpConfig {
24832483
KmsKeyId?: string;
24842484
}
24852485

2486+
/**
2487+
* @public
2488+
* @enum
2489+
*/
2490+
export const ProductionVariantInferenceAmiVersion = {
2491+
AL2_GPU_2: "al2-ami-sagemaker-inference-gpu-2",
2492+
} as const;
2493+
2494+
/**
2495+
* @public
2496+
*/
2497+
export type ProductionVariantInferenceAmiVersion =
2498+
(typeof ProductionVariantInferenceAmiVersion)[keyof typeof ProductionVariantInferenceAmiVersion];
2499+
24862500
/**
24872501
* @public
24882502
* @enum
@@ -2706,6 +2720,18 @@ export interface ProductionVariant {
27062720
* @public
27072721
*/
27082722
RoutingConfig?: ProductionVariantRoutingConfig;
2723+
2724+
/**
2725+
* <p>Specifies an option from a collection of preconfigured Amazon Machine Image (AMI)
2726+
* images. Each image is configured by Amazon Web Services with a set of software and driver
2727+
* versions. Amazon Web Services optimizes these configurations for different machine
2728+
* learning workloads.</p>
2729+
* <p>By selecting an AMI version, you can ensure that your inference environment is
2730+
* compatible with specific software requirements, such as CUDA driver versions, Linux
2731+
* kernel versions, or Amazon Web Services Neuron driver versions.</p>
2732+
* @public
2733+
*/
2734+
InferenceAmiVersion?: ProductionVariantInferenceAmiVersion;
27092735
}
27102736

27112737
/**
@@ -9859,14 +9885,18 @@ export interface DriftCheckBaselines {
98599885
* simplified compared to the schema of <code>ModelCard</code>. The
98609886
* <code>ModelPackageModelCard</code> schema does not include <code>model_package_details</code>,
98619887
* and <code>model_overview</code> is composed of the <code>model_creator</code> and
9862-
* <code>model_artifact</code> properties. For more information about
9888+
* <code>model_artifact</code> properties. For more information about the model package model
9889+
* card schema, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html#model-card-schema">Model
9890+
* package model card schema</a>. For more information about
98639891
* the model card associated with the model package, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html">View
98649892
* the Details of a Model Version</a>.</p>
98659893
* @public
98669894
*/
98679895
export interface ModelPackageModelCard {
98689896
/**
9869-
* <p>The content of the model card.</p>
9897+
* <p>The content of the model card. The content must follow the schema described
9898+
* in <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html#model-card-schema">Model
9899+
* Package Model Card Schema</a>.</p>
98709900
* @public
98719901
*/
98729902
ModelCardContent?: string;
@@ -10273,7 +10303,9 @@ export interface CreateModelPackageInput {
1027310303
* simplified compared to the schema of <code>ModelCard</code>. The
1027410304
* <code>ModelPackageModelCard</code> schema does not include <code>model_package_details</code>,
1027510305
* and <code>model_overview</code> is composed of the <code>model_creator</code> and
10276-
* <code>model_artifact</code> properties. For more information about
10306+
* <code>model_artifact</code> properties. For more information about the model package model
10307+
* card schema, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html#model-card-schema">Model
10308+
* package model card schema</a>. For more information about
1027710309
* the model card associated with the model package, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html">View
1027810310
* the Details of a Model Version</a>.</p>
1027910311
* @public
@@ -12300,55 +12332,6 @@ export interface SpaceSharingSettings {
1230012332
SharingType: SharingType | undefined;
1230112333
}
1230212334

12303-
/**
12304-
* @public
12305-
*/
12306-
export interface CreateSpaceRequest {
12307-
/**
12308-
* <p>The ID of the associated domain.</p>
12309-
* @public
12310-
*/
12311-
DomainId: string | undefined;
12312-
12313-
/**
12314-
* <p>The name of the space.</p>
12315-
* @public
12316-
*/
12317-
SpaceName: string | undefined;
12318-
12319-
/**
12320-
* <p>Tags to associated with the space. Each tag consists of a key and an optional value.
12321-
* Tag keys must be unique for each resource. Tags are searchable using the
12322-
* <code>Search</code> API.</p>
12323-
* @public
12324-
*/
12325-
Tags?: Tag[];
12326-
12327-
/**
12328-
* <p>A collection of space settings.</p>
12329-
* @public
12330-
*/
12331-
SpaceSettings?: SpaceSettings;
12332-
12333-
/**
12334-
* <p>A collection of ownership settings.</p>
12335-
* @public
12336-
*/
12337-
OwnershipSettings?: OwnershipSettings;
12338-
12339-
/**
12340-
* <p>A collection of space sharing settings.</p>
12341-
* @public
12342-
*/
12343-
SpaceSharingSettings?: SpaceSharingSettings;
12344-
12345-
/**
12346-
* <p>The name of the space that appears in the SageMaker Studio UI.</p>
12347-
* @public
12348-
*/
12349-
SpaceDisplayName?: string;
12350-
}
12351-
1235212335
/**
1235312336
* @internal
1235412337
*/

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

Lines changed: 62 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ import {
146146
OfflineStoreConfig,
147147
OnlineStoreConfig,
148148
OutputConfig,
149+
OwnershipSettings,
149150
ParallelismConfiguration,
150151
ProcessingInstanceType,
151152
Processor,
@@ -162,11 +163,62 @@ import {
162163
ShadowModeConfig,
163164
SkipModelValidation,
164165
SourceAlgorithmSpecification,
166+
SpaceSettings,
167+
SpaceSharingSettings,
165168
ThroughputMode,
166169
UserSettings,
167170
VendorGuidance,
168171
} from "./models_1";
169172

173+
/**
174+
* @public
175+
*/
176+
export interface CreateSpaceRequest {
177+
/**
178+
* <p>The ID of the associated domain.</p>
179+
* @public
180+
*/
181+
DomainId: string | undefined;
182+
183+
/**
184+
* <p>The name of the space.</p>
185+
* @public
186+
*/
187+
SpaceName: string | undefined;
188+
189+
/**
190+
* <p>Tags to associated with the space. Each tag consists of a key and an optional value.
191+
* Tag keys must be unique for each resource. Tags are searchable using the
192+
* <code>Search</code> API.</p>
193+
* @public
194+
*/
195+
Tags?: Tag[];
196+
197+
/**
198+
* <p>A collection of space settings.</p>
199+
* @public
200+
*/
201+
SpaceSettings?: SpaceSettings;
202+
203+
/**
204+
* <p>A collection of ownership settings.</p>
205+
* @public
206+
*/
207+
OwnershipSettings?: OwnershipSettings;
208+
209+
/**
210+
* <p>A collection of space sharing settings.</p>
211+
* @public
212+
*/
213+
SpaceSharingSettings?: SpaceSharingSettings;
214+
215+
/**
216+
* <p>The name of the space that appears in the SageMaker Studio UI.</p>
217+
* @public
218+
*/
219+
SpaceDisplayName?: string;
220+
}
221+
170222
/**
171223
* @public
172224
*/
@@ -439,17 +491,15 @@ export interface RemoteDebugConfig {
439491

440492
/**
441493
* <p>Contains information about attribute-based access control (ABAC) for a training job.
442-
* The session chaining configuration uses Amazon Security Token Service (STS) for your
443-
* training job to request temporary, limited-privilege credentials to tenants. For more
444-
* information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-access-training-data.html#model-access-training-data-abac">Attribute-based access control (ABAC) for multi-tenancy
445-
* training</a>.</p>
494+
* The session chaining configuration uses Amazon Security Token Service (STS) for your training job to
495+
* request temporary, limited-privilege credentials to tenants. For more information, see
496+
* <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-access-training-data.html#model-access-training-data-abac">Attribute-based access control (ABAC) for multi-tenancy training</a>.</p>
446497
* @public
447498
*/
448499
export interface SessionChainingConfig {
449500
/**
450-
* <p>Set to <code>True</code> to allow SageMaker to extract session tags from a
451-
* training job creation role and reuse these tags when assuming the training
452-
* job execution role.</p>
501+
* <p>Set to <code>True</code> to allow SageMaker to extract session tags from a training job
502+
* creation role and reuse these tags when assuming the training job execution role.</p>
453503
* @public
454504
*/
455505
EnableSessionTagChaining?: boolean;
@@ -3820,8 +3870,8 @@ export interface DescribeCompilationJobRequest {
38203870
* <p>Model artifacts are outputs that result from training a model. They typically consist
38213871
* of trained parameters, a model definition that describes how to compute inferences, and
38223872
* other metadata. A SageMaker container stores your trained model artifacts in the
3823-
* <code>/opt/ml/model</code> directory. After training has completed, by default, these artifacts
3824-
* are uploaded to your Amazon S3 bucket as compressed files.</p>
3873+
* <code>/opt/ml/model</code> directory. After training has completed, by default,
3874+
* these artifacts are uploaded to your Amazon S3 bucket as compressed files.</p>
38253875
* @public
38263876
*/
38273877
export interface ModelArtifacts {
@@ -8926,7 +8976,9 @@ export interface DescribeModelPackageOutput {
89268976
* simplified compared to the schema of <code>ModelCard</code>. The
89278977
* <code>ModelPackageModelCard</code> schema does not include <code>model_package_details</code>,
89288978
* and <code>model_overview</code> is composed of the <code>model_creator</code> and
8929-
* <code>model_artifact</code> properties. For more information about
8979+
* <code>model_artifact</code> properties. For more information about the model package model
8980+
* card schema, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html#model-card-schema">Model
8981+
* package model card schema</a>. For more information about
89308982
* the model card associated with the model package, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-details.html">View
89318983
* the Details of a Model Version</a>.</p>
89328984
* @public
@@ -9848,18 +9900,6 @@ export interface DescribePipelineExecutionResponse {
98489900
SelectiveExecutionConfig?: SelectiveExecutionConfig;
98499901
}
98509902

9851-
/**
9852-
* @public
9853-
*/
9854-
export interface DescribeProcessingJobRequest {
9855-
/**
9856-
* <p>The name of the processing job. The name must be unique within an Amazon Web Services Region in the
9857-
* Amazon Web Services account.</p>
9858-
* @public
9859-
*/
9860-
ProcessingJobName: string | undefined;
9861-
}
9862-
98639903
/**
98649904
* @internal
98659905
*/

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

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,18 @@ import {
147147
WorkerAccessConfiguration,
148148
} from "./models_2";
149149

150+
/**
151+
* @public
152+
*/
153+
export interface DescribeProcessingJobRequest {
154+
/**
155+
* <p>The name of the processing job. The name must be unique within an Amazon Web Services Region in the
156+
* Amazon Web Services account.</p>
157+
* @public
158+
*/
159+
ProcessingJobName: string | undefined;
160+
}
161+
150162
/**
151163
* @public
152164
* @enum
@@ -11178,17 +11190,3 @@ export const NotebookInstanceSortKey = {
1117811190
* @public
1117911191
*/
1118011192
export type NotebookInstanceSortKey = (typeof NotebookInstanceSortKey)[keyof typeof NotebookInstanceSortKey];
11181-
11182-
/**
11183-
* @public
11184-
* @enum
11185-
*/
11186-
export const NotebookInstanceSortOrder = {
11187-
ASCENDING: "Ascending",
11188-
DESCENDING: "Descending",
11189-
} as const;
11190-
11191-
/**
11192-
* @public
11193-
*/
11194-
export type NotebookInstanceSortOrder = (typeof NotebookInstanceSortOrder)[keyof typeof NotebookInstanceSortOrder];

0 commit comments

Comments
 (0)