Parameters on Amazon Web Services
A list of parameters available in Object Store with AWS. These parameters are all optional by default.
Examples
Example 1
Below is a sample update call for using Object Store with AWS. It enables the following features:
-
KMS Encryption
-
Server Access Logging with a retention period of 21 days
-
Object versioning.
-
An AWS Lifecycle Configuration rule that performs the following instructions:
-
Applies auto expiration to objects in sample-project/ with the values red or blue under the AWS tag project
-
Deletes current versions of objects after 90 days and objects 1 version older after 21 days
-
Deletes incomplete objects uploaded through multipart after 21 days
-
-
Preventing the user from deleting a bucket with objects
-
Continuous backup of the bucket.
{
"kms_encryption": {
"enable_encryption": true
},
"enableSAL": true,
"salLogsRetentionPeriod": 21,
"versioning": true,
"autoExpiration": [
{
"id": "sample-rule",
"status": "Enabled",
"expirationInDays": 90,
"expirationDate": null,
"filter": {
"and": {
"prefix": "sample-project/",
"tags": [
{ "key": "project", "value": "red" },
{ "key": "project", "value": "blue" }
]
}
},
"noncurrentVersionExpiration": {
"days": 21,
"newerNoncurrentVersions": 1
},
"abortIncompleteMultipartUpload": {
"daysAfterInitiation": 21
}
}
],
"preventDeletion": true,
"backupEnabled": true,
"backupRetentionPeriod": 14
}
The following example deletes the auto expiration rule sample-rule, which was created above:
{
"deleteAutoExpiration": ["sample-rule"]
}
Example 2
The following is an example of lifecycle rules:
"autoExpiration": [
{
"abortIncompleteMultipartUpload": null,
"expirationDate": null,
"expirationInDays": 0,
"expiredObjectDeleteMarker": false,
"filter": {},
"id": "ExpireNonCurrentVersions2",
"noncurrentVersionExpiration": {
"days": 15,
"newerNoncurrentVersions": -1
},
"prefix": null,
"status": "Enabled"
},
{
"abortIncompleteMultipartUpload": null,
"expirationDate": null,
"expirationInDays": 90,
"expiredObjectDeleteMarker": false,
"filter": {
"predicate": {
"prefix": "test/"
}
},
"id": "SampleRule1",
"noncurrentVersionExpiration": {
"days": 90,
"newerNoncurrentVersions": 1
},
"prefix": null,
"status": "Enabled"
},
{
"abortIncompleteMultipartUpload": null,
"expirationDate": null,
"expirationInDays": 90,
"expiredObjectDeleteMarker": false,
"filter": {
"and": {
"prefix": "logs",
"tags": [
{
"key": "key1",
"value": "value1"
},
{
"key": "key2",
"value": "value2"
}
]
}
},
"id": "logs-rule",
"noncurrentVersionExpiration": {
"days": 90,
"newerNoncurrentVersions": 1
},
"prefix": null,
"status": "Enabled"
}
]
