import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types"; import { GetObjectAclOutput, GetObjectAclRequest } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; /** * @public * * The input for {@link GetObjectAclCommand}. */ export interface GetObjectAclCommandInput extends GetObjectAclRequest { } /** * @public * * The output of {@link GetObjectAclCommand}. */ export interface GetObjectAclCommandOutput extends GetObjectAclOutput, __MetadataBearer { } /** * @public *
Returns the access control list (ACL) of an object. To use this operation, you must have
* s3:GetObjectAcl permissions or READ_ACP access to the object.
* For more information, see Mapping of ACL permissions and access policy permissions in the Amazon S3
* User Guide
*
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.
*If your bucket uses the bucket owner enforced setting for S3 Object Ownership,
* requests to read ACLs are still supported and return the bucket-owner-full-control
* ACL with the owner being the account that created the bucket. For more information, see
*
* Controlling object ownership and disabling ACLs in the Amazon S3 User Guide.
The following operations are related to GetObjectAcl:
* GetObject *
** DeleteObject *
** PutObject *
*The specified key does not exist.
* * * @example To retrieve object ACL * ```javascript * // The following example retrieves access control list (ACL) of an object. * const input = { * "Bucket": "examplebucket", * "Key": "HappyFace.jpg" * }; * const command = new GetObjectAclCommand(input); * const response = await client.send(command); * /* response == * { * "Grants": [ * { * "Grantee": { * "DisplayName": "owner-display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc", * "Type": "CanonicalUser" * }, * "Permission": "WRITE" * }, * { * "Grantee": { * "DisplayName": "owner-display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc", * "Type": "CanonicalUser" * }, * "Permission": "WRITE_ACP" * }, * { * "Grantee": { * "DisplayName": "owner-display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc", * "Type": "CanonicalUser" * }, * "Permission": "READ" * }, * { * "Grantee": { * "DisplayName": "owner-display-name", * "ID": "852b113eexamplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc", * "Type": "CanonicalUser" * }, * "Permission": "READ_ACP" * } * ], * "Owner": { * "DisplayName": "owner-display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" * } * } * *\/ * // example id: to-retrieve-object-acl-1481833557740 * ``` * */ export declare class GetObjectAclCommand extends $Command