Skip to content

Commit 65ad083

Browse files
author
awstools
committed
feat(client-lookoutvision): This release introduces support for the automatic scaling of inference units used by Amazon Lookout for Vision models.
1 parent 8424fee commit 65ad083

File tree

5 files changed

+49
-3
lines changed

5 files changed

+49
-3
lines changed

clients/client-lookoutvision/src/LookoutVision.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,8 @@ export class LookoutVision extends LookoutVisionClient {
620620
}
621621

622622
/**
623-
* <p>Lists the Amazon Lookout for Vision projects in your AWS account.</p>
623+
* <p>Lists the Amazon Lookout for Vision projects in your AWS account that are in the AWS Region in
624+
* which you call <code>ListProjects</code>.</p>
624625
* <p>The <code>ListProjects</code> operation is eventually consistent.
625626
* Recent calls to <code>CreateProject</code> and <code>DeleteProject</code> might
626627
* take a while to appear in the response from <code>ListProjects</code>.</p>

clients/client-lookoutvision/src/commands/ListProjectsCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export interface ListProjectsCommandInput extends ListProjectsRequest {}
2828
export interface ListProjectsCommandOutput extends ListProjectsResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Lists the Amazon Lookout for Vision projects in your AWS account.</p>
31+
* <p>Lists the Amazon Lookout for Vision projects in your AWS account that are in the AWS Region in
32+
* which you call <code>ListProjects</code>.</p>
3233
* <p>The <code>ListProjects</code> operation is eventually consistent.
3334
* Recent calls to <code>CreateProject</code> and <code>DeleteProject</code> might
3435
* take a while to appear in the response from <code>ListProjects</code>.</p>

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,19 @@ export interface ModelDescription {
846846
* during training.</p>
847847
*/
848848
KmsKeyId?: string;
849+
850+
/**
851+
* <p>The minimum number of inference units used by the model. For more information,
852+
* see <a>StartModel</a>
853+
* </p>
854+
*/
855+
MinInferenceUnits?: number;
856+
857+
/**
858+
* <p>The maximum number of inference units Amazon Lookout for Vision uses to auto-scale the model.
859+
* For more information, see <a>StartModel</a>.</p>
860+
*/
861+
MaxInferenceUnits?: number;
849862
}
850863

