import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateNotificationSubscriptionRequest, CreateNotificationSubscriptionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateNotificationSubscriptionCommand}. */ export interface CreateNotificationSubscriptionCommandInput extends CreateNotificationSubscriptionRequest { } /** * @public * * The output of {@link CreateNotificationSubscriptionCommand}. */ export interface CreateNotificationSubscriptionCommandOutput extends CreateNotificationSubscriptionResponse, __MetadataBearer { } declare const CreateNotificationSubscriptionCommand_base: { new (input: CreateNotificationSubscriptionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateNotificationSubscriptionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a * confirmation message, and must confirm the subscription.

*

For more information, see Setting up notifications for an IAM user or role in the Amazon WorkDocs Developer * Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkDocsClient, CreateNotificationSubscriptionCommand } from "@aws-sdk/client-workdocs"; // ES Modules import * // const { WorkDocsClient, CreateNotificationSubscriptionCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import * // import type { WorkDocsClientConfig } from "@aws-sdk/client-workdocs"; * const config = {}; // type is WorkDocsClientConfig * const client = new WorkDocsClient(config); * const input = { // CreateNotificationSubscriptionRequest * OrganizationId: "STRING_VALUE", // required * Endpoint: "STRING_VALUE", // required * Protocol: "HTTPS" || "SQS", // required * SubscriptionType: "ALL", // required * }; * const command = new CreateNotificationSubscriptionCommand(input); * const response = await client.send(command); * // { // CreateNotificationSubscriptionResponse * // Subscription: { // Subscription * // SubscriptionId: "STRING_VALUE", * // EndPoint: "STRING_VALUE", * // Protocol: "HTTPS" || "SQS", * // }, * // }; * * ``` * * @param CreateNotificationSubscriptionCommandInput - {@link CreateNotificationSubscriptionCommandInput} * @returns {@link CreateNotificationSubscriptionCommandOutput} * @see {@link CreateNotificationSubscriptionCommandInput} for command's `input` shape. * @see {@link CreateNotificationSubscriptionCommandOutput} for command's `response` shape. * @see {@link WorkDocsClientResolvedConfig | config} for WorkDocsClient's `config` shape. * * @throws {@link InvalidArgumentException} (client fault) *

The pagination marker or limit fields are not valid.

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

One or more of the dependencies is unavailable.

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

You've reached the limit on the number of subscriptions for the WorkDocs * instance.

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

The caller does not have access to perform the action on the resource.

* * @throws {@link WorkDocsServiceException} *

Base exception class for all service exceptions from WorkDocs service.

* * * @public */ export declare class CreateNotificationSubscriptionCommand extends CreateNotificationSubscriptionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateNotificationSubscriptionRequest; output: CreateNotificationSubscriptionResponse; }; sdk: { input: CreateNotificationSubscriptionCommandInput; output: CreateNotificationSubscriptionCommandOutput; }; }; }