import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetJourneyRunsRequest, GetJourneyRunsResponse } from "../models/models_1"; import type { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetJourneyRunsCommand}. */ export interface GetJourneyRunsCommandInput extends GetJourneyRunsRequest { } /** * @public * * The output of {@link GetJourneyRunsCommand}. */ export interface GetJourneyRunsCommandOutput extends GetJourneyRunsResponse, __MetadataBearer { } declare const GetJourneyRunsCommand_base: { new (input: GetJourneyRunsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetJourneyRunsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Provides information about the runs of a journey.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PinpointClient, GetJourneyRunsCommand } from "@aws-sdk/client-pinpoint"; // ES Modules import * // const { PinpointClient, GetJourneyRunsCommand } = require("@aws-sdk/client-pinpoint"); // CommonJS import * // import type { PinpointClientConfig } from "@aws-sdk/client-pinpoint"; * const config = {}; // type is PinpointClientConfig * const client = new PinpointClient(config); * const input = { // GetJourneyRunsRequest * ApplicationId: "STRING_VALUE", // required * JourneyId: "STRING_VALUE", // required * PageSize: "STRING_VALUE", * Token: "STRING_VALUE", * }; * const command = new GetJourneyRunsCommand(input); * const response = await client.send(command); * // { // GetJourneyRunsResponse * // JourneyRunsResponse: { // JourneyRunsResponse * // Item: [ // ListOfJourneyRunResponse // required * // { // JourneyRunResponse * // CreationTime: "STRING_VALUE", // required * // LastUpdateTime: "STRING_VALUE", // required * // RunId: "STRING_VALUE", // required * // Status: "SCHEDULED" || "RUNNING" || "COMPLETED" || "CANCELLED", // required * // }, * // ], * // NextToken: "STRING_VALUE", * // }, * // }; * * ``` * * @param GetJourneyRunsCommandInput - {@link GetJourneyRunsCommandInput} * @returns {@link GetJourneyRunsCommandOutput} * @see {@link GetJourneyRunsCommandInput} for command's `input` shape. * @see {@link GetJourneyRunsCommandOutput} for command's `response` shape. * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

Provides information about an API request or response.

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

Provides information about an API request or response.

* * @throws {@link InternalServerErrorException} (server fault) *

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

* * @throws {@link PinpointServiceException} *

Base exception class for all service exceptions from Pinpoint service.

* * * @example To get the runs of a journey * ```javascript * // The following example gets the runs of a journey. * const input = { * ApplicationId: "11111111112222222222333333333344", * JourneyId: "aaaaaaaaaabbbbbbbbbbccccccccccdd" * }; * const command = new GetJourneyRunsCommand(input); * const response = await client.send(command); * /* response is * { * JourneyRunsResponse: { * Item: [ * { * CreationTime: "2000-01-01T00:00:00.000Z", * LastUpdateTime: "2000-01-01T00:00:05.000Z", * RunId: "99999999998888888888777777777766", * Status: "COMPLETED" * }, * { * CreationTime: "2000-01-01T00:00:10.000Z", * LastUpdateTime: "2000-01-01T00:00:10.000Z", * RunId: "ffffffffffeeeeeeeeeeddddddddddcc", * Status: "SCHEDULED" * } * ] * } * } * *\/ * ``` * * @public */ export declare class GetJourneyRunsCommand extends GetJourneyRunsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetJourneyRunsRequest; output: GetJourneyRunsResponse; }; sdk: { input: GetJourneyRunsCommandInput; output: GetJourneyRunsCommandOutput; }; }; }