import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListCampaignsRequest, ListCampaignsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListCampaignsCommand}. */ export interface ListCampaignsCommandInput extends ListCampaignsRequest { } /** * @public * * The output of {@link ListCampaignsCommand}. */ export interface ListCampaignsCommandOutput extends ListCampaignsResponse, __MetadataBearer { } declare const ListCampaignsCommand_base: { new (input: ListCampaignsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListCampaignsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns a list of campaigns that use the given solution. * When a solution is not specified, all the campaigns associated with the account are listed. * The response provides the properties for each campaign, including the Amazon Resource Name (ARN). * For more information on campaigns, see CreateCampaign.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PersonalizeClient, ListCampaignsCommand } from "@aws-sdk/client-personalize"; // ES Modules import * // const { PersonalizeClient, ListCampaignsCommand } = 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 = { // ListCampaignsRequest * solutionArn: "STRING_VALUE", * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new ListCampaignsCommand(input); * const response = await client.send(command); * // { // ListCampaignsResponse * // campaigns: [ // Campaigns * // { // CampaignSummary * // name: "STRING_VALUE", * // campaignArn: "STRING_VALUE", * // status: "STRING_VALUE", * // creationDateTime: new Date("TIMESTAMP"), * // lastUpdatedDateTime: new Date("TIMESTAMP"), * // failureReason: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListCampaignsCommandInput - {@link ListCampaignsCommandInput} * @returns {@link ListCampaignsCommandOutput} * @see {@link ListCampaignsCommandInput} for command's `input` shape. * @see {@link ListCampaignsCommandOutput} 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 InvalidNextTokenException} (client fault) *

The token is not valid.

* * @throws {@link PersonalizeServiceException} *

Base exception class for all service exceptions from Personalize service.

* * * @public */ export declare class ListCampaignsCommand extends ListCampaignsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListCampaignsRequest; output: ListCampaignsResponse; }; sdk: { input: ListCampaignsCommandInput; output: ListCampaignsCommandOutput; }; }; }