Skip to content

Commit 9330d73

Browse files
author
awstools
committed
feat(client-sagemaker): Added ModelNameEquals, ModelPackageVersionArnEquals in request and ModelName, SamplePayloadUrl, ModelPackageVersionArn in response of ListInferenceRecommendationsJobs API. Added Invocation timestamps in response of DescribeInferenceRecommendationsJob API & ListInferenceRecommendationsJobSteps API.
1 parent 8306abb commit 9330d73

File tree

9 files changed

+134
-6
lines changed

9 files changed

+134
-6
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ export interface DescribeInferenceRecommendationsJobCommandOutput
171171
* // CompilationJobName: "STRING_VALUE",
172172
* // },
173173
* // RecommendationId: "STRING_VALUE",
174+
* // InvocationEndTime: new Date("TIMESTAMP"),
175+
* // InvocationStartTime: new Date("TIMESTAMP"),
174176
* // },
175177
* // ],
176178
* // EndpointPerformances: [ // EndpointPerformances

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export interface ListInferenceRecommendationsJobStepsCommandOutput
9898
* // MaxInvocations: Number("int"), // required
9999
* // ModelLatency: Number("int"), // required
100100
* // },
101+
* // InvocationEndTime: new Date("TIMESTAMP"),
102+
* // InvocationStartTime: new Date("TIMESTAMP"),
101103
* // },
102104
* // },
103105
* // ],

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export interface ListInferenceRecommendationsJobsCommandOutput
5959
* SortOrder: "Ascending" || "Descending",
6060
* NextToken: "STRING_VALUE",
6161
* MaxResults: Number("int"),
62+
* ModelNameEquals: "STRING_VALUE",
63+
* ModelPackageVersionArnEquals: "STRING_VALUE",
6264
* };
6365
* const command = new ListInferenceRecommendationsJobsCommand(input);
6466
* const response = await client.send(command);
@@ -75,6 +77,9 @@ export interface ListInferenceRecommendationsJobsCommandOutput
7577
* // RoleArn: "STRING_VALUE", // required
7678
* // LastModifiedTime: new Date("TIMESTAMP"), // required
7779
* // FailureReason: "STRING_VALUE",
80+
* // ModelName: "STRING_VALUE",
81+
* // SamplePayloadUrl: "STRING_VALUE",
82+
* // ModelPackageVersionArn: "STRING_VALUE",
7883
* // },
7984
* // ],
8085
* // NextToken: "STRING_VALUE",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,7 @@ export type S3DataType = (typeof S3DataType)[keyof typeof S3DataType];
10581058
/**
10591059
* @public
10601060
* <p>Describes the S3 data source.</p>
1061+
* <p>Your input bucket must be in the same Amazon Web Services region as your training job.</p>
10611062
*/
10621063
export interface S3DataSource {
10631064
/**
@@ -1131,6 +1132,7 @@ export interface S3DataSource {
11311132
* your behalf. </p>
11321133
* </li>
11331134
* </ul>
1135+
* <p>Your input bucket must be located in same Amazon Web Services region as your training job.</p>
11341136
*/
11351137
S3Uri: string | undefined;
11361138

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6662,7 +6662,7 @@ export interface SourceAlgorithm {
66626662
* This path must point to a single <code>gzip</code> compressed tar archive
66636663
* (<code>.tar.gz</code> suffix).</p>
66646664
* <note>
6665-
* <p>The model artifacts must be in an S3 bucket that is in the same region as the
6665+
* <p>The model artifacts must be in an S3 bucket that is in the same Amazon Web Services region as the
66666666
* algorithm.</p>
66676667
* </note>
66686668
*/
@@ -8776,6 +8776,7 @@ export interface CreateTrainingJobRequest {
87768776
* data files from an S3 bucket to a local directory in the Docker container, or makes it
87778777
* available as input streams. For example, if you specify an EFS location, input data
87788778
* files are available as input streams. They do not need to be downloaded.</p>
8779+
* <p>Your input must be in the same Amazon Web Services region as your training job.</p>
87798780
*/
87808781
InputDataConfig?: Channel[];
87818782

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4236,6 +4236,16 @@ export interface InferenceRecommendation {
42364236
* <p>The recommendation ID which uniquely identifies each recommendation.</p>
42374237
*/
42384238
RecommendationId?: string;
4239+
4240+
/**
4241+
* <p>A timestamp that shows when the benchmark completed.</p>
4242+
*/
4243+
InvocationEndTime?: Date;
4244+
4245+
/**
4246+
* <p>A timestamp that shows when the benchmark started.</p>
4247+
*/
4248+
InvocationStartTime?: Date;
42394249
}
42404250

42414251
/**
@@ -10524,6 +10534,22 @@ export interface InferenceRecommendationsJob {
1052410534
* <p>If the job fails, provides information why the job failed.</p>
1052510535
*/
1052610536
FailureReason?: string;
10537+
10538+
/**
10539+
* <p>The name of the created model.</p>
10540+
*/
10541+
ModelName?: string;
10542+
10543+
/**
10544+
* <p>The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored.
10545+
* This path must point to a single gzip compressed tar archive (.tar.gz suffix).</p>
10546+
*/
10547+
SamplePayloadUrl?: string;
10548+
10549+
/**
10550+
* <p>The Amazon Resource Name (ARN) of a versioned model package.</p>
10551+
*/
10552+
ModelPackageVersionArn?: string;
1052710553
}
1052810554

1052910555
/**
@@ -10555,6 +10581,16 @@ export interface RecommendationJobInferenceBenchmark {
1055510581
* <p>The metrics for an existing endpoint compared in an Inference Recommender job.</p>
1055610582
*/
1055710583
EndpointMetrics?: InferenceMetrics;
10584+
10585+
/**
10586+
* <p>A timestamp that shows when the benchmark completed.</p>
10587+
*/
10588+
InvocationEndTime?: Date;
10589+
10590+
/**
10591+
* <p>A timestamp that shows when the benchmark started.</p>
10592+
*/
10593+
InvocationStartTime?: Date;
1055810594
}
1055910595

1056010596
/**

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2670,6 +2670,16 @@ export interface ListInferenceRecommendationsJobsRequest {
26702670
* <p>The maximum number of recommendations to return in the response.</p>
26712671
*/
26722672
MaxResults?: number;
2673+
2674+
/**
2675+
* <p>A filter that returns only jobs that were created for this model.</p>
2676+
*/
2677+
ModelNameEquals?: string;
2678+
2679+
/**
2680+
* <p>A filter that returns only jobs that were created for this versioned model package.</p>
2681+
*/
2682+
ModelPackageVersionArnEquals?: string;
26732683
}
26742684

