Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RemovePermissionCommand

Removes a statement from a topic's access control policy.

To remove the ability to change topic permissions, you must deny permissions to the AddPermission, RemovePermission, and SetTopicAttributes actions in your IAM policy.

example

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

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

RemovePermissionCommandInput for command's input shape.

see

RemovePermissionCommandOutput for command's response shape.

see

config for SNSClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: RemovePermissionCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions