import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AddSourceIdentifierToSubscriptionMessage, AddSourceIdentifierToSubscriptionResult } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AddSourceIdentifierToSubscriptionCommand}. */ export interface AddSourceIdentifierToSubscriptionCommandInput extends AddSourceIdentifierToSubscriptionMessage { } /** * @public * * The output of {@link AddSourceIdentifierToSubscriptionCommand}. */ export interface AddSourceIdentifierToSubscriptionCommandOutput extends AddSourceIdentifierToSubscriptionResult, __MetadataBearer { } declare const AddSourceIdentifierToSubscriptionCommand_base: { new (input: AddSourceIdentifierToSubscriptionCommandInput): import("@smithy/core/client").CommandImpl; new (input: AddSourceIdentifierToSubscriptionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Adds a source identifier to an existing RDS event notification subscription.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, AddSourceIdentifierToSubscriptionCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, AddSourceIdentifierToSubscriptionCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(config); * const input = { // AddSourceIdentifierToSubscriptionMessage * SubscriptionName: "STRING_VALUE", // required * SourceIdentifier: "STRING_VALUE", // required * }; * const command = new AddSourceIdentifierToSubscriptionCommand(input); * const response = await client.send(command); * // { // AddSourceIdentifierToSubscriptionResult * // EventSubscription: { // EventSubscription * // CustomerAwsId: "STRING_VALUE", * // CustSubscriptionId: "STRING_VALUE", * // SnsTopicArn: "STRING_VALUE", * // Status: "STRING_VALUE", * // SubscriptionCreationTime: "STRING_VALUE", * // SourceType: "STRING_VALUE", * // SourceIdsList: [ // SourceIdsList * // "STRING_VALUE", * // ], * // EventCategoriesList: [ // EventCategoriesList * // "STRING_VALUE", * // ], * // Enabled: true || false, * // EventSubscriptionArn: "STRING_VALUE", * // }, * // }; * * ``` * * @param AddSourceIdentifierToSubscriptionCommandInput - {@link AddSourceIdentifierToSubscriptionCommandInput} * @returns {@link AddSourceIdentifierToSubscriptionCommandOutput} * @see {@link AddSourceIdentifierToSubscriptionCommandInput} for command's `input` shape. * @see {@link AddSourceIdentifierToSubscriptionCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link SourceNotFoundFault} (client fault) *

The requested source could not be found.

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

The subscription name does not exist.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To add a source identifier to a subscription * ```javascript * // The following example adds another source identifier to an existing subscription. * const input = { * SourceIdentifier: "test-instance-repl", * SubscriptionName: "my-instance-events" * }; * const command = new AddSourceIdentifierToSubscriptionCommand(input); * const response = await client.send(command); * /* response is * { * EventSubscription: { * CustSubscriptionId: "my-instance-events", * CustomerAwsId: "123456789012", * Enabled: false, * EventCategoriesList: [ * "backup", * "recovery" * ], * EventSubscriptionArn: "arn:aws:rds:us-east-1:123456789012:es:my-instance-events", * SnsTopicArn: "arn:aws:sns:us-east-1:123456789012:interesting-events", * SourceIdsList: [ * "test-instance", * "test-instance-repl" * ], * SourceType: "db-instance", * Status: "modifying", * SubscriptionCreationTime: "Tue Jul 31 23:22:01 UTC 2018" * } * } * *\/ * ``` * * @public */ export declare class AddSourceIdentifierToSubscriptionCommand extends AddSourceIdentifierToSubscriptionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AddSourceIdentifierToSubscriptionMessage; output: AddSourceIdentifierToSubscriptionResult; }; sdk: { input: AddSourceIdentifierToSubscriptionCommandInput; output: AddSourceIdentifierToSubscriptionCommandOutput; }; }; }