aws s3api update-object-encryption
This operation is not supported for directory buckets or Amazon S3 on Outposts buckets. AWS CLI reference
8 options Its page in the AWS CLI reference
Options
--bucketThe name of the general purpose bucket that contains the specified object key name.--checksum-algorithmIndicates the algorithm used to create the checksum for the object when you use an Amazon Web Services SDK.--content-md5The MD5 hash for the request body.--expected-bucket-ownerThe account ID of the expected bucket owner.--keyThe key name of the object that you want to update the server-side encryption type for.--object-encryptionThe updated server-side encryption type for this object.--request-payerConfirms that the requester knows that they will be charged for the request.--version-idThe version ID of the object that you want to update the server-side encryption type for.