Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateNotificationRuleCommand

Creates a notification rule for a resource. The rule specifies the events you want notifications about and the targets (such as Chatbot topics or Chatbot clients configured for Slack) where you want to receive them.

example

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

import { CodestarNotificationsClient, CreateNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
// const { CodestarNotificationsClient, CreateNotificationRuleCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
const client = new CodestarNotificationsClient(config);
const command = new CreateNotificationRuleCommand(input);
const response = await client.send(command);
see

CreateNotificationRuleCommandInput for command's input shape.

see

CreateNotificationRuleCommandOutput for command's response shape.

see

config for CodestarNotificationsClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateNotificationRuleCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions

  • Returns EndpointParameterInstructions