From 9330d732705463267f709e13a021b9e4e90ae832 Mon Sep 17 00:00:00 2001
From: awstools Describes the S3 data source. Your input bucket must be in the same Amazon Web Services region as your training job.
Your input bucket must be located in same Amazon Web Services region as your training job.
*/ S3Uri: string | undefined; diff --git a/clients/client-sagemaker/src/models/models_1.ts b/clients/client-sagemaker/src/models/models_1.ts index 3b135201e82d..98b30dbe943a 100644 --- a/clients/client-sagemaker/src/models/models_1.ts +++ b/clients/client-sagemaker/src/models/models_1.ts @@ -6662,7 +6662,7 @@ export interface SourceAlgorithm { * This path must point to a singlegzip
compressed tar archive
* (.tar.gz
suffix).
* The model artifacts must be in an S3 bucket that is in the same region as the + *
The model artifacts must be in an S3 bucket that is in the same Amazon Web Services region as the * algorithm.
*Your input must be in the same Amazon Web Services region as your training job.
*/ InputDataConfig?: Channel[]; diff --git a/clients/client-sagemaker/src/models/models_2.ts b/clients/client-sagemaker/src/models/models_2.ts index e5253ff91d57..b0541e0aa37c 100644 --- a/clients/client-sagemaker/src/models/models_2.ts +++ b/clients/client-sagemaker/src/models/models_2.ts @@ -4236,6 +4236,16 @@ export interface InferenceRecommendation { *The recommendation ID which uniquely identifies each recommendation.
*/ RecommendationId?: string; + + /** + *A timestamp that shows when the benchmark completed.
+ */ + InvocationEndTime?: Date; + + /** + *A timestamp that shows when the benchmark started.
+ */ + InvocationStartTime?: Date; } /** @@ -10524,6 +10534,22 @@ export interface InferenceRecommendationsJob { *If the job fails, provides information why the job failed.
*/ FailureReason?: string; + + /** + *The name of the created model.
+ */ + ModelName?: string; + + /** + *The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. + * This path must point to a single gzip compressed tar archive (.tar.gz suffix).
+ */ + SamplePayloadUrl?: string; + + /** + *The Amazon Resource Name (ARN) of a versioned model package.
+ */ + ModelPackageVersionArn?: string; } /** @@ -10555,6 +10581,16 @@ export interface RecommendationJobInferenceBenchmark { *The metrics for an existing endpoint compared in an Inference Recommender job.
*/ EndpointMetrics?: InferenceMetrics; + + /** + *A timestamp that shows when the benchmark completed.
+ */ + InvocationEndTime?: Date; + + /** + *A timestamp that shows when the benchmark started.
+ */ + InvocationStartTime?: Date; } /** diff --git a/clients/client-sagemaker/src/models/models_3.ts b/clients/client-sagemaker/src/models/models_3.ts index 173804db2ecb..c42374853fdb 100644 --- a/clients/client-sagemaker/src/models/models_3.ts +++ b/clients/client-sagemaker/src/models/models_3.ts @@ -2670,6 +2670,16 @@ export interface ListInferenceRecommendationsJobsRequest { *The maximum number of recommendations to return in the response.
*/ MaxResults?: number; + + /** + *A filter that returns only jobs that were created for this model.
+ */ + ModelNameEquals?: string; + + /** + *A filter that returns only jobs that were created for this versioned model package.
+ */ + ModelPackageVersionArnEquals?: string; } /** @@ -8782,6 +8792,7 @@ export interface TrainingJob { /** *An array of Channel
objects that describes each data input
* channel.
Your input must be in the same Amazon Web Services region as your training job.
*/ InputDataConfig?: Channel[]; diff --git a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts index 47bfdde0187b..60ce30711dec 100644 --- a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts +++ b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts @@ -20631,6 +20631,8 @@ const se_ListInferenceRecommendationsJobsRequest = ( LastModifiedTimeAfter: (_) => Math.round(_.getTime() / 1000), LastModifiedTimeBefore: (_) => Math.round(_.getTime() / 1000), MaxResults: [], + ModelNameEquals: [], + ModelPackageVersionArnEquals: [], NameContains: [], NextToken: [], SortBy: [], @@ -25028,6 +25030,8 @@ const de_InferenceExperimentSummary = (output: any, context: __SerdeContext): In const de_InferenceRecommendation = (output: any, context: __SerdeContext): InferenceRecommendation => { return take(output, { EndpointConfiguration: _json, + InvocationEndTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + InvocationStartTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), Metrics: (_: any) => de_RecommendationMetrics(_, context), ModelConfiguration: _json, RecommendationId: __expectString, @@ -25059,7 +25063,10 @@ const de_InferenceRecommendationsJob = (output: any, context: __SerdeContext): I JobName: __expectString, JobType: __expectString, LastModifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + ModelName: __expectString, + ModelPackageVersionArn: __expectString, RoleArn: __expectString, + SamplePayloadUrl: __expectString, Status: __expectString, }) as any; }; @@ -27326,6 +27333,8 @@ const de_RecommendationJobInferenceBenchmark = ( EndpointConfiguration: _json, EndpointMetrics: _json, FailureReason: __expectString, + InvocationEndTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + InvocationStartTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), Metrics: (_: any) => de_RecommendationMetrics(_, context), ModelConfiguration: _json, }) as any; diff --git a/codegen/sdk-codegen/aws-models/sagemaker.json b/codegen/sdk-codegen/aws-models/sagemaker.json index dddb90520ecb..6bfd40f61d07 100644 --- a/codegen/sdk-codegen/aws-models/sagemaker.json +++ b/codegen/sdk-codegen/aws-models/sagemaker.json @@ -10239,7 +10239,7 @@ "InputDataConfig": { "target": "com.amazonaws.sagemaker#InputDataConfig", "traits": { - "smithy.api#documentation": "An array of Channel
objects. Each channel is a named input source.\n InputDataConfig
describes the input data and its location.
Algorithms can accept input data from one or more channels. For example, an\n algorithm might have two channels of input data, training_data
and\n validation_data
. The configuration for each channel provides the S3,\n EFS, or FSx location where the input data is stored. It also provides information about\n the stored data: the MIME type, compression method, and whether the data is wrapped in\n RecordIO format.
Depending on the input mode that the algorithm supports, SageMaker either copies input\n data files from an S3 bucket to a local directory in the Docker container, or makes it\n available as input streams. For example, if you specify an EFS location, input data\n files are available as input streams. They do not need to be downloaded.
" + "smithy.api#documentation": "An array of Channel
objects. Each channel is a named input source.\n InputDataConfig
describes the input data and its location.
Algorithms can accept input data from one or more channels. For example, an\n algorithm might have two channels of input data, training_data
and\n validation_data
. The configuration for each channel provides the S3,\n EFS, or FSx location where the input data is stored. It also provides information about\n the stored data: the MIME type, compression method, and whether the data is wrapped in\n RecordIO format.
Depending on the input mode that the algorithm supports, SageMaker either copies input\n data files from an S3 bucket to a local directory in the Docker container, or makes it\n available as input streams. For example, if you specify an EFS location, input data\n files are available as input streams. They do not need to be downloaded.
\nYour input must be in the same Amazon Web Services region as your training job.
" } }, "OutputDataConfig": { @@ -27436,6 +27436,18 @@ "traits": { "smithy.api#documentation": "The recommendation ID which uniquely identifies each recommendation.
" } + }, + "InvocationEndTime": { + "target": "com.amazonaws.sagemaker#InvocationEndTime", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the benchmark completed.
" + } + }, + "InvocationStartTime": { + "target": "com.amazonaws.sagemaker#InvocationStartTime", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the benchmark started.
" + } } }, "traits": { @@ -27524,6 +27536,24 @@ "traits": { "smithy.api#documentation": "If the job fails, provides information why the job failed.
" } + }, + "ModelName": { + "target": "com.amazonaws.sagemaker#ModelName", + "traits": { + "smithy.api#documentation": "The name of the created model.
" + } + }, + "SamplePayloadUrl": { + "target": "com.amazonaws.sagemaker#S3Uri", + "traits": { + "smithy.api#documentation": "The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored.\n This path must point to a single gzip compressed tar archive (.tar.gz suffix).
" + } + }, + "ModelPackageVersionArn": { + "target": "com.amazonaws.sagemaker#ModelPackageArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of a versioned model package.
" + } } }, "traits": { @@ -28298,6 +28328,12 @@ "smithy.api#default": 0 } }, + "com.amazonaws.sagemaker#InvocationEndTime": { + "type": "timestamp" + }, + "com.amazonaws.sagemaker#InvocationStartTime": { + "type": "timestamp" + }, "com.amazonaws.sagemaker#InvocationsMaxRetries": { "type": "integer", "traits": { @@ -32553,6 +32589,18 @@ "traits": { "smithy.api#documentation": "The maximum number of recommendations to return in the response.
" } + }, + "ModelNameEquals": { + "target": "com.amazonaws.sagemaker#ModelName", + "traits": { + "smithy.api#documentation": "A filter that returns only jobs that were created for this model.
" + } + }, + "ModelPackageVersionArnEquals": { + "target": "com.amazonaws.sagemaker#ModelPackageArn", + "traits": { + "smithy.api#documentation": "A filter that returns only jobs that were created for this versioned model package.
" + } } }, "traits": { @@ -45967,6 +46015,18 @@ }, "EndpointMetrics": { "target": "com.amazonaws.sagemaker#InferenceMetrics" + }, + "InvocationEndTime": { + "target": "com.amazonaws.sagemaker#InvocationEndTime", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the benchmark completed.
" + } + }, + "InvocationStartTime": { + "target": "com.amazonaws.sagemaker#InvocationStartTime", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the benchmark started.
" + } } }, "traits": { @@ -47320,7 +47380,7 @@ "S3Uri": { "target": "com.amazonaws.sagemaker#S3Uri", "traits": { - "smithy.api#documentation": "Depending on the value specified for the S3DataType
, identifies either\n a key name prefix or a manifest. For example:
A key name prefix might look like this:\n s3://bucketname/exampleprefix
\n
A manifest might look like this:\n s3://bucketname/example.manifest
\n
A manifest is an S3 object which is a JSON file consisting of an array of\n elements. The first element is a prefix which is followed by one or more\n suffixes. SageMaker appends the suffix elements to the prefix to get a full set\n of S3Uri
. Note that the prefix must be a valid non-empty\n S3Uri
that precludes users from specifying a manifest whose\n individual S3Uri
is sourced from different S3 buckets.
The following code example shows a valid manifest format:
\n\n [ {\"prefix\": \"s3://customer_bucket/some/prefix/\"},
\n
\n \"relative/path/to/custdata-1\",
\n
\n \"relative/path/custdata-2\",
\n
\n ...
\n
\n \"relative/path/custdata-N\"
\n
\n ]
\n
This JSON is equivalent to the following S3Uri
\n list:
\n s3://customer_bucket/some/prefix/relative/path/to/custdata-1
\n
\n s3://customer_bucket/some/prefix/relative/path/custdata-2
\n
\n ...
\n
\n s3://customer_bucket/some/prefix/relative/path/custdata-N
\n
The complete set of S3Uri
in this manifest is the input data\n for the channel for this data source. The object that each S3Uri
\n points to must be readable by the IAM role that SageMaker uses to perform tasks on\n your behalf.
Depending on the value specified for the S3DataType
, identifies either\n a key name prefix or a manifest. For example:
A key name prefix might look like this:\n s3://bucketname/exampleprefix
\n
A manifest might look like this:\n s3://bucketname/example.manifest
\n
A manifest is an S3 object which is a JSON file consisting of an array of\n elements. The first element is a prefix which is followed by one or more\n suffixes. SageMaker appends the suffix elements to the prefix to get a full set\n of S3Uri
. Note that the prefix must be a valid non-empty\n S3Uri
that precludes users from specifying a manifest whose\n individual S3Uri
is sourced from different S3 buckets.
The following code example shows a valid manifest format:
\n\n [ {\"prefix\": \"s3://customer_bucket/some/prefix/\"},
\n
\n \"relative/path/to/custdata-1\",
\n
\n \"relative/path/custdata-2\",
\n
\n ...
\n
\n \"relative/path/custdata-N\"
\n
\n ]
\n
This JSON is equivalent to the following S3Uri
\n list:
\n s3://customer_bucket/some/prefix/relative/path/to/custdata-1
\n
\n s3://customer_bucket/some/prefix/relative/path/custdata-2
\n
\n ...
\n
\n s3://customer_bucket/some/prefix/relative/path/custdata-N
\n
The complete set of S3Uri
in this manifest is the input data\n for the channel for this data source. The object that each S3Uri
\n points to must be readable by the IAM role that SageMaker uses to perform tasks on\n your behalf.
Your input bucket must be located in same Amazon Web Services region as your training job.
", "smithy.api#required": {} } }, @@ -47344,7 +47404,7 @@ } }, "traits": { - "smithy.api#documentation": "Describes the S3 data source.
" + "smithy.api#documentation": "Describes the S3 data source.
\nYour input bucket must be in the same Amazon Web Services region as your training job.
" } }, "com.amazonaws.sagemaker#S3DataType": { @@ -50519,7 +50579,7 @@ "ModelDataUrl": { "target": "com.amazonaws.sagemaker#Url", "traits": { - "smithy.api#documentation": "The Amazon S3 path where the model artifacts, which result from model training, are stored.\n This path must point to a single gzip
compressed tar archive\n (.tar.gz
suffix).
The model artifacts must be in an S3 bucket that is in the same region as the\n algorithm.
\nThe Amazon S3 path where the model artifacts, which result from model training, are stored.\n This path must point to a single gzip
compressed tar archive\n (.tar.gz
suffix).
The model artifacts must be in an S3 bucket that is in the same Amazon Web Services region as the\n algorithm.
\nAn array of Channel
objects that describes each data input\n channel.
An array of Channel
objects that describes each data input\n channel.
Your input must be in the same Amazon Web Services region as your training job.
" } }, "OutputDataConfig": {