Retrieves OwnershipControls for an Amazon S3 bucket. To use this operation, you must have the s3:GetBucketOwnershipControls permission. For more information about Amazon S3 permissions, see Specifying permissions in a policy.
OwnershipControls
s3:GetBucketOwnershipControls
For information about Amazon S3 Object Ownership, see Using Object Ownership.
The following operations are related to GetBucketOwnershipControls:
GetBucketOwnershipControls
PutBucketOwnershipControls
DeleteBucketOwnershipControls
Use a bare-bones client and the command you need to make an API call.
import { S3Client, GetBucketOwnershipControlsCommand } from "@aws-sdk/client-s3"; // ES Modules import // const { S3Client, GetBucketOwnershipControlsCommand } = require("@aws-sdk/client-s3"); // CommonJS import const client = new S3Client(config); const command = new GetBucketOwnershipControlsCommand(input); const response = await client.send(command);
GetBucketOwnershipControlsCommandInput for command's input shape.
input
GetBucketOwnershipControlsCommandOutput for command's response shape.
response
config for S3Client's config shape.
config
Retrieves
OwnershipControls
for an Amazon S3 bucket. To use this operation, you must have thes3:GetBucketOwnershipControls
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
GetBucketOwnershipControls
:PutBucketOwnershipControls
DeleteBucketOwnershipControls
Use a bare-bones client and the command you need to make an API call.
import { S3Client, GetBucketOwnershipControlsCommand } from "@aws-sdk/client-s3"; // ES Modules import // const { S3Client, GetBucketOwnershipControlsCommand } = require("@aws-sdk/client-s3"); // CommonJS import const client = new S3Client(config); const command = new GetBucketOwnershipControlsCommand(input); const response = await client.send(command);
GetBucketOwnershipControlsCommandInput for command's
input
shape.GetBucketOwnershipControlsCommandOutput for command's
response
shape.config for S3Client's
config
shape.