import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateRecommenderRequest, CreateRecommenderResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateRecommenderCommand}. */ export interface CreateRecommenderCommandInput extends CreateRecommenderRequest { } /** * @public * * The output of {@link CreateRecommenderCommand}. */ export interface CreateRecommenderCommandOutput extends CreateRecommenderResponse, __MetadataBearer { } declare const CreateRecommenderCommand_base: { new (input: CreateRecommenderCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateRecommenderCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a recommender with the recipe (a Domain dataset group use case) you specify. * You create recommenders for a Domain dataset group and specify the recommender's Amazon Resource Name (ARN) when you make a * GetRecommendations * request. *

*

* Minimum recommendation requests per second *

* *

A high minRecommendationRequestsPerSecond will increase your bill. We recommend starting with 1 for minRecommendationRequestsPerSecond (the default). Track * your usage using Amazon CloudWatch metrics, and increase the minRecommendationRequestsPerSecond * as necessary.

*
*

When you create a recommender, you can configure the recommender's minimum recommendation requests per second. The minimum recommendation requests per second * (minRecommendationRequestsPerSecond) specifies the baseline recommendation request throughput provisioned by * Amazon Personalize. The default minRecommendationRequestsPerSecond is 1. A recommendation request is a single GetRecommendations operation. * Request throughput is measured in requests per second and Amazon Personalize uses your requests per second to derive * your requests per hour and the price of your recommender usage. *

*

* If your requests per second increases beyond * minRecommendationRequestsPerSecond, Amazon Personalize auto-scales the provisioned capacity up and down, * but never below minRecommendationRequestsPerSecond. * There's a short time delay while the capacity is increased that might cause loss of * requests.

*

* Your bill is the greater of either the minimum requests per hour (based on minRecommendationRequestsPerSecond) * or the actual number of requests. The actual request throughput used is calculated as the average requests/second within a one-hour window. * * We recommend starting with the default minRecommendationRequestsPerSecond, track * your usage using Amazon CloudWatch metrics, and then increase the minRecommendationRequestsPerSecond * as necessary. *

*

* Status *

*

A recommender can be in one of the following states:

* *

To get the recommender status, call DescribeRecommender.

* *

Wait until the status of the recommender * is ACTIVE before asking the recommender for recommendations.

*
*

* Related APIs *

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PersonalizeClient, CreateRecommenderCommand } from "@aws-sdk/client-personalize"; // ES Modules import * // const { PersonalizeClient, CreateRecommenderCommand } = require("@aws-sdk/client-personalize"); // CommonJS import * // import type { PersonalizeClientConfig } from "@aws-sdk/client-personalize"; * const config = {}; // type is PersonalizeClientConfig * const client = new PersonalizeClient(config); * const input = { // CreateRecommenderRequest * name: "STRING_VALUE", // required * datasetGroupArn: "STRING_VALUE", // required * recipeArn: "STRING_VALUE", // required * recommenderConfig: { // RecommenderConfig * itemExplorationConfig: { // HyperParameters * "": "STRING_VALUE", * }, * minRecommendationRequestsPerSecond: Number("int"), * trainingDataConfig: { // TrainingDataConfig * excludedDatasetColumns: { // ExcludedDatasetColumns * "": [ // ColumnNamesList * "STRING_VALUE", * ], * }, * includedDatasetColumns: { // IncludedDatasetColumns * "": [ * "STRING_VALUE", * ], * }, * }, * enableMetadataWithRecommendations: true || false, * }, * tags: [ // Tags * { // Tag * tagKey: "STRING_VALUE", // required * tagValue: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateRecommenderCommand(input); * const response = await client.send(command); * // { // CreateRecommenderResponse * // recommenderArn: "STRING_VALUE", * // }; * * ``` * * @param CreateRecommenderCommandInput - {@link CreateRecommenderCommandInput} * @returns {@link CreateRecommenderCommandOutput} * @see {@link CreateRecommenderCommandInput} for command's `input` shape. * @see {@link CreateRecommenderCommandOutput} for command's `response` shape. * @see {@link PersonalizeClientResolvedConfig | config} for PersonalizeClient's `config` shape. * * @throws {@link InvalidInputException} (client fault) *

Provide a valid value for the field or parameter.

* * @throws {@link LimitExceededException} (client fault) *

The limit on the number of requests per second has been exceeded.

* * @throws {@link ResourceAlreadyExistsException} (client fault) *

The specified resource already exists.

* * @throws {@link ResourceInUseException} (client fault) *

The specified resource is in use.

* * @throws {@link ResourceNotFoundException} (client fault) *

Could not find the specified resource.

* * @throws {@link TooManyTagsException} (client fault) *

You have exceeded the maximum number of tags you can apply to this resource.

* * @throws {@link PersonalizeServiceException} *

Base exception class for all service exceptions from Personalize service.

* * * @public */ export declare class CreateRecommenderCommand extends CreateRecommenderCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateRecommenderRequest; output: CreateRecommenderResponse; }; sdk: { input: CreateRecommenderCommandInput; output: CreateRecommenderCommandOutput; }; }; }