Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutBucketOwnershipControlsCommand

Creates or modifies OwnershipControls for an Amazon S3 bucket. To use this operation, you must have the s3:PutBucketOwnershipControls permission. For more information about Amazon S3 permissions, see Specifying permissions in a policy.

For information about Amazon S3 Object Ownership, see Using object ownership.

The following operations are related to PutBucketOwnershipControls:

example

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

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

PutBucketOwnershipControlsCommandInput for command's input shape.

see

PutBucketOwnershipControlsCommandOutput for command's response shape.

see

config for S3Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: PutBucketOwnershipControlsCommandInput

Readonly middlewareStack