Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GetObjectAclCommand

Returns the access control list (ACL) of an object. To use this operation, you must have READ_ACP access to the object.

This action is not supported by Amazon S3 on Outposts.

Versioning

By default, GET returns ACL information about the current version of an object. To return ACL information about a different version, use the versionId subresource.

The following operations are related to GetObjectAcl:

example

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

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

GetObjectAclCommandInput for command's input shape.

see

GetObjectAclCommandOutput for command's response shape.

see

config for S3Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: GetObjectAclCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<GetObjectAclCommandInput, GetObjectAclCommandOutput>