Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeletePublicAccessBlockCommand

Removes the PublicAccessBlock configuration for an Amazon S3 bucket. To use this operation, you must have the s3:PutBucketPublicAccessBlock permission. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

The following operations are related to DeletePublicAccessBlock:

example

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

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

DeletePublicAccessBlockCommandInput for command's input shape.

see

DeletePublicAccessBlockCommandOutput for command's response shape.

see

config for S3Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DeletePublicAccessBlockCommandInput

Readonly middlewareStack