create-multipart-upload

Creates a multipart upload object.

Usage

create-multipart-upload --bucket <value> --key <value>

Supported Options

--bucket: Bucket name
--acl <value>: The Access Control List (ACL) lets you manage access to buckets and objects.
  <value> specifies the following Hedvig-supported options:
    private: Object owner permission only
    public-read: Read permission by any user
    public-read-write: Read and write permission by any user
    authenticated-read: Read permission by authenticated users
    bucket-owner-read: Read permission by bucket owner
    bucket-owner-full-control: Full control by bucket owner
--content-md5: This is a required parameter when lock setting is on.
--grant-full-control: Grants full control to user
--grant-read: Grants read permission to user
--grant-read-acp: Grants read ACP to user
--grant-write-acp: Grants write ACP to user
--key: Object name
--metadata: User-defined key-value pair for target object
--object-lock-legal-hold-status: ON or OFF
--object-lock-mode: COMPLIANCE or GOVERNANCE
--object-lock-retain-until-date:  date and time for lock settings to expire
--server-side-encryption: Object encryption, value: AES256

Example

aws s3api create-multipart-upload --endpoint http://<hostname>:<port_number> --profile testuser1 --bucket example_mp_bucket --key example_mp_object
aws s3api create-multipart-upload --endpoint http://<hostname>:<port_number> --profile testuser1 --bucket example_mp_bucket --key example_mp_object --object-lock-mode GOVERNANCE --object-lock-retain-until-date 2020-12-11 --object-lock-legal-hold-status ON

Loading...