import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateNotificationRuleRequest, UpdateNotificationRuleResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateNotificationRuleCommand}. */ export interface UpdateNotificationRuleCommandInput extends UpdateNotificationRuleRequest { } /** * @public * * The output of {@link UpdateNotificationRuleCommand}. */ export interface UpdateNotificationRuleCommandOutput extends UpdateNotificationRuleResult, __MetadataBearer { } declare const UpdateNotificationRuleCommand_base: { new (input: UpdateNotificationRuleCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateNotificationRuleCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates a notification rule for a resource. You can change the events that trigger the * notification rule, the status of the rule, and the targets that receive the * notifications.

* *

To add or remove tags for a notification rule, you must use TagResource and UntagResource.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodestarNotificationsClient, UpdateNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import * // const { CodestarNotificationsClient, UpdateNotificationRuleCommand } = 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 = { // UpdateNotificationRuleRequest * Arn: "STRING_VALUE", // required * Name: "STRING_VALUE", * Status: "ENABLED" || "DISABLED", * EventTypeIds: [ // EventTypeIds * "STRING_VALUE", * ], * Targets: [ // Targets * { // Target * TargetType: "STRING_VALUE", * TargetAddress: "STRING_VALUE", * }, * ], * DetailType: "BASIC" || "FULL", * }; * const command = new UpdateNotificationRuleCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateNotificationRuleCommandInput - {@link UpdateNotificationRuleCommandInput} * @returns {@link UpdateNotificationRuleCommandOutput} * @see {@link UpdateNotificationRuleCommandInput} for command's `input` shape. * @see {@link UpdateNotificationRuleCommandOutput} for command's `response` shape. * @see {@link CodestarNotificationsClientResolvedConfig | config} for CodestarNotificationsClient's `config` shape. * * @throws {@link ConfigurationException} (client fault) *

Some or all of the configuration is incomplete, missing, or not valid.

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

CodeStar Notifications can't find a resource that matches the provided ARN.

* * @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 UpdateNotificationRuleCommand extends UpdateNotificationRuleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateNotificationRuleRequest; output: {}; }; sdk: { input: UpdateNotificationRuleCommandInput; output: UpdateNotificationRuleCommandOutput; }; }; }