851864
export interface DescribeModelResponse {
@@ -1533,6 +1546,12 @@ export interface StartModelRequest {
15331546
* </p>
15341547
*/
15351548
ClientToken?: string;
1549+
1550+
/**
1551+
* <p>The maximum number of inference units to use for auto-scaling the model. If you don't
1552+
* specify a value, Amazon Lookout for Vision doesn't auto-scale the model.</p>
1553+
*/
1554+
MaxInferenceUnits?: number;
15361555
}
15371556

15381557
export enum ModelHostingStatus {

clients/client-lookoutvision/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ export const serializeAws_restJson1StartModelCommand = async (
707707
}
708708
let body: any;
709709
body = JSON.stringify({
710+
...(input.MaxInferenceUnits != null && { MaxInferenceUnits: input.MaxInferenceUnits }),
710711
...(input.MinInferenceUnits != null && { MinInferenceUnits: input.MinInferenceUnits }),
711712
});
712713
return new __HttpRequest({
@@ -2627,6 +2628,8 @@ const deserializeAws_restJson1ModelDescription = (output: any, context: __SerdeC
26272628
? deserializeAws_restJson1OutputS3Object(output.EvaluationResult, context)
26282629
: undefined,
26292630
KmsKeyId: __expectString(output.KmsKeyId),
2631+
MaxInferenceUnits: __expectInt32(output.MaxInferenceUnits),
2632+
MinInferenceUnits: __expectInt32(output.MinInferenceUnits),
26302633
ModelArn: __expectString(output.ModelArn),
26312634
ModelVersion: __expectString(output.ModelVersion),
26322635
OutputConfig:

codegen/sdk-codegen/aws-models/lookoutvision.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,6 +1468,7 @@
14681468
"smithy.api#paginated": {
14691469
"inputToken": "NextToken",
14701470
"outputToken": "NextToken",
1471+
"items": "DatasetEntries",
14711472
"pageSize": "MaxResults"
14721473
}
14731474
}
@@ -1594,6 +1595,7 @@
15941595
"smithy.api#paginated": {
15951596
"inputToken": "NextToken",
15961597
"outputToken": "NextToken",
1598+
"items": "ModelPackagingJobs",
15971599
"pageSize": "MaxResults"
15981600
}
15991601
}
@@ -1680,6 +1682,7 @@
16801682
"smithy.api#paginated": {
16811683
"inputToken": "NextToken",
16821684
"outputToken": "NextToken",
1685+
"items": "Models",
16831686
"pageSize": "MaxResults"
16841687
}
16851688
}
@@ -1757,7 +1760,7 @@
17571760
}
17581761
],
17591762
"traits": {
1760-
"smithy.api#documentation": "<p>Lists the Amazon Lookout for Vision projects in your AWS account.</p>\n <p>The <code>ListProjects</code> operation is eventually consistent. \n Recent calls to <code>CreateProject</code> and <code>DeleteProject</code> might\n take a while to appear in the response from <code>ListProjects</code>.</p>\n <p>This operation requires permissions to perform the\n <code>lookoutvision:ListProjects</code> operation.</p>",
1763+
"smithy.api#documentation": "<p>Lists the Amazon Lookout for Vision projects in your AWS account that are in the AWS Region in \n which you call <code>ListProjects</code>.</p>\n <p>The <code>ListProjects</code> operation is eventually consistent. \n Recent calls to <code>CreateProject</code> and <code>DeleteProject</code> might\n take a while to appear in the response from <code>ListProjects</code>.</p>\n <p>This operation requires permissions to perform the\n <code>lookoutvision:ListProjects</code> operation.</p>",
17611764
"smithy.api#http": {
17621765
"method": "GET",
17631766
"uri": "/2020-11-20/projects",
@@ -1766,6 +1769,7 @@
17661769
"smithy.api#paginated": {
17671770
"inputToken": "NextToken",
17681771
"outputToken": "NextToken",
1772+
"items": "Projects",
17691773
"pageSize": "MaxResults"
17701774
}
17711775
}
@@ -2031,6 +2035,18 @@
20312035
"traits": {
20322036
"smithy.api#documentation": "<p>The identifer for the AWS Key Management Service (AWS KMS) key that was used to encrypt the model\n during training.</p>"
20332037
}
2038+
},
2039+
"MinInferenceUnits": {
2040+
"target": "com.amazonaws.lookoutvision#InferenceUnits",
2041+
"traits": {
2042+
"smithy.api#documentation": "<p>The minimum number of inference units used by the model. For more information,\n see <a>StartModel</a>\n </p>"
2043+
}
2044+
},
2045+
"MaxInferenceUnits": {
2046+
"target": "com.amazonaws.lookoutvision#InferenceUnits",
2047+
"traits": {
2048+
"smithy.api#documentation": "<p>The maximum number of inference units Amazon Lookout for Vision uses to auto-scale the model.\n For more information, see <a>StartModel</a>.</p>"
2049+
}
20342050
}
20352051
},
20362052
"traits": {
@@ -2927,6 +2943,12 @@
29272943
"smithy.api#httpHeader": "X-Amzn-Client-Token",
29282944
"smithy.api#idempotencyToken": {}
29292945
}
2946+
},
2947+
"MaxInferenceUnits": {
2948+
"target": "com.amazonaws.lookoutvision#InferenceUnits",
2949+
"traits": {
2950+
"smithy.api#documentation": "<p>The maximum number of inference units to use for auto-scaling the model. If you don't\n specify a value, Amazon Lookout for Vision doesn't auto-scale the model.</p>"
2951+
}
29302952
}
29312953
}
29322954
},

0 commit comments

Comments
 (0)