class Aws::S3::Types::PutObjectLegalHoldRequest
@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectLegalHoldRequest AWS API Documentation
@return [String]
(Access Denied)‘ error.
by a different account, the request will fail with an HTTP `403
The account ID of the expected bucket owner. If the bucket is owned
@!attribute [rw] expected_bucket_owner
@return [String]
SDKs, this field is calculated automatically.
For requests made using the AWS Command Line Interface (CLI) or AWS
The MD5 hash for the request body.
@!attribute [rw] content_md5
@return [String]
The version ID of the object that you want to place a Legal Hold on.
@!attribute [rw] version_id
@return [String]<br>: docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html<br><br><br><br>in the *Amazon S3 User Guide*.
pays buckets, see [Downloading Objects in Requestor Pays Buckets][1]
requests. For information about downloading objects from requester
request. Bucket owners need not specify this parameter in their
Confirms that the requester knows that they will be charged for the
@!attribute [rw] request_payer
@return [Types::ObjectLockLegalHold]
to the specified object.
Container element for the Legal Hold configuration you want to apply
@!attribute [rw] legal_hold
@return [String]
The key name for the object that you want to place a Legal Hold on.
@!attribute [rw] key
@return [String]<br>: docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html<br><br><br><br>points][1] in the *Amazon S3 User Guide*.
more information about access point ARNs, see [Using access
you provide the access point ARN in place of the bucket name. For
When using this action with an access point through the AWS SDKs,
AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
takes the form
requests to the access point hostname. The access point hostname
When using this action with an access point, you must direct
Hold on.
The bucket name containing the object that you want to place a Legal
@!attribute [rw] bucket
}
expected_bucket_owner: “AccountId”,
content_md5: “ContentMD5”,
version_id: “ObjectVersionId”,
request_payer: “requester”, # accepts requester
},
status: “ON”, # accepts ON, OFF
legal_hold: {
key: “ObjectKey”, # required
bucket: “BucketName”, # required
{
data as a hash:
@note When making an API call, you may pass PutObjectLegalHoldRequest