Skip to content

Commit 74b38f9

Browse files
author
awstools
committed
feat(client-sagemaker): This release adds: UpdateFeatureGroup, UpdateFeatureMetadata, DescribeFeatureMetadata APIs; FeatureMetadata type in Search API; LastModifiedTime, LastUpdateStatus, OnlineStoreTotalSizeBytes in DescribeFeatureGroup API.
1 parent 76b0af1 commit 74b38f9

15 files changed

+1982
-412
lines changed

clients/client-sagemaker/src/SageMaker.ts

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,11 @@ import {
492492
DescribeFeatureGroupCommandInput,
493493
DescribeFeatureGroupCommandOutput,
494494
} from "./commands/DescribeFeatureGroupCommand";
495+
import {
496+
DescribeFeatureMetadataCommand,
497+
DescribeFeatureMetadataCommandInput,
498+
DescribeFeatureMetadataCommandOutput,
499+
} from "./commands/DescribeFeatureMetadataCommand";
495500
import {
496501
DescribeFlowDefinitionCommand,
497502
DescribeFlowDefinitionCommandInput,
@@ -1106,6 +1111,16 @@ import {
11061111
UpdateExperimentCommandInput,
11071112
UpdateExperimentCommandOutput,
11081113
} from "./commands/UpdateExperimentCommand";
1114+
import {
1115+
UpdateFeatureGroupCommand,
1116+
UpdateFeatureGroupCommandInput,
1117+
UpdateFeatureGroupCommandOutput,
1118+
} from "./commands/UpdateFeatureGroupCommand";
1119+
import {
1120+
UpdateFeatureMetadataCommand,
1121+
UpdateFeatureMetadataCommandInput,
1122+
UpdateFeatureMetadataCommandOutput,
1123+
} from "./commands/UpdateFeatureMetadataCommand";
11091124
import { UpdateImageCommand, UpdateImageCommandInput, UpdateImageCommandOutput } from "./commands/UpdateImageCommand";
11101125
import {
11111126
UpdateModelPackageCommand,
@@ -5218,6 +5233,38 @@ export class SageMaker extends SageMakerClient {
52185233
}
52195234
}
52205235

5236+
/**
5237+
* <p>Shows the metadata for a feature within a feature group.</p>
5238+
*/
5239+
public describeFeatureMetadata(
5240+
args: DescribeFeatureMetadataCommandInput,
5241+
options?: __HttpHandlerOptions
5242+
): Promise<DescribeFeatureMetadataCommandOutput>;
5243+
public describeFeatureMetadata(
5244+
args: DescribeFeatureMetadataCommandInput,
5245+
cb: (err: any, data?: DescribeFeatureMetadataCommandOutput) => void
5246+
): void;
5247+
public describeFeatureMetadata(
5248+
args: DescribeFeatureMetadataCommandInput,
5249+
options: __HttpHandlerOptions,
5250+
cb: (err: any, data?: DescribeFeatureMetadataCommandOutput) => void
5251+
): void;
5252+
public describeFeatureMetadata(
5253+
args: DescribeFeatureMetadataCommandInput,
5254+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeFeatureMetadataCommandOutput) => void),
5255+
cb?: (err: any, data?: DescribeFeatureMetadataCommandOutput) => void
5256+
): Promise<DescribeFeatureMetadataCommandOutput> | void {
5257+
const command = new DescribeFeatureMetadataCommand(args);
5258+
if (typeof optionsOrCb === "function") {
5259+
this.send(command, optionsOrCb);
5260+
} else if (typeof cb === "function") {
5261+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
5262+
this.send(command, optionsOrCb || {}, cb);
5263+
} else {
5264+
return this.send(command, optionsOrCb);
5265+
}
5266+
}
5267+
52215268
/**
52225269
* <p>Returns information about the specified flow definition.</p>
52235270
*/
@@ -9521,6 +9568,70 @@ export class SageMaker extends SageMakerClient {
95219568
}
95229569
}
95239570

