DeleteNotificationSubscriptionCommand

Deletes the specified subscription from the specified organization.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { WorkDocsClient, DeleteNotificationSubscriptionCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
// const { WorkDocsClient, DeleteNotificationSubscriptionCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
const client = new WorkDocsClient(config);
const input = { // DeleteNotificationSubscriptionRequest
  SubscriptionId: "STRING_VALUE", // required
  OrganizationId: "STRING_VALUE", // required
};
const command = new DeleteNotificationSubscriptionCommand(input);
const response = await client.send(command);
// {};

DeleteNotificationSubscriptionCommand Input

Parameter
Type
Description
OrganizationId
Required
string | undefined

The ID of the organization.

SubscriptionId
Required
string | undefined

The ID of the subscription.

DeleteNotificationSubscriptionCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
EntityNotExistsException
client

The resource does not exist.

ProhibitedStateException
client

The specified document version is not in the INITIALIZED state.

ServiceUnavailableException
server

One or more of the dependencies is unavailable.

UnauthorizedResourceAccessException
client

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

WorkDocsServiceException
Base exception class for all service exceptions from WorkDocs service.