Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AddPermissionCommand

Adds a statement to a topic's access control policy, granting access for the specified Amazon Web Services accounts to the specified actions.

example

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

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

AddPermissionCommandInput for command's input shape.

see

AddPermissionCommandOutput for command's response shape.

see

config for SNSClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: AddPermissionCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<AddPermissionCommandInput, AddPermissionCommandOutput>

Methods

Static getEndpointParameterInstructions