import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateSubscriberRequest, CreateSubscriberResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateSubscriberCommand}. */ export interface CreateSubscriberCommandInput extends CreateSubscriberRequest { } /** * @public * * The output of {@link CreateSubscriberCommand}. */ export interface CreateSubscriberCommandOutput extends CreateSubscriberResponse, __MetadataBearer { } declare const CreateSubscriberCommand_base: { new (input: CreateSubscriberCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateSubscriberCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a subscriber. You must create the associated budget and notification before you create the subscriber.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { BudgetsClient, CreateSubscriberCommand } from "@aws-sdk/client-budgets"; // ES Modules import * // const { BudgetsClient, CreateSubscriberCommand } = require("@aws-sdk/client-budgets"); // CommonJS import * // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets"; * const config = {}; // type is BudgetsClientConfig * const client = new BudgetsClient(config); * const input = { // CreateSubscriberRequest * AccountId: "STRING_VALUE", // required * BudgetName: "STRING_VALUE", // required * Notification: { // Notification * NotificationType: "ACTUAL" || "FORECASTED", // required * ComparisonOperator: "GREATER_THAN" || "LESS_THAN" || "EQUAL_TO", // required * Threshold: Number("double"), // required * ThresholdType: "PERCENTAGE" || "ABSOLUTE_VALUE", * NotificationState: "OK" || "ALARM", * }, * Subscriber: { // Subscriber * SubscriptionType: "SNS" || "EMAIL", // required * Address: "STRING_VALUE", // required * }, * }; * const command = new CreateSubscriberCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param CreateSubscriberCommandInput - {@link CreateSubscriberCommandInput} * @returns {@link CreateSubscriberCommandOutput} * @see {@link CreateSubscriberCommandInput} for command's `input` shape. * @see {@link CreateSubscriberCommandOutput} for command's `response` shape. * @see {@link BudgetsClientResolvedConfig | config} for BudgetsClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You are not authorized to use this operation with the given parameters.

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

You've exceeded the notification or subscriber limit.

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

The budget name already exists. Budget names must be unique within an account.

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

An error on the server occurred during the processing of your request. Try again later.

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

An error on the client occurred. Typically, the cause is an invalid input value.

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

We can’t locate the resource that you specified.

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

The number of API requests has exceeded the maximum allowed API request throttling limit * for the account.

* * @throws {@link BudgetsServiceException} *

Base exception class for all service exceptions from Budgets service.

* * * @public */ export declare class CreateSubscriberCommand extends CreateSubscriberCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateSubscriberRequest; output: {}; }; sdk: { input: CreateSubscriberCommandInput; output: CreateSubscriberCommandOutput; }; }; }