9571+
/**
9572+
* <p>Updates the feature group.</p>
9573+
*/
9574+
public updateFeatureGroup(
9575+
args: UpdateFeatureGroupCommandInput,
9576+
options?: __HttpHandlerOptions
9577+
): Promise<UpdateFeatureGroupCommandOutput>;
9578+
public updateFeatureGroup(
9579+
args: UpdateFeatureGroupCommandInput,
9580+
cb: (err: any, data?: UpdateFeatureGroupCommandOutput) => void
9581+
): void;
9582+
public updateFeatureGroup(
9583+
args: UpdateFeatureGroupCommandInput,
9584+
options: __HttpHandlerOptions,
9585+
cb: (err: any, data?: UpdateFeatureGroupCommandOutput) => void
9586+
): void;
9587+
public updateFeatureGroup(
9588+
args: UpdateFeatureGroupCommandInput,
9589+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateFeatureGroupCommandOutput) => void),
9590+
cb?: (err: any, data?: UpdateFeatureGroupCommandOutput) => void
9591+
): Promise<UpdateFeatureGroupCommandOutput> | void {
9592+
const command = new UpdateFeatureGroupCommand(args);
9593+
if (typeof optionsOrCb === "function") {
9594+
this.send(command, optionsOrCb);
9595+
} else if (typeof cb === "function") {
9596+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
9597+
this.send(command, optionsOrCb || {}, cb);
9598+
} else {
9599+
return this.send(command, optionsOrCb);
9600+
}
9601+
}
9602+
9603+
/**
9604+
* <p>Updates the description and parameters of the feature group.</p>
9605+
*/
9606+
public updateFeatureMetadata(
9607+
args: UpdateFeatureMetadataCommandInput,
9608+
options?: __HttpHandlerOptions
9609+
): Promise<UpdateFeatureMetadataCommandOutput>;
9610+
public updateFeatureMetadata(
9611+
args: UpdateFeatureMetadataCommandInput,
9612+
cb: (err: any, data?: UpdateFeatureMetadataCommandOutput) => void
9613+
): void;
9614+
public updateFeatureMetadata(
9615+
args: UpdateFeatureMetadataCommandInput,
9616+
options: __HttpHandlerOptions,
9617+
cb: (err: any, data?: UpdateFeatureMetadataCommandOutput) => void
9618+
): void;
9619+
public updateFeatureMetadata(
9620+
args: UpdateFeatureMetadataCommandInput,
9621+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateFeatureMetadataCommandOutput) => void),
9622+
cb?: (err: any, data?: UpdateFeatureMetadataCommandOutput) => void
9623+
): Promise<UpdateFeatureMetadataCommandOutput> | void {
9624+
const command = new UpdateFeatureMetadataCommand(args);
9625+
if (typeof optionsOrCb === "function") {
9626+
this.send(command, optionsOrCb);
9627+
} else if (typeof cb === "function") {
9628+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
9629+
this.send(command, optionsOrCb || {}, cb);
9630+
} else {
9631+
return this.send(command, optionsOrCb);
9632+
}
9633+
}
9634+
95249635
/**
95259636
* <p>Updates the properties of a SageMaker image. To change the image's tags, use the
95269637
* <a>AddTags</a> and <a>DeleteTags</a> APIs.</p>

clients/client-sagemaker/src/SageMakerClient.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ import {
298298
DescribeFeatureGroupCommandInput,
299299
DescribeFeatureGroupCommandOutput,
300300
} from "./commands/DescribeFeatureGroupCommand";
301+
import {
302+
DescribeFeatureMetadataCommandInput,
303+
DescribeFeatureMetadataCommandOutput,
304+
} from "./commands/DescribeFeatureMetadataCommand";
301305
import {
302306
DescribeFlowDefinitionCommandInput,
303307
DescribeFlowDefinitionCommandOutput,
@@ -650,6 +654,11 @@ import {
650654
UpdateEndpointWeightsAndCapacitiesCommandOutput,
651655
} from "./commands/UpdateEndpointWeightsAndCapacitiesCommand";
652656
import { UpdateExperimentCommandInput, UpdateExperimentCommandOutput } from "./commands/UpdateExperimentCommand";
657+
import { UpdateFeatureGroupCommandInput, UpdateFeatureGroupCommandOutput } from "./commands/UpdateFeatureGroupCommand";
658+
import {
659+
UpdateFeatureMetadataCommandInput,
660+
UpdateFeatureMetadataCommandOutput,
661+
} from "./commands/UpdateFeatureMetadataCommand";
653662
import { UpdateImageCommandInput, UpdateImageCommandOutput } from "./commands/UpdateImageCommand";
654663
import { UpdateModelPackageCommandInput, UpdateModelPackageCommandOutput } from "./commands/UpdateModelPackageCommand";
655664
import {
@@ -789,6 +798,7 @@ export type ServiceInputTypes =
789798
| DescribeEndpointConfigCommandInput
790799
| DescribeExperimentCommandInput
791800
| DescribeFeatureGroupCommandInput
801+
| DescribeFeatureMetadataCommandInput
792802
| DescribeFlowDefinitionCommandInput
793803
| DescribeHumanTaskUiCommandInput
794804
| DescribeHyperParameterTuningJobCommandInput
@@ -919,6 +929,8 @@ export type ServiceInputTypes =
919929
| UpdateEndpointCommandInput
920930
| UpdateEndpointWeightsAndCapacitiesCommandInput
921931
| UpdateExperimentCommandInput
932+
| UpdateFeatureGroupCommandInput
933+
| UpdateFeatureMetadataCommandInput
922934
| UpdateImageCommandInput
923935
| UpdateModelPackageCommandInput
924936
| UpdateMonitoringScheduleCommandInput
@@ -1042,6 +1054,7 @@ export type ServiceOutputTypes =
10421054
| DescribeEndpointConfigCommandOutput
10431055
| DescribeExperimentCommandOutput
10441056
| DescribeFeatureGroupCommandOutput
1057+
| DescribeFeatureMetadataCommandOutput
10451058
| DescribeFlowDefinitionCommandOutput
10461059
| DescribeHumanTaskUiCommandOutput
10471060
| DescribeHyperParameterTuningJobCommandOutput
@@ -1172,6 +1185,8 @@ export type ServiceOutputTypes =
11721185
| UpdateEndpointCommandOutput
11731186
| UpdateEndpointWeightsAndCapacitiesCommandOutput
11741187
| UpdateExperimentCommandOutput
1188+
| UpdateFeatureGroupCommandOutput
1189+
| UpdateFeatureMetadataCommandOutput
11751190
| UpdateImageCommandOutput
11761191
| UpdateModelPackageCommandOutput
11771192
| UpdateMonitoringScheduleCommandOutput
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
// smithy-typescript generated code
2+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4+
import { Command as $Command } from "@aws-sdk/smithy-client";
5+
import {
6+
FinalizeHandlerArguments,
7+
Handler,
8+
HandlerExecutionContext,
9+
HttpHandlerOptions as __HttpHandlerOptions,
10+
MetadataBearer as __MetadataBearer,
11+
MiddlewareStack,
12+
SerdeContext as __SerdeContext,
13+
} from "@aws-sdk/types";
14+
15+
import { DescribeFeatureMetadataRequest, DescribeFeatureMetadataResponse } from "../models/models_1";
16+
import {
17+
deserializeAws_json1_1DescribeFeatureMetadataCommand,
18+
serializeAws_json1_1DescribeFeatureMetadataCommand,
19+
} from "../protocols/Aws_json1_1";
20+
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
21+
22+
export interface DescribeFeatureMetadataCommandInput extends DescribeFeatureMetadataRequest {}
23+
export interface DescribeFeatureMetadataCommandOutput extends DescribeFeatureMetadataResponse, __MetadataBearer {}
24+
25+
/**
26+
* <p>Shows the metadata for a feature within a feature group.</p>
27+
* @example
28+
* Use a bare-bones client and the command you need to make an API call.
29+
* ```javascript
30+
* import { SageMakerClient, DescribeFeatureMetadataCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import
31+
* // const { SageMakerClient, DescribeFeatureMetadataCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import
32+
* const client = new SageMakerClient(config);
33+
* const command = new DescribeFeatureMetadataCommand(input);
34+
* const response = await client.send(command);
35+
* ```
36+
*
37+
* @see {@link DescribeFeatureMetadataCommandInput} for command's `input` shape.
38+
* @see {@link DescribeFeatureMetadataCommandOutput} for command's `response` shape.
39+
* @see {@link SageMakerClientResolvedConfig | config} for SageMakerClient's `config` shape.
40+
*
41+
*/
42+
export class DescribeFeatureMetadataCommand extends $Command<
43+
DescribeFeatureMetadataCommandInput,
44+
DescribeFeatureMetadataCommandOutput,
45+
SageMakerClientResolvedConfig
46+
> {
47+
// Start section: command_properties
48+
// End section: command_properties
49+
50+
constructor(readonly input: DescribeFeatureMetadataCommandInput) {
51+
// Start section: command_constructor
52+
super();
53+
// End section: command_constructor
54+
}
55+
56+
/**
57+
* @internal
58+
*/
59+
resolveMiddleware(
60+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61+
configuration: SageMakerClientResolvedConfig,
62+
options?: __HttpHandlerOptions
63+
): Handler<DescribeFeatureMetadataCommandInput, DescribeFeatureMetadataCommandOutput> {
64+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65+
66+
const stack = clientStack.concat(this.middlewareStack);
67+
68+
const { logger } = configuration;
69+
const clientName = "SageMakerClient";
70+
const commandName = "DescribeFeatureMetadataCommand";
71+
const handlerExecutionContext: HandlerExecutionContext = {
72+
logger,
73+
clientName,
74+
commandName,
75+
inputFilterSensitiveLog: DescribeFeatureMetadataRequest.filterSensitiveLog,
76+
outputFilterSensitiveLog: DescribeFeatureMetadataResponse.filterSensitiveLog,
77+
};
78+
const { requestHandler } = configuration;
79+
return stack.resolve(
80+
(request: FinalizeHandlerArguments<any>) =>
81+
requestHandler.handle(request.request as __HttpRequest, options || {}),
82+
handlerExecutionContext
83+
);
84+
}
85+
86+
private serialize(input: DescribeFeatureMetadataCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87+
return serializeAws_json1_1DescribeFeatureMetadataCommand(input, context);
88+
}
89+
90+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeFeatureMetadataCommandOutput> {
91+
return deserializeAws_json1_1DescribeFeatureMetadataCommand(output, context);
92+
}
93+
94+
// Start section: command_body_extra
95+
// End section: command_body_extra
96+
}

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ import {
1212
SerdeContext as __SerdeContext,
1313
} from "@aws-sdk/types";
1414

