Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutDataProtectionPolicyCommand

Adds or updates an inline policy document that is stored in the specified Amazon SNS topic.

example

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

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

PutDataProtectionPolicyCommandInput for command's input shape.

see

PutDataProtectionPolicyCommandOutput for command's response shape.

see

config for SNSClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: PutDataProtectionPolicyCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions