Skip to content

Commit 4d78994

Browse files
author
awstools
committed
feat(client-sagemaker): This release adds Selective Execution feature that allows SageMaker Pipelines users to run selected steps in a pipeline.
1 parent ac3fec7 commit 4d78994

14 files changed

+317
-118
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ export interface DescribePipelineExecutionCommandOutput extends DescribePipeline
8484
* // ParallelismConfiguration: { // ParallelismConfiguration
8585
* // MaxParallelExecutionSteps: Number("int"), // required
8686
* // },
87+
* // SelectiveExecutionConfig: { // SelectiveExecutionConfig
88+
* // SourcePipelineExecutionArn: "STRING_VALUE", // required
89+
* // SelectedSteps: [ // SelectedStepList // required
90+
* // { // SelectedStep
91+
* // StepName: "STRING_VALUE", // required
92+
* // },
93+
* // ],
94+
* // },
8795
* // };
8896
*
8997
* ```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
1414
import { SerdeContext as __SerdeContext } from "@smithy/types";
1515

16-
import { ImportHubContentRequest, ImportHubContentResponse } from "../models/models_2";
16+
import { ImportHubContentRequest, ImportHubContentResponse } from "../models/models_3";
1717
import { de_ImportHubContentCommand, se_ImportHubContentCommand } from "../protocols/Aws_json1_1";
1818
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1919

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ export interface ListPipelineExecutionStepsCommandOutput extends ListPipelineExe
141141
* // Arn: "STRING_VALUE",
142142
* // },
143143
* // },
144+
* // SelectiveExecutionResult: { // SelectiveExecutionResult
145+
* // SourcePipelineExecutionArn: "STRING_VALUE",
146+
* // },
144147
* // },
145148
* // ],
146149
* // NextToken: "STRING_VALUE",

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,14 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
13041304
* // Value: "STRING_VALUE", // required
13051305
* // },
13061306
* // ],
1307+
* // SelectiveExecutionConfig: { // SelectiveExecutionConfig
1308+
* // SourcePipelineExecutionArn: "STRING_VALUE", // required
1309+
* // SelectedSteps: [ // SelectedStepList // required
1310+
* // { // SelectedStep
1311+
* // StepName: "STRING_VALUE", // required
1312+
* // },
1313+
* // ],
1314+
* // },
13071315
* // },
13081316
* // FeatureGroup: { // FeatureGroup
13091317
* // FeatureGroupArn: "STRING_VALUE",

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ export interface StartPipelineExecutionCommandOutput extends StartPipelineExecut
5757
* ParallelismConfiguration: { // ParallelismConfiguration
5858
* MaxParallelExecutionSteps: Number("int"), // required
5959
* },
60+
* SelectiveExecutionConfig: { // SelectiveExecutionConfig
61+
* SourcePipelineExecutionArn: "STRING_VALUE", // required
62+
* SelectedSteps: [ // SelectedStepList // required
63+
* { // SelectedStep
64+
* StepName: "STRING_VALUE", // required
65+
* },
66+
* ],
67+
* },
6068
* };
6169
* const command = new StartPipelineExecutionCommand(input);
6270
* const response = await client.send(command);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
1414
import { SerdeContext as __SerdeContext } from "@smithy/types";
1515

16-
import { StopInferenceRecommendationsJobRequest } from "../models/models_3";
16+
import { StopInferenceRecommendationsJobRequest } from "../models/models_4";
1717
import {
1818
de_StopInferenceRecommendationsJobCommand,
1919
se_StopInferenceRecommendationsJobCommand,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
1414
import { SerdeContext as __SerdeContext } from "@smithy/types";
1515

16-
import { StopLabelingJobRequest } from "../models/models_3";
16+
import { StopLabelingJobRequest } from "../models/models_4";
1717
import { de_StopLabelingJobCommand, se_StopLabelingJobCommand } from "../protocols/Aws_json1_1";
1818
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
1414
import { SerdeContext as __SerdeContext } from "@smithy/types";
1515

16-
import { StopMonitoringScheduleRequest } from "../models/models_3";
16+
import { StopMonitoringScheduleRequest } from "../models/models_4";
1717
import { de_StopMonitoringScheduleCommand, se_StopMonitoringScheduleCommand } from "../protocols/Aws_json1_1";
1818
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1919

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5028,12 +5028,13 @@ export interface AutoMLJobChannel {
50285028
* content types for different problems:</p>
50295029
* <ul>
50305030
* <li>
5031-
* <p>ImageClassification: <code>image/png</code>, <code>image/jpeg</code>, or
5032-
* <code>image/*</code>. The default value is <code>image/*</code>.</p>
5031+
* <p>ImageClassification: <code>image/png</code>, <code>image/jpeg</code>,
5032+
* <code>image/*</code>
5033+
* </p>
50335034
* </li>
50345035
* <li>
5035-
* <p>TextClassification: <code>text/csv;header=present</code> or <code>x-application/vnd.amazon+parquet</code>.
5036-
* The default value is <code>text/csv;header=present</code>.</p>
5036+
* <p>TextClassification: <code>text/csv;header=present</code>
5037+
* </p>
50375038
* </li>
50385039
* </ul>
50395040
*/

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

Lines changed: 36 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -6110,6 +6110,37 @@ export interface PipelineExperimentConfig {
61106110
TrialName?: string;
61116111
}
61126112

6113+
/**
6114+
* @public
6115+
* <p>A step selected to run in selective execution mode.</p>
6116+
*/
6117+
export interface SelectedStep {
6118+
/**
6119+
* <p>The name of the pipeline step.</p>
6120+
*/
6121+
StepName: string | undefined;
6122+
}
6123+
6124+
/**
6125+
* @public
6126+
* <p>The selective execution configuration applied to the pipeline run.</p>
6127+
*/
6128+
export interface SelectiveExecutionConfig {
6129+
/**
6130+
* <p>The ARN from a reference execution of the current pipeline.
6131+
* Used to copy input collaterals needed for the selected steps to run.
6132+
* The execution status of the pipeline can be either <code>Failed</code>
6133+
* or <code>Success</code>.</p>
6134+
*/
6135+
SourcePipelineExecutionArn: string | undefined;
6136+
6137+
/**
6138+
* <p>A list of pipeline steps to run. All step(s) in all path(s) between
6139+
* two selected steps should be included.</p>
6140+
*/
6141+
SelectedSteps: SelectedStep[] | undefined;
6142+
}
6143+
61136144
/**
61146145
* @public
61156146
*/
@@ -6175,6 +6206,11 @@ export interface DescribePipelineExecutionResponse {
61756206
* <p>The parallelism configuration applied to the pipeline.</p>
61766207
*/
61776208
ParallelismConfiguration?: ParallelismConfiguration;
6209+
6210+
/**
6211+
* <p>The selective execution configuration applied to the pipeline run.</p>
6212+
*/
6213+
SelectiveExecutionConfig?: SelectiveExecutionConfig;
61786214
}
61796215

61806216
/**
@@ -10432,81 +10468,6 @@ export const ImageVersionSortOrder = {
1043210468
*/
1043310469
export type ImageVersionSortOrder = (typeof ImageVersionSortOrder)[keyof typeof ImageVersionSortOrder];
1043410470

10435-
/**
10436-
* @public
10437-
*/
10438-
export interface ImportHubContentRequest {
10439-
/**
10440-
* <p>The name of the hub content to import.</p>
10441-
*/
10442-
HubContentName: string | undefined;
10443-
10444-
/**
10445-
* <p>The version of the hub content to import.</p>
10446-
*/
10447-
HubContentVersion?: string;
10448-
10449-
/**
10450-
* <p>The type of hub content to import.</p>
10451-
*/
10452-
HubContentType: HubContentType | string | undefined;
10453-
10454-
/**
10455-
* <p>The version of the hub content schema to import.</p>
10456-
*/
10457-
DocumentSchemaVersion: string | undefined;
10458-
10459-
/**
10460-
* <p>The name of the hub to import content into.</p>
10461-
*/
10462-
HubName: string | undefined;
10463-
10464-
/**
10465-
* <p>The display name of the hub content to import.</p>
10466-
*/
10467-
HubContentDisplayName?: string;
10468-
10469-
/**
10470-
* <p>A description of the hub content to import.</p>
10471-
*/
10472-
HubContentDescription?: string;
10473-
10474-
/**
10475-
* <p>A string that provides a description of the hub content. This string can include links, tables, and standard markdown formating.</p>
10476-
*/
10477-
HubContentMarkdown?: string;
10478-
10479-
/**
10480-
* <p>The hub content document that describes information about the hub content such as type, associated containers, scripts, and more.</p>
10481-
*/
10482-
HubContentDocument: string | undefined;
10483-
10484-
/**
10485-
* <p>The searchable keywords of the hub content.</p>
10486-
*/
10487-
HubContentSearchKeywords?: string[];
10488-
10489-
/**
10490-
* <p>Any tags associated with the hub content.</p>
10491-
*/
10492-
Tags?: Tag[];
10493-
}
10494-
10495-
/**
10496-
* @public
10497-
*/
10498-
export interface ImportHubContentResponse {
10499-
/**
10500-
* <p>The ARN of the hub that the content was imported into.</p>
10501-
*/
10502-
HubArn: string | undefined;
10503-
10504-
/**
10505-
* <p>The ARN of the hub content that was imported.</p>
10506-
*/
10507-
HubContentArn: string | undefined;
10508-
}
10509-
1051010471
/**
1051110472
* @internal
1051210473
*/

0 commit comments

Comments
 (0)