Skip to content

Commit

Permalink
feat(client-sagemaker): Introduce Endpoint and EndpointConfig Arns in…
Browse files Browse the repository at this point in the history
… sagemaker:ListPipelineExecutionSteps API response
  • Loading branch information
awstools committed Aug 16, 2024
1 parent 5f85b5f commit cbc6a87
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ export interface ListPipelineExecutionStepsCommandOutput extends ListPipelineExe
* // AutoMLJob: { // AutoMLJobStepMetadata
* // Arn: "STRING_VALUE",
* // },
* // Endpoint: { // EndpointStepMetadata
* // Arn: "STRING_VALUE",
* // },
* // EndpointConfig: { // EndpointConfigStepMetadata
* // Arn: "STRING_VALUE",
* // },
* // },
* // AttemptCount: Number("int"),
* // SelectiveExecutionResult: { // SelectiveExecutionResult
Expand Down
103 changes: 24 additions & 79 deletions clients/client-sagemaker/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5245,6 +5245,18 @@ export const EndpointConfigSortKey = {
*/
export type EndpointConfigSortKey = (typeof EndpointConfigSortKey)[keyof typeof EndpointConfigSortKey];

/**
* <p>Metadata for an endpoint configuration step.</p>
* @public
*/
export interface EndpointConfigStepMetadata {
/**
* <p>The Amazon Resource Name (ARN) of the endpoint configuration used in the step.</p>
* @public
*/
Arn?: string;
}

/**
* <p>Provides summary information for an endpoint configuration.</p>
* @public
Expand Down Expand Up @@ -5284,6 +5296,18 @@ export const EndpointSortKey = {
*/
export type EndpointSortKey = (typeof EndpointSortKey)[keyof typeof EndpointSortKey];

/**
* <p>Metadata for an endpoint step.</p>
* @public
*/
export interface EndpointStepMetadata {
/**
* <p>The Amazon Resource Name (ARN) of the endpoint in the step.</p>
* @public
*/
Arn?: string;
}

/**
* <p>Provides summary information for an endpoint.</p>
* @public
Expand Down Expand Up @@ -11561,85 +11585,6 @@ export interface ListModelCardVersionsRequest {
SortOrder?: ModelCardSortOrder;
}

/**
* <p>A summary of a specific version of the model card.</p>
* @public
*/
export interface ModelCardVersionSummary {
/**
* <p>The name of the model card.</p>
* @public
*/
ModelCardName: string | undefined;

/**
* <p>The Amazon Resource Name (ARN) of the model card.</p>
* @public
*/
ModelCardArn: string | undefined;

/**
* <p>The approval status of the model card version within your organization. Different organizations might have different criteria for model card review and approval.</p>
* <ul>
* <li>
* <p>
* <code>Draft</code>: The model card is a work in progress.</p>
* </li>
* <li>
* <p>
* <code>PendingReview</code>: The model card is pending review.</p>
* </li>
* <li>
* <p>
* <code>Approved</code>: The model card is approved.</p>
* </li>
* <li>
* <p>
* <code>Archived</code>: The model card is archived. No more updates should be made to the model
* card, but it can still be exported.</p>
* </li>
* </ul>
* @public
*/
ModelCardStatus: ModelCardStatus | undefined;

/**
* <p>A version of the model card.</p>
* @public
*/
ModelCardVersion: number | undefined;

/**
* <p>The date and time that the model card version was created.</p>
* @public
*/
CreationTime: Date | undefined;

/**
* <p>The time date and time that the model card version was last modified.</p>
* @public
*/
LastModifiedTime?: Date;
}

/**
* @public
*/
export interface ListModelCardVersionsResponse {
/**
* <p>The summaries of the listed versions of the model card.</p>
* @public
*/
ModelCardVersionSummaryList: ModelCardVersionSummary[] | undefined;

/**
* <p>If the response is truncated, SageMaker returns this token. To retrieve the next set of model
* card versions, use it in the subsequent request.</p>
* @public
*/
NextToken?: string;
}

/**
* @internal
*/
Expand Down
93 changes: 93 additions & 0 deletions clients/client-sagemaker/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ import {
Edge,
EMRStepMetadata,
Endpoint,
EndpointConfigStepMetadata,
EndpointStepMetadata,
ExecutionStatus,
Experiment,
FailStepMetadata,
Expand Down Expand Up @@ -179,6 +181,85 @@ import {
Workteam,
} from "./models_3";

/**
* <p>A summary of a specific version of the model card.</p>
* @public
*/
export interface ModelCardVersionSummary {
/**
* <p>The name of the model card.</p>
* @public
*/
ModelCardName: string | undefined;

/**
* <p>The Amazon Resource Name (ARN) of the model card.</p>
* @public
*/
ModelCardArn: string | undefined;

/**
* <p>The approval status of the model card version within your organization. Different organizations might have different criteria for model card review and approval.</p>
* <ul>
* <li>
* <p>
* <code>Draft</code>: The model card is a work in progress.</p>
* </li>
* <li>
* <p>
* <code>PendingReview</code>: The model card is pending review.</p>
* </li>
* <li>
* <p>
* <code>Approved</code>: The model card is approved.</p>
* </li>
* <li>
* <p>
* <code>Archived</code>: The model card is archived. No more updates should be made to the model
* card, but it can still be exported.</p>
* </li>
* </ul>
* @public
*/
ModelCardStatus: ModelCardStatus | undefined;

/**
* <p>A version of the model card.</p>
* @public
*/
ModelCardVersion: number | undefined;

/**
* <p>The date and time that the model card version was created.</p>
* @public
*/
CreationTime: Date | undefined;

/**
* <p>The time date and time that the model card version was last modified.</p>
* @public
*/
LastModifiedTime?: Date;
}

/**
* @public
*/
export interface ListModelCardVersionsResponse {
/**
* <p>The summaries of the listed versions of the model card.</p>
* @public
*/
ModelCardVersionSummaryList: ModelCardVersionSummary[] | undefined;

/**
* <p>If the response is truncated, SageMaker returns this token. To retrieve the next set of model
* card versions, use it in the subsequent request.</p>
* @public
*/
NextToken?: string;
}

/**
* @public
*/
Expand Down Expand Up @@ -2477,6 +2558,18 @@ export interface PipelineExecutionStepMetadata {
* @public
*/
AutoMLJob?: AutoMLJobStepMetadata;

/**
* <p>The endpoint that was invoked during this step execution.</p>
* @public
*/
Endpoint?: EndpointStepMetadata;

/**
* <p>The endpoint configuration used to create an endpoint during this step execution.</p>
* @public
*/
EndpointConfig?: EndpointConfigStepMetadata;
}

/**
Expand Down
26 changes: 24 additions & 2 deletions clients/client-sagemaker/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,9 @@ import {
EnableSagemakerServicecatalogPortfolioInput,
EnableSagemakerServicecatalogPortfolioOutput,
Endpoint,
EndpointConfigStepMetadata,
EndpointConfigSummary,
EndpointStepMetadata,
EndpointSummary,
Experiment,
ExperimentSummary,
Expand Down Expand Up @@ -1845,13 +1847,11 @@ import {
ListModelCardsRequest,
ListModelCardsResponse,
ListModelCardVersionsRequest,
ListModelCardVersionsResponse,
MetricData,
MetricSpecification,
ModelCardExportArtifacts,
ModelCardExportJobSummary,
ModelCardSummary,
ModelCardVersionSummary,
ModelPackageStatusDetails,
ModelPackageStatusItem,
MonitoringExecutionSummary,
Expand Down Expand Up @@ -1887,6 +1887,7 @@ import {
Workteam,
} from "../models/models_3";
import {
ListModelCardVersionsResponse,
ListModelExplainabilityJobDefinitionsRequest,
ListModelExplainabilityJobDefinitionsResponse,
ListModelMetadataRequest,
Expand Down Expand Up @@ -1955,6 +1956,7 @@ import {
ListWorkteamsResponse,
Model,
ModelCard,
ModelCardVersionSummary,
ModelDashboardEndpoint,
ModelDashboardIndicatorAction,
ModelDashboardModel,
Expand Down Expand Up @@ -21683,6 +21685,15 @@ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => {
}) as any;
};

/**
* deserializeAws_json1_1EndpointConfigStepMetadata
*/
const de_EndpointConfigStepMetadata = (output: any, context: __SerdeContext): EndpointConfigStepMetadata => {
return take(output, {
Arn: __expectString,
}) as any;
};

/**
* deserializeAws_json1_1EndpointConfigSummary
*/
Expand Down Expand Up @@ -21817,6 +21828,15 @@ const de_Endpoints = (output: any, context: __SerdeContext): EndpointInfo[] => {
return retVal;
};

/**
* deserializeAws_json1_1EndpointStepMetadata
*/
const de_EndpointStepMetadata = (output: any, context: __SerdeContext): EndpointStepMetadata => {
return take(output, {
Arn: __expectString,
}) as any;
};

/**
* deserializeAws_json1_1EndpointSummary
*/
Expand Down Expand Up @@ -26863,6 +26883,8 @@ const de_PipelineExecutionStepMetadata = (output: any, context: __SerdeContext):
ClarifyCheck: (_: any) => de_ClarifyCheckStepMetadata(_, context),
Condition: (_: any) => de_ConditionStepMetadata(_, context),
EMR: (_: any) => de_EMRStepMetadata(_, context),
Endpoint: (_: any) => de_EndpointStepMetadata(_, context),
EndpointConfig: (_: any) => de_EndpointConfigStepMetadata(_, context),
Fail: (_: any) => de_FailStepMetadata(_, context),
Lambda: (_: any) => de_LambdaStepMetadata(_, context),
Model: (_: any) => de_ModelStepMetadata(_, context),
Expand Down
Loading

0 comments on commit cbc6a87

Please sign in to comment.