import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateCampaignRequest, CreateCampaignResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateCampaignCommand}. */ export interface CreateCampaignCommandInput extends CreateCampaignRequest { } /** * @public * * The output of {@link CreateCampaignCommand}. */ export interface CreateCampaignCommandOutput extends CreateCampaignResponse, __MetadataBearer { } declare const CreateCampaignCommand_base: { new (input: CreateCampaignCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateCampaignCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** * *

You incur campaign costs while it is active. To avoid unnecessary costs, make sure to delete the campaign when you are finished. For information about campaign * costs, see Amazon Personalize pricing.

*
*

Creates a campaign that deploys a solution version. When a client calls the * GetRecommendations * and * GetPersonalizedRanking * APIs, a campaign is specified in the request.

*

* Minimum Provisioned TPS and Auto-Scaling *

* *

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

*
*

* When you create an Amazon Personalize campaign, you can specify the minimum provisioned transactions per second * (minProvisionedTPS) for the campaign. This is the baseline transaction throughput for the campaign provisioned by * Amazon Personalize. It sets the minimum billing charge for the campaign while it is active. A transaction is a single GetRecommendations or * GetPersonalizedRanking request. The default minProvisionedTPS is 1.

*

If your TPS increases beyond the minProvisionedTPS, Amazon Personalize auto-scales the provisioned capacity up * and down, but never below minProvisionedTPS. * There's a short time delay while the capacity is increased * that might cause loss of transactions. When your traffic reduces, capacity returns to the minProvisionedTPS. *

*

You are charged for the * the minimum provisioned TPS or, if your requests exceed the minProvisionedTPS, the actual TPS. * The actual TPS is the total number of recommendation requests you make. * We recommend starting with a low minProvisionedTPS, track * your usage using Amazon CloudWatch metrics, and then increase the minProvisionedTPS as necessary.

*

For more information about campaign costs, see Amazon Personalize pricing.

*

* Status *

*

A campaign can be in one of the following states:

* *

To get the campaign status, call DescribeCampaign.

* *

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

*
*

* Related APIs *

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PersonalizeClient, CreateCampaignCommand } from "@aws-sdk/client-personalize"; // ES Modules import * // const { PersonalizeClient, CreateCampaignCommand } = 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 = { // CreateCampaignRequest * name: "STRING_VALUE", // required * solutionVersionArn: "STRING_VALUE", // required * minProvisionedTPS: Number("int"), * campaignConfig: { // CampaignConfig * itemExplorationConfig: { // HyperParameters * "": "STRING_VALUE", * }, * enableMetadataWithRecommendations: true || false, * syncWithLatestSolutionVersion: true || false, * rankingInfluence: { // RankingInfluence * "": Number("double"), * }, * }, * tags: [ // Tags * { // Tag * tagKey: "STRING_VALUE", // required * tagValue: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateCampaignCommand(input); * const response = await client.send(command); * // { // CreateCampaignResponse * // campaignArn: "STRING_VALUE", * // }; * * ``` * * @param CreateCampaignCommandInput - {@link CreateCampaignCommandInput} * @returns {@link CreateCampaignCommandOutput} * @see {@link CreateCampaignCommandInput} for command's `input` shape. * @see {@link CreateCampaignCommandOutput} 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 CreateCampaignCommand extends CreateCampaignCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateCampaignRequest; output: CreateCampaignResponse; }; sdk: { input: CreateCampaignCommandInput; output: CreateCampaignCommandOutput; }; }; }