Skip to content

Commit 5850cdd

Browse files
author
awstools
committed
feat(client-sagemaker): SageMaker HubService is introducing support for creating Training Jobs in Curated Hub (Private Hub). Additionally, it is introducing two new APIs: UpdateHubContent and UpdateHubContentReference.
1 parent e5ad270 commit 5850cdd

28 files changed

+1072
-143
lines changed

clients/client-sagemaker/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -2881,6 +2881,22 @@ UpdateHub
28812881

28822882
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker/command/UpdateHubCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker/Interface/UpdateHubCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker/Interface/UpdateHubCommandOutput/)
28832883

2884+
</details>
2885+
<details>
2886+
<summary>
2887+
UpdateHubContent
2888+
</summary>
2889+
2890+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker/command/UpdateHubContentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker/Interface/UpdateHubContentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker/Interface/UpdateHubContentCommandOutput/)
2891+
2892+
</details>
2893+
<details>
2894+
<summary>
2895+
UpdateHubContentReference
2896+
</summary>
2897+
2898+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker/command/UpdateHubContentReferenceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker/Interface/UpdateHubContentReferenceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker/Interface/UpdateHubContentReferenceCommandOutput/)
2899+
28842900
</details>
28852901
<details>
28862902
<summary>

clients/client-sagemaker/src/SageMaker.ts

