Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SubscribeCommand

Creates an association between a notification rule and an Chatbot topic or Chatbot client so that the associated target can receive 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, SubscribeCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
// const { CodestarNotificationsClient, SubscribeCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
const client = new CodestarNotificationsClient(config);
const command = new SubscribeCommand(input);
const response = await client.send(command);
see

SubscribeCommandInput for command's input shape.

see

SubscribeCommandOutput for command's response shape.

see

config for CodestarNotificationsClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: SubscribeCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<SubscribeCommandInput, SubscribeCommandOutput>

Methods

Static getEndpointParameterInstructions