import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListTargetsRequest, ListTargetsResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListTargetsCommand}. */ export interface ListTargetsCommandInput extends ListTargetsRequest { } /** * @public * * The output of {@link ListTargetsCommand}. */ export interface ListTargetsCommandOutput extends ListTargetsResult, __MetadataBearer { } declare const ListTargetsCommand_base: { new (input: ListTargetsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListTargetsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns a list of the notification rule targets for an Amazon Web Services account.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodestarNotificationsClient, ListTargetsCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import * // const { CodestarNotificationsClient, ListTargetsCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import * // import type { CodestarNotificationsClientConfig } from "@aws-sdk/client-codestar-notifications"; * const config = {}; // type is CodestarNotificationsClientConfig * const client = new CodestarNotificationsClient(config); * const input = { // ListTargetsRequest * Filters: [ // ListTargetsFilters * { // ListTargetsFilter * Name: "TARGET_TYPE" || "TARGET_ADDRESS" || "TARGET_STATUS", // required * Value: "STRING_VALUE", // required * }, * ], * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new ListTargetsCommand(input); * const response = await client.send(command); * // { // ListTargetsResult * // Targets: [ // TargetsBatch * // { // TargetSummary * // TargetAddress: "STRING_VALUE", * // TargetType: "STRING_VALUE", * // TargetStatus: "PENDING" || "ACTIVE" || "UNREACHABLE" || "INACTIVE" || "DEACTIVATED", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListTargetsCommandInput - {@link ListTargetsCommandInput} * @returns {@link ListTargetsCommandOutput} * @see {@link ListTargetsCommandInput} for command's `input` shape. * @see {@link ListTargetsCommandOutput} for command's `response` shape. * @see {@link CodestarNotificationsClientResolvedConfig | config} for CodestarNotificationsClient's `config` shape. * * @throws {@link InvalidNextTokenException} (client fault) *

The value for the enumeration token used in the request to return the next batch of the results is not valid.

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

One or more parameter values are not valid.

* * @throws {@link CodestarNotificationsServiceException} *

Base exception class for all service exceptions from CodestarNotifications service.

* * * @public */ export declare class ListTargetsCommand extends ListTargetsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListTargetsRequest; output: ListTargetsResult; }; sdk: { input: ListTargetsCommandInput; output: ListTargetsCommandOutput; }; }; }