import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CodePipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodePipelineClient"; import type { ListWebhooksInput, ListWebhooksOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListWebhooksCommand}. */ export interface ListWebhooksCommandInput extends ListWebhooksInput { } /** * @public * * The output of {@link ListWebhooksCommand}. */ export interface ListWebhooksCommandOutput extends ListWebhooksOutput, __MetadataBearer { } declare const ListWebhooksCommand_base: { new (input: ListWebhooksCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListWebhooksCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Gets a listing of all the webhooks in this Amazon Web Services Region for this * account. The output lists all webhooks and includes the webhook URL and ARN and the * configuration for each webhook.

* *

If a secret token was provided, it will be redacted in the response.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodePipelineClient, ListWebhooksCommand } from "@aws-sdk/client-codepipeline"; // ES Modules import * // const { CodePipelineClient, ListWebhooksCommand } = require("@aws-sdk/client-codepipeline"); // CommonJS import * // import type { CodePipelineClientConfig } from "@aws-sdk/client-codepipeline"; * const config = {}; // type is CodePipelineClientConfig * const client = new CodePipelineClient(config); * const input = { // ListWebhooksInput * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new ListWebhooksCommand(input); * const response = await client.send(command); * // { // ListWebhooksOutput * // webhooks: [ // WebhookList * // { // ListWebhookItem * // definition: { // WebhookDefinition * // name: "STRING_VALUE", // required * // targetPipeline: "STRING_VALUE", // required * // targetAction: "STRING_VALUE", // required * // filters: [ // WebhookFilters // required * // { // WebhookFilterRule * // jsonPath: "STRING_VALUE", // required * // matchEquals: "STRING_VALUE", * // }, * // ], * // authentication: "GITHUB_HMAC" || "IP" || "UNAUTHENTICATED", // required * // authenticationConfiguration: { // WebhookAuthConfiguration * // AllowedIPRange: "STRING_VALUE", * // SecretToken: "STRING_VALUE", * // }, * // }, * // url: "STRING_VALUE", // required * // errorMessage: "STRING_VALUE", * // errorCode: "STRING_VALUE", * // lastTriggered: new Date("TIMESTAMP"), * // arn: "STRING_VALUE", * // tags: [ // TagList * // { // Tag * // key: "STRING_VALUE", // required * // value: "STRING_VALUE", // required * // }, * // ], * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListWebhooksCommandInput - {@link ListWebhooksCommandInput} * @returns {@link ListWebhooksCommandOutput} * @see {@link ListWebhooksCommandInput} for command's `input` shape. * @see {@link ListWebhooksCommandOutput} for command's `response` shape. * @see {@link CodePipelineClientResolvedConfig | config} for CodePipelineClient's `config` shape. * * @throws {@link InvalidNextTokenException} (client fault) *

The next token was specified in an invalid format. Make sure that the next token * you provide is the token returned by a previous call.

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

The validation was specified in an invalid format.

* * @throws {@link CodePipelineServiceException} *

Base exception class for all service exceptions from CodePipeline service.

* * * @public */ export declare class ListWebhooksCommand extends ListWebhooksCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListWebhooksInput; output: ListWebhooksOutput; }; sdk: { input: ListWebhooksCommandInput; output: ListWebhooksCommandOutput; }; }; }