Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Removes an association between a notification rule and an Chatbot topic so that subscribers to that topic stop receiving notifications when the events described in the rule are triggered.

Example

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

import { CodestarNotificationsClient, UnsubscribeCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
// const { CodestarNotificationsClient, UnsubscribeCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
const client = new CodestarNotificationsClient(config);
const input = { // UnsubscribeRequest
Arn: "STRING_VALUE", // required
TargetAddress: "STRING_VALUE", // required
};
const command = new UnsubscribeCommand(input);
const response = await client.send(command);
// { // UnsubscribeResult
// Arn: "STRING_VALUE", // required
// };

Param

UnsubscribeCommandInput

Returns

UnsubscribeCommandOutput

See

Throws

ValidationException (client fault)

One or more parameter values are not valid.

Throws

CodestarNotificationsServiceException

Base exception class for all service exceptions from CodestarNotifications service.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<UnsubscribeCommandInput, UnsubscribeCommandOutput>

Methods