import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types"; import { CodestarNotificationsClient } from "./CodestarNotificationsClient"; import { type CreateNotificationRuleCommandInput, type CreateNotificationRuleCommandOutput } from "./commands/CreateNotificationRuleCommand"; import { type DeleteNotificationRuleCommandInput, type DeleteNotificationRuleCommandOutput } from "./commands/DeleteNotificationRuleCommand"; import { type DeleteTargetCommandInput, type DeleteTargetCommandOutput } from "./commands/DeleteTargetCommand"; import { type DescribeNotificationRuleCommandInput, type DescribeNotificationRuleCommandOutput } from "./commands/DescribeNotificationRuleCommand"; import { type ListEventTypesCommandInput, type ListEventTypesCommandOutput } from "./commands/ListEventTypesCommand"; import { type ListNotificationRulesCommandInput, type ListNotificationRulesCommandOutput } from "./commands/ListNotificationRulesCommand"; import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand"; import { type ListTargetsCommandInput, type ListTargetsCommandOutput } from "./commands/ListTargetsCommand"; import { type SubscribeCommandInput, type SubscribeCommandOutput } from "./commands/SubscribeCommand"; import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand"; import { type UnsubscribeCommandInput, type UnsubscribeCommandOutput } from "./commands/UnsubscribeCommand"; import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand"; import { type UpdateNotificationRuleCommandInput, type UpdateNotificationRuleCommandOutput } from "./commands/UpdateNotificationRuleCommand"; /** * @public */ export interface CodestarNotificationsRequestOptions extends __HttpHandlerOptions { metricsRecorder?: __MetricsRecorder; } export interface CodestarNotifications { /** * @see {@link CreateNotificationRuleCommand} */ createNotificationRule(args: CreateNotificationRuleCommandInput, options?: CodestarNotificationsRequestOptions): Promise; createNotificationRule(args: CreateNotificationRuleCommandInput, cb: (err: any, data?: CreateNotificationRuleCommandOutput) => void): void; createNotificationRule(args: CreateNotificationRuleCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: CreateNotificationRuleCommandOutput) => void): void; /** * @see {@link DeleteNotificationRuleCommand} */ deleteNotificationRule(args: DeleteNotificationRuleCommandInput, options?: CodestarNotificationsRequestOptions): Promise; deleteNotificationRule(args: DeleteNotificationRuleCommandInput, cb: (err: any, data?: DeleteNotificationRuleCommandOutput) => void): void; deleteNotificationRule(args: DeleteNotificationRuleCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: DeleteNotificationRuleCommandOutput) => void): void; /** * @see {@link DeleteTargetCommand} */ deleteTarget(args: DeleteTargetCommandInput, options?: CodestarNotificationsRequestOptions): Promise; deleteTarget(args: DeleteTargetCommandInput, cb: (err: any, data?: DeleteTargetCommandOutput) => void): void; deleteTarget(args: DeleteTargetCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: DeleteTargetCommandOutput) => void): void; /** * @see {@link DescribeNotificationRuleCommand} */ describeNotificationRule(args: DescribeNotificationRuleCommandInput, options?: CodestarNotificationsRequestOptions): Promise; describeNotificationRule(args: DescribeNotificationRuleCommandInput, cb: (err: any, data?: DescribeNotificationRuleCommandOutput) => void): void; describeNotificationRule(args: DescribeNotificationRuleCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: DescribeNotificationRuleCommandOutput) => void): void; /** * @see {@link ListEventTypesCommand} */ listEventTypes(): Promise; listEventTypes(args: ListEventTypesCommandInput, options?: CodestarNotificationsRequestOptions): Promise; listEventTypes(args: ListEventTypesCommandInput, cb: (err: any, data?: ListEventTypesCommandOutput) => void): void; listEventTypes(args: ListEventTypesCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: ListEventTypesCommandOutput) => void): void; /** * @see {@link ListNotificationRulesCommand} */ listNotificationRules(): Promise; listNotificationRules(args: ListNotificationRulesCommandInput, options?: CodestarNotificationsRequestOptions): Promise; listNotificationRules(args: ListNotificationRulesCommandInput, cb: (err: any, data?: ListNotificationRulesCommandOutput) => void): void; listNotificationRules(args: ListNotificationRulesCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: ListNotificationRulesCommandOutput) => void): void; /** * @see {@link ListTagsForResourceCommand} */ listTagsForResource(args: ListTagsForResourceCommandInput, options?: CodestarNotificationsRequestOptions): Promise; listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void; listTagsForResource(args: ListTagsForResourceCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void; /** * @see {@link ListTargetsCommand} */ listTargets(): Promise; listTargets(args: ListTargetsCommandInput, options?: CodestarNotificationsRequestOptions): Promise; listTargets(args: ListTargetsCommandInput, cb: (err: any, data?: ListTargetsCommandOutput) => void): void; listTargets(args: ListTargetsCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: ListTargetsCommandOutput) => void): void; /** * @see {@link SubscribeCommand} */ subscribe(args: SubscribeCommandInput, options?: CodestarNotificationsRequestOptions): Promise; subscribe(args: SubscribeCommandInput, cb: (err: any, data?: SubscribeCommandOutput) => void): void; subscribe(args: SubscribeCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: SubscribeCommandOutput) => void): void; /** * @see {@link TagResourceCommand} */ tagResource(args: TagResourceCommandInput, options?: CodestarNotificationsRequestOptions): Promise; tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void; tagResource(args: TagResourceCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void; /** * @see {@link UnsubscribeCommand} */ unsubscribe(args: UnsubscribeCommandInput, options?: CodestarNotificationsRequestOptions): Promise; unsubscribe(args: UnsubscribeCommandInput, cb: (err: any, data?: UnsubscribeCommandOutput) => void): void; unsubscribe(args: UnsubscribeCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: UnsubscribeCommandOutput) => void): void; /** * @see {@link UntagResourceCommand} */ untagResource(args: UntagResourceCommandInput, options?: CodestarNotificationsRequestOptions): Promise; untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void; untagResource(args: UntagResourceCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void; /** * @see {@link UpdateNotificationRuleCommand} */ updateNotificationRule(args: UpdateNotificationRuleCommandInput, options?: CodestarNotificationsRequestOptions): Promise; updateNotificationRule(args: UpdateNotificationRuleCommandInput, cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void): void; updateNotificationRule(args: UpdateNotificationRuleCommandInput, options: CodestarNotificationsRequestOptions, cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void): void; /** * @see {@link ListEventTypesCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListEventTypesCommandOutput}. */ paginateListEventTypes(args?: ListEventTypesCommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link ListNotificationRulesCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListNotificationRulesCommandOutput}. */ paginateListNotificationRules(args?: ListNotificationRulesCommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link ListTargetsCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListTargetsCommandOutput}. */ paginateListTargets(args?: ListTargetsCommandInput, paginationConfig?: Omit): Paginator; } /** *

This CodeStar Notifications API Reference provides descriptions and usage examples of the * operations and data types for the CodeStar Notifications API. You can use the CodeStar Notifications API * to work with the following objects:

*

Notification rules, by calling the following:

* *

Targets, by calling the following:

*
    *
  • *

    * DeleteTarget, which removes a notification rule target from a * notification rule.

    *
  • *
  • *

    * ListTargets, which lists the targets associated with a * notification rule.

    *
  • *
*

Events, by calling the following:

*
    *
  • *

    * ListEventTypes, which lists the event types you can include in * a notification rule.

    *
  • *
*

Tags, by calling the following:

*
    *
  • *

    * ListTagsForResource, which lists the tags already associated * with a notification rule in your account.

    *
  • *
  • *

    * TagResource, which associates a tag you provide with a * notification rule in your account.

    *
  • *
  • *

    * UntagResource, which removes a tag from a notification rule in * your account.

    *
  • *
*

For information about how to use CodeStar Notifications, see the Amazon Web Services Developer Tools Console User Guide. *

* @public */ export declare class CodestarNotifications extends CodestarNotificationsClient implements CodestarNotifications { }