26752685
/**
@@ -8782,6 +8792,7 @@ export interface TrainingJob {
87828792
/**
87838793
* <p>An array of <code>Channel</code> objects that describes each data input
87848794
* channel.</p>
8795+
* <p>Your input must be in the same Amazon Web Services region as your training job.</p>
87858796
*/
87868797
InputDataConfig?: Channel[];
87878798

clients/client-sagemaker/src/protocols/Aws_json1_1.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20631,6 +20631,8 @@ const se_ListInferenceRecommendationsJobsRequest = (
2063120631
LastModifiedTimeAfter: (_) => Math.round(_.getTime() / 1000),
2063220632
LastModifiedTimeBefore: (_) => Math.round(_.getTime() / 1000),
2063320633
MaxResults: [],
20634+
ModelNameEquals: [],
20635+
ModelPackageVersionArnEquals: [],
2063420636
NameContains: [],
2063520637
NextToken: [],
2063620638
SortBy: [],
@@ -25028,6 +25030,8 @@ const de_InferenceExperimentSummary = (output: any, context: __SerdeContext): In
2502825030
const de_InferenceRecommendation = (output: any, context: __SerdeContext): InferenceRecommendation => {
2502925031
return take(output, {
2503025032
EndpointConfiguration: _json,
25033+
InvocationEndTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
25034+
InvocationStartTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2503125035
Metrics: (_: any) => de_RecommendationMetrics(_, context),
2503225036
ModelConfiguration: _json,
2503325037
RecommendationId: __expectString,
@@ -25059,7 +25063,10 @@ const de_InferenceRecommendationsJob = (output: any, context: __SerdeContext): I
2505925063
JobName: __expectString,
2506025064
JobType: __expectString,
2506125065
LastModifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
25066+
ModelName: __expectString,
25067+
ModelPackageVersionArn: __expectString,
2506225068
RoleArn: __expectString,
25069+
SamplePayloadUrl: __expectString,
2506325070
Status: __expectString,
2506425071
}) as any;
2506525072
};
@@ -27326,6 +27333,8 @@ const de_RecommendationJobInferenceBenchmark = (
2732627333
EndpointConfiguration: _json,
2732727334
EndpointMetrics: _json,
2732827335
FailureReason: __expectString,
27336+
InvocationEndTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
27337+
InvocationStartTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2732927338
Metrics: (_: any) => de_RecommendationMetrics(_, context),
2733027339
ModelConfiguration: _json,
2733127340
}) as any;

0 commit comments

Comments
 (0)