Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PutObjectAclRequest

import type { PutObjectAclRequest } from "https://aws-api.deno.dev/v0.4/services/s3.ts?docs=full";
interface PutObjectAclRequest {
AccessControlPolicy?: AccessControlPolicy | null;
ACL?: ObjectCannedACL | null;
Bucket: string;
ChecksumAlgorithm?: ChecksumAlgorithm | null;
ContentMD5?: string | null;
ExpectedBucketOwner?: string | null;
GrantFullControl?: string | null;
GrantRead?: string | null;
GrantReadACP?: string | null;
GrantWrite?: string | null;
GrantWriteACP?: string | null;
Key: string;
RequestPayer?: RequestPayer | null;
VersionId?: string | null;
}

§Properties

§
AccessControlPolicy?: AccessControlPolicy | null
[src]

Contains the elements that set the ACL permissions for an object per grantee.

§

The canned ACL to apply to the object. For more information, see Canned ACL.

§
Bucket: string
[src]

The bucket name that contains the object to which you want to attach the ACL.

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

§
ChecksumAlgorithm?: ChecksumAlgorithm | null
[src]

Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

§
ContentMD5?: string | null
[src]

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

§
ExpectedBucketOwner?: string | null
[src]

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).

§
GrantFullControl?: string | null
[src]

Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.

This action is not supported by Amazon S3 on Outposts.

§
GrantRead?: string | null
[src]

Allows grantee to list the objects in the bucket.

This action is not supported by Amazon S3 on Outposts.

§
GrantReadACP?: string | null
[src]

Allows grantee to read the bucket ACL.

This action is not supported by Amazon S3 on Outposts.

§
GrantWrite?: string | null
[src]

Allows grantee to create new objects in the bucket.

For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.

§
GrantWriteACP?: string | null
[src]

Allows grantee to write the ACL for the applicable bucket.

This action is not supported by Amazon S3 on Outposts.

§
Key: string
[src]

Key for which the PUT action was initiated.

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form _AccessPointName_-_AccountId_._outpostID_.s3-outposts._Region_.amazonaws.com. When using this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts in the Amazon S3 User Guide.

§
RequestPayer?: RequestPayer | null
[src]
§
VersionId?: string | null
[src]

VersionId used to reference a specific version of the object.