import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutNotificationConfigurationType } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PutNotificationConfigurationCommand}. */ export interface PutNotificationConfigurationCommandInput extends PutNotificationConfigurationType { } /** * @public * * The output of {@link PutNotificationConfigurationCommand}. */ export interface PutNotificationConfigurationCommandOutput extends __MetadataBearer { } declare const PutNotificationConfigurationCommand_base: { new (input: PutNotificationConfigurationCommandInput): import("@smithy/core/client").CommandImpl; new (input: PutNotificationConfigurationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Configures an Auto Scaling group to send notifications when specified events take place. * Subscribers to the specified topic can have messages delivered to an endpoint such as a * web server or an email address.

*

This configuration overwrites any existing configuration.

*

For more information, see Amazon SNS * notification options for Amazon EC2 Auto Scaling in the * Amazon EC2 Auto Scaling User Guide.

*

If you exceed your maximum limit of SNS topics, which is 10 per Auto Scaling group, the call * fails.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AutoScalingClient, PutNotificationConfigurationCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import * // const { AutoScalingClient, PutNotificationConfigurationCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import * // import type { AutoScalingClientConfig } from "@aws-sdk/client-auto-scaling"; * const config = {}; // type is AutoScalingClientConfig * const client = new AutoScalingClient(config); * const input = { // PutNotificationConfigurationType * AutoScalingGroupName: "STRING_VALUE", // required * TopicARN: "STRING_VALUE", // required * NotificationTypes: [ // AutoScalingNotificationTypes // required * "STRING_VALUE", * ], * }; * const command = new PutNotificationConfigurationCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param PutNotificationConfigurationCommandInput - {@link PutNotificationConfigurationCommandInput} * @returns {@link PutNotificationConfigurationCommandOutput} * @see {@link PutNotificationConfigurationCommandInput} for command's `input` shape. * @see {@link PutNotificationConfigurationCommandOutput} for command's `response` shape. * @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape. * * @throws {@link LimitExceededFault} (client fault) *

You have already reached a limit for your Amazon EC2 Auto Scaling * resources (for example, Auto Scaling groups, launch configurations, or lifecycle hooks). For * more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API * Reference.

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

You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, * instance, or load balancer).

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

The service-linked role is not yet ready for use.

* * @throws {@link AutoScalingServiceException} *

Base exception class for all service exceptions from AutoScaling service.

* * * @example To add an Auto Scaling notification * ```javascript * // This example adds the specified notification to the specified Auto Scaling group. * const input = { * AutoScalingGroupName: "my-auto-scaling-group", * NotificationTypes: [ * "autoscaling:TEST_NOTIFICATION" * ], * TopicARN: "arn:aws:sns:us-west-2:123456789012:my-sns-topic" * }; * const command = new PutNotificationConfigurationCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class PutNotificationConfigurationCommand extends PutNotificationConfigurationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutNotificationConfigurationType; output: {}; }; sdk: { input: PutNotificationConfigurationCommandInput; output: PutNotificationConfigurationCommandOutput; }; }; }