Skip to content

Commit

Permalink
feat(client-sagemaker): Support for batch transform input in Model da…
Browse files Browse the repository at this point in the history
…shboard
  • Loading branch information
awstools committed Nov 1, 2023
1 parent 1ef476e commit 1725b9c
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 6 deletions.
22 changes: 22 additions & 0 deletions clients/client-sagemaker/src/commands/SearchCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1994,6 +1994,28 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {}
* // MonitoringJobDefinitionName: "STRING_VALUE",
* // MonitoringType: "DataQuality" || "ModelQuality" || "ModelBias" || "ModelExplainability",
* // },
* // BatchTransformInput: {
* // DataCapturedDestinationS3Uri: "STRING_VALUE", // required
* // DatasetFormat: {
* // Csv: {
* // Header: true || false,
* // },
* // Json: {
* // Line: true || false,
* // },
* // Parquet: {},
* // },
* // LocalPath: "STRING_VALUE", // required
* // S3InputMode: "Pipe" || "File",
* // S3DataDistributionType: "FullyReplicated" || "ShardedByS3Key",
* // FeaturesAttribute: "STRING_VALUE",
* // InferenceAttribute: "STRING_VALUE",
* // ProbabilityAttribute: "STRING_VALUE",
* // ProbabilityThresholdAttribute: Number("double"),
* // StartTimeOffset: "STRING_VALUE",
* // EndTimeOffset: "STRING_VALUE",
* // ExcludeFeaturesAttribute: "STRING_VALUE",
* // },
* // },
* // ],
* // ModelCard: { // ModelDashboardModelCard
Expand Down
7 changes: 7 additions & 0 deletions clients/client-sagemaker/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
AppSpecification,
BatchDataCaptureConfig,
BatchStrategy,
BatchTransformInput,
BooleanOperator,
Channel,
CheckpointConfig,
Expand Down Expand Up @@ -532,6 +533,12 @@ export interface ModelDashboardMonitoringSchedule {
* <p>Summary of information about the last monitoring job to run.</p>
*/
LastMonitoringExecutionSummary?: MonitoringExecutionSummary;

/**
* @public
* <p>Input object for the batch transform job.</p>
*/
BatchTransformInput?: BatchTransformInput;
}

/**
Expand Down
1 change: 1 addition & 0 deletions clients/client-sagemaker/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26591,6 +26591,7 @@ const de_ModelDashboardMonitoringSchedule = (
context: __SerdeContext
): ModelDashboardMonitoringSchedule => {
return take(output, {
BatchTransformInput: (_: any) => de_BatchTransformInput(_, context),
CreationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
EndpointName: __expectString,
FailureReason: __expectString,
Expand Down
19 changes: 13 additions & 6 deletions codegen/sdk-codegen/aws-models/sagemaker.json
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
"min": 1,
"max": 2048
},
"smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:algorithm/"
"smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:algorithm/[\\S]{1,2048}$"
}
},
"com.amazonaws.sagemaker#AlgorithmImage": {
Expand Down Expand Up @@ -5763,7 +5763,7 @@
"min": 1,
"max": 2048
},
"smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:code-repository/"
"smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:code-repository/[\\S]{1,2048}$"
}
},
"com.amazonaws.sagemaker#CodeRepositoryContains": {
Expand Down Expand Up @@ -26309,7 +26309,11 @@
"com.amazonaws.sagemaker#GitConfigUrl": {
"type": "string",
"traits": {
"smithy.api#pattern": "^https://([^/]+)/?(.*)$"
"smithy.api#length": {
"min": 11,
"max": 1024
},
"smithy.api#pattern": "^https://([^/]+)/?.{3,1016}$"
}
},
"com.amazonaws.sagemaker#Group": {
Expand Down Expand Up @@ -39877,6 +39881,9 @@
},
"LastMonitoringExecutionSummary": {
"target": "com.amazonaws.sagemaker#MonitoringExecutionSummary"
},
"BatchTransformInput": {
"target": "com.amazonaws.sagemaker#BatchTransformInput"
}
},
"traits": {
Expand Down Expand Up @@ -40490,7 +40497,7 @@
"min": 1,
"max": 2048
},
"smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:model-package/"
"smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:model-package/[\\S]{1,2048}$"
}
},
"com.amazonaws.sagemaker#ModelPackageArnList": {
Expand Down Expand Up @@ -40657,7 +40664,7 @@
"min": 1,
"max": 2048
},
"smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:model-package-group/"
"smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:model-package-group/[\\S]{1,2048}$"
}
},
"com.amazonaws.sagemaker#ModelPackageGroupSortBy": {
Expand Down Expand Up @@ -47472,7 +47479,7 @@
"min": 1,
"max": 2048
},
"smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:project:"
"smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:project/[\\S]{1,2048}$"
}
},
"com.amazonaws.sagemaker#ProjectEntityName": {
Expand Down

0 comments on commit 1725b9c

Please sign in to comment.