ObjectsApi
Last updated
Last updated
All URIs are relative to https://s3.eu-central-3.ionoscloud.com
Method | HTTP request | Description |
---|---|---|
CopyObject
Other parameters are passed through a pointer to an apiCopyObjectRequest struct via the builder pattern
Content-Type: application/xml
Accept: application/xml
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.CopyObject"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
DeleteObject
Other parameters are passed through a pointer to an apiDeleteObjectRequest struct via the builder pattern
map[string]interface{}
Content-Type: Not defined
Accept: application/xml
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.DeleteObject"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
DeleteObjects
Other parameters are passed through a pointer to an apiDeleteObjectsRequest struct via the builder pattern
Content-Type: application/xml
Accept: application/xml
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.DeleteObjects"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
GetObject
Other parameters are passed through a pointer to an apiGetObjectRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/xml
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.GetObject"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
HeadObject
Other parameters are passed through a pointer to an apiHeadObjectRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/xml
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.HeadObject"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
ListObjects
Other parameters are passed through a pointer to an apiListObjectsRequest struct via the builder pattern
Content-Type: Not defined
Accept: application/xml
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.ListObjects"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
ListObjectsV2
Other parameters are passed through a pointer to an apiListObjectsV2Request struct via the builder pattern
Content-Type: Not defined
Accept: application/xml
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.ListObjectsV2"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
OPTIONSObject
Other parameters are passed through a pointer to an apiOPTIONSObjectRequest struct via the builder pattern
(empty response body)
Content-Type: Not defined
Accept: Not defined
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.OPTIONSObject"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
POSTObject
Other parameters are passed through a pointer to an apiPOSTObjectRequest struct via the builder pattern
map[string]interface{}
Content-Type: application/xml
Accept: application/xml
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.POSTObject"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
PutObject
Other parameters are passed through a pointer to an apiPutObjectRequest struct via the builder pattern
(empty response body)
Content-Type: text/plain
Accept: text/plain
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectsApiService.PutObject"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Put /{Bucket}/{Key}?x-amz-copy-source
CopyObject
Delete /{Bucket}/{Key}
DeleteObject
Post /{Bucket}?delete
DeleteObjects
Get /{Bucket}/{Key}
GetObject
Head /{Bucket}/{Key}
HeadObject
Get /{Bucket}
ListObjects
Get /{Bucket}?list-type=2
ListObjectsV2
Options /{Bucket}
OPTIONSObject
Post /{Bucket}/{Key}
POSTObject
Put /{Bucket}/{Key}
PutObject
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
key
string
The key of the destination object.
xAmzCopySource
string
<p>Specifies the source object for the copy operation.
cacheControl
string
Specifies caching behavior along the request/reply chain.
contentDisposition
string
Specifies presentational information for the object.
contentEncoding
string
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
contentLanguage
string
The language the content is in.
contentType
string
A standard MIME type describing the format of the object data.
xAmzCopySourceIfMatch
string
Copies the object if its entity tag (ETag) matches the specified tag.
xAmzCopySourceIfModifiedSince
time.Time
Copies the object if it has been modified since the specified time.
xAmzCopySourceIfNoneMatch
string
Copies the object if its entity tag (ETag) is different than the specified ETag.
xAmzCopySourceIfUnmodifiedSince
time.Time
Copies the object if it hasn't been modified since the specified time.
expires
time.Time
The date and time at which the object is no longer cacheable.
xAmzMetadataDirective
string
Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.
xAmzTaggingDirective
string
Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request.
xAmzServerSideEncryption
string
The server-side encryption algorithm used when storing this object in IONOS S3 Object Storage (AES256).
xAmzStorageClass
string
IONOS S3 Object Storage uses the STANDARD Storage Class to store newly created objects. The STANDARD storage class provides high durability and high availability.
xAmzWebsiteRedirectLocation
string
If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. IONOS S3 Object Storage stores the value of this header in the object metadata.
xAmzServerSideEncryptionCustomerAlgorithm
string
Specifies the algorithm to use to when encrypting the object (AES256).
xAmzServerSideEncryptionCustomerKey
string
Specifies the customer-provided encryption key for IONOS S3 Object Storage to use in encrypting data. This value is used to store the object and then it is discarded; IONOS S3 Object Storage does not store the encryption key. The key must be appropriate for use with the algorithm specified in the `x-amz-server-side-encryption-customer-algorithm` header.
xAmzServerSideEncryptionCustomerKeyMD5
string
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. IONOS S3 Object Storage uses this header for a message integrity check to ensure that the encryption key was transmitted without error.
xAmzCopySourceServerSideEncryptionCustomerAlgorithm
string
Specifies the algorithm to use when decrypting the source object (AES256).
xAmzCopySourceServerSideEncryptionCustomerKey
string
Specifies the customer-provided encryption key for IONOS S3 Object Storage to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created.
xAmzCopySourceServerSideEncryptionCustomerKeyMD5
string
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. IONOS S3 Object Storage uses this header for a message integrity check to ensure that the encryption key was transmitted without error.
xAmzTagging
string
The tag-set for the object destination object this value must be used in conjunction with the `TaggingDirective`. The tag-set must be encoded as URL Query parameters.
xAmzObjectLockMode
string
The Object Lock mode that you want to apply to the copied object.
xAmzObjectLockRetainUntilDate
time.Time
The date and time when you want the copied object's Object Lock to expire.
xAmzObjectLockLegalHold
string
Specifies whether you want to apply a Legal Hold to the copied object.
xAmzMeta
A map of metadata to store with the object in S3.
copyObjectRequest
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
key
string
Key name of the object to delete.
xAmzMfa
string
The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. Required to permanently delete a versioned object if versioning is configured with MFA Delete enabled.
versionId
string
VersionId used to reference a specific version of the object.
xAmzBypassGovernanceRetention
bool
Indicates whether S3 Object Lock should bypass Governance-mode restrictions to process this operation. To use this header, you must have the `PutBucketPublicAccessBlock` permission.
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
deleteObjectsRequest
xAmzMfa
string
The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. Required to permanently delete a versioned object if versioning is configured with MFA Delete enabled.
xAmzBypassGovernanceRetention
bool
Specifies whether you want to delete this object even if it has a Governance-type Object Lock in place. To use this header, you must have the `PutBucketPublicAccessBlock` permission.
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
key
string
<p> Key of the object to get. </p> <p> <b> Possible values:</b> length ≥ 1 </p>
ifMatch
string
Return the object only if its entity tag (ETag) is the same as the one specified, otherwise return a 412 (precondition failed).
ifModifiedSince
time.Time
Return the object only if it has been modified since the specified time, otherwise return a 304 (not modified).
ifNoneMatch
string
Return the object only if its entity tag (ETag) is different from the one specified, otherwise return a 304 (not modified).
ifUnmodifiedSince
time.Time
Return the object only if it has not been modified since the specified time, otherwise return a 412 (precondition failed).
range_
string
<p>Downloads the specified range bytes of an object. For more information about the HTTP Range header, see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35">Range</a>.</p> <note> <p>IONOS S3 Object Storage doesn't support retrieving multiple ranges of data per `GET` request.</p> </note>
responseCacheControl
string
Sets the `Cache-Control` header of the response.
responseContentDisposition
string
Sets the `Content-Disposition` header of the response
responseContentEncoding
string
Sets the `Content-Encoding` header of the response.
responseContentLanguage
string
Sets the `Content-Language` header of the response.
responseContentType
string
Sets the `Content-Type` header of the response.
responseExpires
time.Time
Sets the `Expires` header of the response.
versionId
string
VersionId used to reference a specific version of the object.
xAmzServerSideEncryptionCustomerAlgorithm
string
Specifies the algorithm to use to when decrypting the object (AES256).
xAmzServerSideEncryptionCustomerKey
string
Specifies the customer-provided encryption key for IONOS S3 Object Storage used to encrypt the data. This value is used to decrypt the object when recovering it and must match the one used when storing the data. The key must be appropriate for use with the algorithm specified in the `x-amz-server-side-encryption-customer-algorithm` header.
xAmzServerSideEncryptionCustomerKeyMD5
string
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. IONOS S3 Object Storage uses this header for a message integrity check to ensure that the encryption key was transmitted without error.
partNumber
int32
Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' GET request for the part specified. Useful for downloading just a part of an object.
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
key
string
The object key.
ifMatch
string
Return the object only if its entity tag (ETag) is the same as the one specified, otherwise return a 412 (precondition failed).
ifModifiedSince
time.Time
Return the object only if it has been modified since the specified time, otherwise return a 304 (not modified).
ifNoneMatch
string
Return the object only if its entity tag (ETag) is different from the one specified, otherwise return a 304 (not modified).
ifUnmodifiedSince
time.Time
Return the object only if it has not been modified since the specified time, otherwise return a 412 (precondition failed).
range_
string
<p>Downloads the specified range bytes of an object. For more information about the HTTP Range header, see <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35">Range</a>.</p> <note> <p>IONOS S3 Object Storage doesn't support retrieving multiple ranges of data per `GET` request.</p> </note>
versionId
string
VersionId used to reference a specific version of the object.
xAmzServerSideEncryptionCustomerAlgorithm
string
Specifies the algorithm to use to when encrypting the object (AES256).
xAmzServerSideEncryptionCustomerKey
string
Specifies the customer-provided encryption key for IONOS S3 Object Storage to use in encrypting data. This value is used to store the object and then it is discarded; IONOS S3 Object Storage does not store the encryption key. The key must be appropriate for use with the algorithm specified in the `x-amz-server-side-encryption-customer-algorithm` header.
xAmzServerSideEncryptionCustomerKeyMD5
string
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. IONOS S3 Object Storage uses this header for a message integrity check to ensure that the encryption key was transmitted without error.
partNumber
int32
Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified. Useful querying about the size of the part and the number of parts in this object.
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
delimiter
string
A delimiter is a character you use to group keys.
encodingType
string
marker
string
Marker is where you want IONOS S3 Object Storage to start listing from. IONOS S3 Object Storage starts listing after this specified key. Marker can be any key in the bucket.
maxKeys
int32
Sets the maximum number of keys returned in the response. By default the operation returns up to 1,000 key names. The response might contain fewer keys but will never contain more.
prefix
string
Limits the response to keys that begin with the specified prefix.
xAmzRequestPayer
string
Confirms that the requester knows that she or he will be charged for the list objects request. Bucket owners need not specify this parameter in their requests.
maxKeys2
string
Pagination limit
marker2
string
Pagination token
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
delimiter
string
A delimiter is a character you use to group keys.
encodingType
string
Encoding type used by IONOS S3 Object Storage to encode object keys in the response.
maxKeys
int32
Sets the maximum number of keys returned in the response. By default the operation returns up to 1000 key names. The response might contain fewer keys but will never contain more.
[default to 1000]
prefix
string
Limits the response to keys that begin with the specified prefix.
continuationToken
string
ContinuationToken indicates IONOS S3 Object Storage that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key.
fetchOwner
bool
The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true.
[default to false]
startAfter
string
StartAfter is where you want to start listing from. IONOS S3 Object Storage starts listing after this specified key. StartAfter can be any key in the bucket.
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
origin
string
<p>Identifies the origin of the cross-origin request to the IONOS S3 Object Storage. </p>
accessControlRequestMethod
string
Identifies what HTTP method will be used in the actual request.
accessControlRequestHeaders
string
<p> A comma-delimited list of HTTP headers that will be sent in the actual request. </p> <p> For example, to put an object with server-side encryption, this preflight request will determine if it can include the `x-amz-server-side-encryption` header with the request. </p>
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
key
string
Key name of the object to post.
pOSTObjectRequest
cacheControl
string
Can be used to specify caching behavior along the request/reply chain. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9">Cache-Control</a>.
contentDisposition
string
Specifies presentational information for the object. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1">Content-Disposition</a>.
contentEncoding
string
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11">Content-Encoding</a>.
contentLanguage
string
The language the content is in.
contentLength
int32
Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13">Content-Length</a>.
contentMD5
string
contentType
string
A standard MIME type describing the format of the contents. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.
expires
time.Time
The date and time at which the object is no longer cacheable. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21">Expires</a>.
xAmzServerSideEncryption
string
The server-side encryption algorithm used when storing this object in IONOS S3 Object Storage (AES256).
xAmzStorageClass
string
IONOS S3 Object Storage uses the STANDARD Storage Class to store newly created objects. The STANDARD storage class provides high durability and high availability.
xAmzWebsiteRedirectLocation
string
<p>If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. IONOS S3 Object Storage stores the value of this header in the object metadata.</p> <p>In the following example, the request header sets the redirect to an object (anotherPage.html) in the same bucket:</p> <p> `x-amz-website-redirect-location: /anotherPage.html` </p> <p>In the following example, the request header sets the object redirect to another website:</p> <p> `x-amz-website-redirect-location: http://www.example.com/` </p>
xAmzServerSideEncryptionCustomerAlgorithm
string
Specifies the algorithm to use to when encrypting the object (AES256).
xAmzServerSideEncryptionCustomerKey
string
Specifies the customer-provided encryption key for IONOS S3 Object Storage to use in encrypting data. This value is used to store the object and then it is discarded; IONOS S3 Object Storage does not store the encryption key. The key must be appropriate for use with the algorithm specified in the `x-amz-server-side-encryption-customer-algorithm` header.
xAmzServerSideEncryptionCustomerKeyMD5
string
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. IONOS S3 Object Storage uses this header for a message integrity check to ensure that the encryption key was transmitted without error.
xAmzServerSideEncryptionContext
string
Specifies the IONOS S3 Object Storage Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.
xAmzServerSideEncryptionBucketKeyEnabled
bool
<p>Specifies whether IONOS S3 Object Storage should use an S3 Bucket Key for object encryption with server-side encryption. Setting this header to `true` causes IONOS S3 Object Storage to use an S3 Bucket Key for object encryption.</p> <p>Specifying this header with a PUT operation doesn’t affect bucket-level settings for S3 Bucket Key.</p>
xAmzRequestPayer
string
xAmzTagging
string
The tag-set for the object. The tag-set must be encoded as URL Query parameters. (For example, "Key1=Value1")
xAmzObjectLockMode
string
The Object Lock mode that you want to apply to this object.
xAmzObjectLockRetainUntilDate
time.Time
The date and time when you want this object's Object Lock to expire. Must be formatted as a timestamp parameter.
xAmzObjectLockLegalHold
string
Specifies whether a legal hold will be applied to this object.
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
bucket
string
key
string
Object key for which the PUT operation was initiated.
body
*os.File
cacheControl
string
Can be used to specify caching behavior along the request/reply chain. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9">Cache-Control</a>.
contentDisposition
string
Specifies presentational information for the object. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1">Content-Disposition</a>.
contentEncoding
string
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11">Content-Encoding</a>.
contentLanguage
string
The language the content is in.
contentLength
int32
Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13">Content-Length</a>.
contentMD5
string
contentType
string
A standard MIME type describing the format of the contents. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.
expires
time.Time
The date and time at which the object is no longer cacheable. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21">Expires</a>.
xAmzServerSideEncryption
string
The server-side encryption algorithm used when storing this object in IONOS S3 Object Storage (AES256).
xAmzStorageClass
string
The valid value is `STANDARD`.
xAmzWebsiteRedirectLocation
string
<p>If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. IONOS S3 Object Storage stores the value of this header in the object metadata.</p> <p>In the following example, the request header sets the redirect to an object (anotherPage.html) in the same bucket:</p> <p> `x-amz-website-redirect-location: /anotherPage.html` </p> <p>In the following example, the request header sets the object redirect to another website:</p> <p> `x-amz-website-redirect-location: http://www.example.com/` </p>
xAmzServerSideEncryptionCustomerAlgorithm
string
Specifies the algorithm to use to when encrypting the object. The valid option is `AES256`.
xAmzServerSideEncryptionCustomerKey
string
Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data. For example, `4ZRNYBCCvL0YZeqo3f2+9qDyIfnLdbg5S99R2XWr0aw=`.
xAmzServerSideEncryptionCustomerKeyMD5
string
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. IONOS S3 Object Storage uses this header for a message integrity check to ensure that the encryption key was transmitted without error. For example, `bPU7G1zD2MlOi5gqnkRqZg==`.
xAmzServerSideEncryptionContext
string
Specifies the IONOS S3 Object Storage Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.
xAmzRequestPayer
string
xAmzTagging
string
The tag-set for the object. The tag-set must be encoded as URL Query parameters. (For example, "Key1=Value1")
xAmzObjectLockMode
string
The Object Lock mode that you want to apply to this object.
xAmzObjectLockRetainUntilDate
time.Time
The date and time when you want this object's Object Lock to expire. Must be formatted as a timestamp parameter.
xAmzObjectLockLegalHold
string
Specifies whether a legal hold will be applied to this object.
xAmzMeta
A map of metadata to store with the object in S3.