15-
import {
16-
DescribeInferenceRecommendationsJobRequest,
17-
DescribeInferenceRecommendationsJobResponse,
18-
} from "../models/models_1";
15+
import { DescribeInferenceRecommendationsJobRequest } from "../models/models_1";
16+
import { DescribeInferenceRecommendationsJobResponse } from "../models/models_2";
1917
import {
2018
deserializeAws_json1_1DescribeInferenceRecommendationsJobCommand,
2119
serializeAws_json1_1DescribeInferenceRecommendationsJobCommand,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
SerdeContext as __SerdeContext,
1313
} from "@aws-sdk/types";
1414

15-
import { ListProjectsInput, ListProjectsOutput } from "../models/models_2";
15+
import { ListProjectsInput, ListProjectsOutput } from "../models/models_3";
1616
import {
1717
deserializeAws_json1_1ListProjectsCommand,
1818
serializeAws_json1_1ListProjectsCommand,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import {
1212
SerdeContext as __SerdeContext,
1313
} from "@aws-sdk/types";
1414

15-
import { ListStudioLifecycleConfigsRequest } from "../models/models_2";
16-
import { ListStudioLifecycleConfigsResponse } from "../models/models_3";
15+
import { ListStudioLifecycleConfigsRequest, ListStudioLifecycleConfigsResponse } from "../models/models_3";
1716
import {
1817
deserializeAws_json1_1ListStudioLifecycleConfigsCommand,
1918
serializeAws_json1_1ListStudioLifecycleConfigsCommand,

0 commit comments

Comments
 (0)