+46
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,16 @@ import {
15511551
UpdateFeatureMetadataCommandOutput,
15521552
} from "./commands/UpdateFeatureMetadataCommand";
15531553
import { UpdateHubCommand, UpdateHubCommandInput, UpdateHubCommandOutput } from "./commands/UpdateHubCommand";
1554+
import {
1555+
UpdateHubContentCommand,
1556+
UpdateHubContentCommandInput,
1557+
UpdateHubContentCommandOutput,
1558+
} from "./commands/UpdateHubContentCommand";
1559+
import {
1560+
UpdateHubContentReferenceCommand,
1561+
UpdateHubContentReferenceCommandInput,
1562+
UpdateHubContentReferenceCommandOutput,
1563+
} from "./commands/UpdateHubContentReferenceCommand";
15541564
import { UpdateImageCommand, UpdateImageCommandInput, UpdateImageCommandOutput } from "./commands/UpdateImageCommand";
15551565
import {
15561566
UpdateImageVersionCommand,
@@ -1990,6 +2000,8 @@ const commands = {
19902000
UpdateFeatureGroupCommand,
19912001
UpdateFeatureMetadataCommand,
19922002
UpdateHubCommand,
2003+
UpdateHubContentCommand,
2004+
UpdateHubContentReferenceCommand,
19932005
UpdateImageCommand,
19942006
UpdateImageVersionCommand,
19952007
UpdateInferenceComponentCommand,
@@ -7304,6 +7316,40 @@ export interface SageMaker {
73047316
cb: (err: any, data?: UpdateHubCommandOutput) => void
73057317
): void;
73067318

7319+
/**
7320+
* @see {@link UpdateHubContentCommand}
7321+
*/
7322+
updateHubContent(
7323+
args: UpdateHubContentCommandInput,
7324+
options?: __HttpHandlerOptions
7325+
): Promise<UpdateHubContentCommandOutput>;
7326+
updateHubContent(
7327+
args: UpdateHubContentCommandInput,
7328+
cb: (err: any, data?: UpdateHubContentCommandOutput) => void
7329+
): void;
7330+
updateHubContent(
7331+
args: UpdateHubContentCommandInput,
7332+
options: __HttpHandlerOptions,
7333+
cb: (err: any, data?: UpdateHubContentCommandOutput) => void
7334+
): void;
7335+
7336+
/**
7337+
* @see {@link UpdateHubContentReferenceCommand}
7338+
*/
7339+
updateHubContentReference(
7340+
args: UpdateHubContentReferenceCommandInput,
7341+
options?: __HttpHandlerOptions
7342+
): Promise<UpdateHubContentReferenceCommandOutput>;
7343+
updateHubContentReference(
7344+
args: UpdateHubContentReferenceCommandInput,
7345+
cb: (err: any, data?: UpdateHubContentReferenceCommandOutput) => void
7346+
): void;
7347+
updateHubContentReference(
7348+
args: UpdateHubContentReferenceCommandInput,
7349+
options: __HttpHandlerOptions,
7350+
cb: (err: any, data?: UpdateHubContentReferenceCommandOutput) => void
7351+
): void;
7352+
73077353
/**
73087354
* @see {@link UpdateImageCommand}
73097355
*/

clients/client-sagemaker/src/SageMakerClient.ts

+9
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,11 @@ import {
923923
UpdateFeatureMetadataCommandOutput,
924924
} from "./commands/UpdateFeatureMetadataCommand";
925925
import { UpdateHubCommandInput, UpdateHubCommandOutput } from "./commands/UpdateHubCommand";
926+
import { UpdateHubContentCommandInput, UpdateHubContentCommandOutput } from "./commands/UpdateHubContentCommand";
927+
import {
928+
UpdateHubContentReferenceCommandInput,
929+
UpdateHubContentReferenceCommandOutput,
930+
} from "./commands/UpdateHubContentReferenceCommand";
926931
import { UpdateImageCommandInput, UpdateImageCommandOutput } from "./commands/UpdateImageCommand";
927932
import { UpdateImageVersionCommandInput, UpdateImageVersionCommandOutput } from "./commands/UpdateImageVersionCommand";
928933
import {
@@ -1324,6 +1329,8 @@ export type ServiceInputTypes =
13241329
| UpdateFeatureGroupCommandInput
13251330
| UpdateFeatureMetadataCommandInput
13261331
| UpdateHubCommandInput
1332+
| UpdateHubContentCommandInput
1333+
| UpdateHubContentReferenceCommandInput
13271334
| UpdateImageCommandInput
13281335
| UpdateImageVersionCommandInput
13291336
| UpdateInferenceComponentCommandInput
@@ -1685,6 +1692,8 @@ export type ServiceOutputTypes =
16851692
| UpdateFeatureGroupCommandOutput
16861693
| UpdateFeatureMetadataCommandOutput
16871694
| UpdateHubCommandOutput
1695+
| UpdateHubContentCommandOutput
1696+
| UpdateHubContentReferenceCommandOutput
16881697
| UpdateImageCommandOutput
16891698
| UpdateImageVersionCommandOutput
16901699
| UpdateInferenceComponentCommandOutput

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

+6
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ export interface CreateAlgorithmCommandOutput extends CreateAlgorithmOutput, __M
184184
* InstanceGroupNames: [ // InstanceGroupNames
185185
* "STRING_VALUE",
186186
* ],
187+
* ModelAccessConfig: {
188+
* AcceptEula: true || false, // required
189+
* },
190+
* HubAccessConfig: { // HubAccessConfig
191+
* HubContentArn: "STRING_VALUE", // required
192+
* },
187193
* },
188194
* FileSystemDataSource: { // FileSystemDataSource
189195
* FileSystemId: "STRING_VALUE", // required

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

+12
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ export interface CreateHyperParameterTuningJobCommandOutput
184184
* InstanceGroupNames: [ // InstanceGroupNames
185185
* "STRING_VALUE",
186186
* ],
187+
* ModelAccessConfig: { // ModelAccessConfig
188+
* AcceptEula: true || false, // required
189+
* },
190+
* HubAccessConfig: { // HubAccessConfig
191+
* HubContentArn: "STRING_VALUE", // required
192+
* },
187193
* },
188194
* FileSystemDataSource: { // FileSystemDataSource
189195
* FileSystemId: "STRING_VALUE", // required
@@ -330,6 +336,12 @@ export interface CreateHyperParameterTuningJobCommandOutput
330336
* InstanceGroupNames: [
331337
* "STRING_VALUE",
332338
* ],
339+
* ModelAccessConfig: {
340+
* AcceptEula: true || false, // required
341+
* },
342+
* HubAccessConfig: {
343+
* HubContentArn: "STRING_VALUE", // required
344+
* },
333345
* },
334346
* FileSystemDataSource: {
335347
* FileSystemId: "STRING_VALUE", // required

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

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

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { CreateMonitoringScheduleRequest, CreateMonitoringScheduleResponse } from "../models/models_1";
8+
import { CreateMonitoringScheduleRequest } from "../models/models_1";
9+
import { CreateMonitoringScheduleResponse } from "../models/models_2";
910
import { de_CreateMonitoringScheduleCommand, se_CreateMonitoringScheduleCommand } from "../protocols/Aws_json1_1";
1011
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1112

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

+6
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ export interface CreateTrainingJobCommandOutput extends CreateTrainingJobRespons
156156
* InstanceGroupNames: [ // InstanceGroupNames
157157
* "STRING_VALUE",
158158
* ],
159+
* ModelAccessConfig: { // ModelAccessConfig
160+
* AcceptEula: true || false, // required
161+
* },
162+
* HubAccessConfig: { // HubAccessConfig
163+
* HubContentArn: "STRING_VALUE", // required
164+
* },
159165
* },
160166
* FileSystemDataSource: { // FileSystemDataSource
161167
* FileSystemId: "STRING_VALUE", // required

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

+6
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@ export interface DescribeAlgorithmCommandOutput extends DescribeAlgorithmOutput,
191191
* // InstanceGroupNames: [ // InstanceGroupNames
192192
* // "STRING_VALUE",
193193
* // ],
194+
* // ModelAccessConfig: {
195+
* // AcceptEula: true || false, // required
196+
* // },
197+
* // HubAccessConfig: { // HubAccessConfig
198+
* // HubContentArn: "STRING_VALUE", // required
199+
* // },
194200
* // },
195201
* // FileSystemDataSource: { // FileSystemDataSource
196202
* // FileSystemId: "STRING_VALUE", // required

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface DescribeHubContentCommandOutput extends DescribeHubContentRespo
5757
* // HubContentDocument: "STRING_VALUE", // required
5858
* // SageMakerPublicHubContentArn: "STRING_VALUE",
5959
* // ReferenceMinVersion: "STRING_VALUE",
60-
* // SupportStatus: "Supported" || "Deprecated",
60+
* // SupportStatus: "Supported" || "Deprecated" || "Restricted",
6161
* // HubContentSearchKeywords: [ // HubContentSearchKeywordList
6262
* // "STRING_VALUE",
6363
* // ],
@@ -70,6 +70,7 @@ export interface DescribeHubContentCommandOutput extends DescribeHubContentRespo
7070
* // HubContentStatus: "Available" || "Importing" || "Deleting" || "ImportFailed" || "DeleteFailed", // required
7171
* // FailureReason: "STRING_VALUE",
7272
* // CreationTime: new Date("TIMESTAMP"), // required
73+
* // LastModifiedTime: new Date("TIMESTAMP"),
7374
* // };
7475
*
7576
* ```

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

+12
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ export interface DescribeHyperParameterTuningJobCommandOutput
178178
* // InstanceGroupNames: [ // InstanceGroupNames
179179
* // "STRING_VALUE",
180180
* // ],
181+
* // ModelAccessConfig: { // ModelAccessConfig
182+
* // AcceptEula: true || false, // required
183+
* // },
184+
* // HubAccessConfig: { // HubAccessConfig
185+
* // HubContentArn: "STRING_VALUE", // required
186+
* // },
181187
* // },
182188
* // FileSystemDataSource: { // FileSystemDataSource
183189
* // FileSystemId: "STRING_VALUE", // required
@@ -324,6 +330,12 @@ export interface DescribeHyperParameterTuningJobCommandOutput
324330
* // InstanceGroupNames: [
325331
* // "STRING_VALUE",
326332
* // ],
333+
* // ModelAccessConfig: {
334+
* // AcceptEula: true || false, // required
335+
* // },
336+
* // HubAccessConfig: {
337+
* // HubContentArn: "STRING_VALUE", // required
338+
* // },
327339
* // },
328340
* // FileSystemDataSource: {
329341
* // FileSystemId: "STRING_VALUE", // required

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

+6
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ export interface DescribeTrainingJobCommandOutput extends DescribeTrainingJobRes
100100
* // InstanceGroupNames: [ // InstanceGroupNames
101101
* // "STRING_VALUE",
102102
* // ],
103+
* // ModelAccessConfig: { // ModelAccessConfig
104+
* // AcceptEula: true || false, // required
105+
* // },
106+
* // HubAccessConfig: { // HubAccessConfig
107+
* // HubContentArn: "STRING_VALUE", // required
108+
* // },
103109
* // },
104110
* // FileSystemDataSource: { // FileSystemDataSource
105111
* // FileSystemId: "STRING_VALUE", // required

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

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface ImportHubContentCommandOutput extends ImportHubContentResponse,
4545
* HubContentDescription: "STRING_VALUE",
4646
* HubContentMarkdown: "STRING_VALUE",
4747
* HubContentDocument: "STRING_VALUE", // required
48+
* SupportStatus: "Supported" || "Deprecated" || "Restricted",
4849
* HubContentSearchKeywords: [ // HubContentSearchKeywordList
4950
* "STRING_VALUE",
5051
* ],

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

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

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { ListDataQualityJobDefinitionsRequest } from "../models/models_3";
9-
import { ListDataQualityJobDefinitionsResponse } from "../models/models_4";
8+
import { ListDataQualityJobDefinitionsRequest, ListDataQualityJobDefinitionsResponse } from "../models/models_4";
109
import {
1110
de_ListDataQualityJobDefinitionsCommand,
1211
se_ListDataQualityJobDefinitionsCommand,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface ListHubContentVersionsCommandOutput extends ListHubContentVersi
6161
* // DocumentSchemaVersion: "STRING_VALUE", // required
6262
* // HubContentDisplayName: "STRING_VALUE",
6363
* // HubContentDescription: "STRING_VALUE",
64-
* // SupportStatus: "Supported" || "Deprecated",
64+
* // SupportStatus: "Supported" || "Deprecated" || "Restricted",
6565
* // HubContentSearchKeywords: [ // HubContentSearchKeywordList
6666
* // "STRING_VALUE",
6767
* // ],

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface ListHubContentsCommandOutput extends ListHubContentsResponse, _
6060
* // DocumentSchemaVersion: "STRING_VALUE", // required
6161
* // HubContentDisplayName: "STRING_VALUE",
6262
* // HubContentDescription: "STRING_VALUE",
63-
* // SupportStatus: "Supported" || "Deprecated",
63+
* // SupportStatus: "Supported" || "Deprecated" || "Restricted",
6464
* // HubContentSearchKeywords: [ // HubContentSearchKeywordList
6565
* // "STRING_VALUE",
6666
* // ],

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

+17-15
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
161161
* // InstanceGroupNames: [ // InstanceGroupNames
162162
* // "STRING_VALUE",
163163
* // ],
164+
* // ModelAccessConfig: { // ModelAccessConfig
165+
* // AcceptEula: true || false, // required
166+
* // },
167+
* // HubAccessConfig: { // HubAccessConfig
168+
* // HubContentArn: "STRING_VALUE", // required
169+
* // },
164170
* // },
165171
* // FileSystemDataSource: { // FileSystemDataSource
166172
* // FileSystemId: "STRING_VALUE", // required
@@ -521,6 +527,12 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
521527
* // InstanceGroupNames: [
522528
* // "STRING_VALUE",
523529
* // ],
530+
* // ModelAccessConfig: {
531+
* // AcceptEula: true || false, // required
532+
* // },
533+
* // HubAccessConfig: {
534+
* // HubContentArn: "STRING_VALUE", // required
535+
* // },
524536
* // },
525537
* // FileSystemDataSource: {
526538
* // FileSystemId: "STRING_VALUE", // required
@@ -1096,9 +1108,7 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
10961108
* // S3Uri: "STRING_VALUE", // required
10971109
* // S3DataType: "S3Prefix" || "S3Object", // required
10981110
* // CompressionType: "None" || "Gzip", // required
1099-
* // ModelAccessConfig: { // ModelAccessConfig
1100-
* // AcceptEula: true || false, // required
1101-
* // },
1111+
* // ModelAccessConfig: "<ModelAccessConfig>",
11021112
* // HubAccessConfig: { // InferenceHubAccessConfig
11031113
* // HubContentArn: "STRING_VALUE", // required
11041114
* // },
@@ -1148,9 +1158,7 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
11481158
* // S3Uri: "STRING_VALUE", // required
11491159
* // S3DataType: "S3Prefix" || "S3Object", // required
11501160
* // CompressionType: "None" || "Gzip", // required
1151-
* // ModelAccessConfig: {
1152-
* // AcceptEula: true || false, // required
1153-
* // },
1161+
* // ModelAccessConfig: "<ModelAccessConfig>",
11541162
* // HubAccessConfig: {
11551163
* // HubContentArn: "STRING_VALUE", // required
11561164
* // },
@@ -1287,9 +1295,7 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
12871295
* // S3Uri: "STRING_VALUE", // required
12881296
* // S3DataType: "S3Prefix" || "S3Object", // required
12891297
* // CompressionType: "None" || "Gzip", // required
1290-
* // ModelAccessConfig: {
1291-
* // AcceptEula: true || false, // required
1292-
* // },
1298+
* // ModelAccessConfig: "<ModelAccessConfig>",
12931299
* // HubAccessConfig: {
12941300
* // HubContentArn: "STRING_VALUE", // required
12951301
* // },
@@ -1860,9 +1866,7 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
18601866
* // S3Uri: "STRING_VALUE", // required
18611867
* // S3DataType: "S3Prefix" || "S3Object", // required
18621868
* // CompressionType: "None" || "Gzip", // required
1863-
* // ModelAccessConfig: {
1864-
* // AcceptEula: true || false, // required
1865-
* // },
1869+
* // ModelAccessConfig: "<ModelAccessConfig>",
18661870
* // HubAccessConfig: {
18671871
* // HubContentArn: "STRING_VALUE", // required
18681872
* // },
@@ -1899,9 +1903,7 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
18991903
* // S3Uri: "STRING_VALUE", // required
19001904
* // S3DataType: "S3Prefix" || "S3Object", // required
19011905
* // CompressionType: "None" || "Gzip", // required
1902-
* // ModelAccessConfig: {
1903-
* // AcceptEula: true || false, // required
1904-
* // },
1906+
* // ModelAccessConfig: "<ModelAccessConfig>",
19051907
* // HubAccessConfig: {
19061908
* // HubContentArn: "STRING_VALUE", // required
19071909
* // },

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

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

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { StopPipelineExecutionRequest, StopPipelineExecutionResponse } from "../models/models_4";
8+
import { StopPipelineExecutionRequest } from "../models/models_4";
9+
import { StopPipelineExecutionResponse } from "../models/models_5";
910
import { de_StopPipelineExecutionCommand, se_StopPipelineExecutionCommand } from "../protocols/Aws_json1_1";
1011
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1112

0 commit comments

Comments
 (0)