NAME
Paws::S3::PutObjectAcl - Arguments for method PutObjectAcl on Paws::S3
DESCRIPTION
This class represents the parameters used for calling the method PutObjectAcl on the Amazon Simple Storage Service service. Use the attributes of this class as arguments to method PutObjectAcl.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutObjectAcl.
SYNOPSIS
my $s3 = Paws->service('S3');
my $PutObjectAclOutput = $s3->PutObjectAcl(
Bucket => 'MyBucketName',
Key => 'MyObjectKey',
ACL => 'private', # OPTIONAL
AccessControlPolicy => {
Grants => [
{
Grantee => {
Type => 'CanonicalUser'
, # values: CanonicalUser, AmazonCustomerByEmail, Group
DisplayName => 'MyDisplayName', # OPTIONAL
EmailAddress => 'MyEmailAddress', # OPTIONAL
ID => 'MyID', # OPTIONAL
URI => 'MyURI', # OPTIONAL
}, # OPTIONAL
Permission => 'FULL_CONTROL'
, # values: FULL_CONTROL, WRITE, WRITE_ACP, READ, READ_ACP; OPTIONAL
},
...
], # OPTIONAL
Owner => {
DisplayName => 'MyDisplayName', # OPTIONAL
ID => 'MyID', # OPTIONAL
}, # OPTIONAL
}, # OPTIONAL
ContentLength => 1, # OPTIONAL
ContentMD5 => 'MyContentMD5', # OPTIONAL
GrantFullControl => 'MyGrantFullControl', # OPTIONAL
GrantRead => 'MyGrantRead', # OPTIONAL
GrantReadACP => 'MyGrantReadACP', # OPTIONAL
GrantWrite => 'MyGrantWrite', # OPTIONAL
GrantWriteACP => 'MyGrantWriteACP', # OPTIONAL
RequestPayer => 'requester', # OPTIONAL
VersionId => 'MyObjectVersionId', # OPTIONAL
);
# Results:
my $RequestCharged = $PutObjectAclOutput->RequestCharged;
# Returns a L<Paws::S3::PutObjectAclOutput> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/s3/PutObjectAcl
ATTRIBUTES
AccessControlPolicy => Paws::S3::AccessControlPolicy
Contains the elements that set the ACL permissions for an object per grantee.
ACL => Str
The canned ACL to apply to the object. For more information, see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL).
Valid values are: "private", "public-read", "public-read-write", "authenticated-read", "aws-exec-read", "bucket-owner-read", "bucket-owner-full-control"
REQUIRED Bucket => Str
The bucket name that contains the object to which you want to attach the ACL.
When using this API 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 operation using an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) in the Amazon Simple Storage Service Developer Guide.
ContentLength => Int
Size of the body in bytes.
ContentMD5 => Str
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.> (http://www.ietf.org/rfc/rfc1864.txt)
GrantFullControl => Str
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
GrantRead => Str
Allows grantee to list the objects in the bucket.
GrantReadACP => Str
Allows grantee to read the bucket ACL.
GrantWrite => Str
Allows grantee to create, overwrite, and delete any object in the bucket.
GrantWriteACP => Str
Allows grantee to write the ACL for the applicable bucket.
REQUIRED Key => Str
Key for which the PUT operation was initiated.
RequestPayer => Str
Valid values are: "requester"
VersionId => Str
VersionId used to reference a specific version of the object.
SEE ALSO
This class forms part of Paws, documenting arguments for method PutObjectAcl in Paws::S3
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues