Parameters on Amazon Web Services

A list of parameters available in Object Store with AWS. These parameters are all optional by default.

Supported Parameters

  • kms_encryption
    "kms_encryption": {
        "enable_encryption": true | false
      }

    Enables an instance to use custom encryption through the SAP Key Management Service, which Object Store uses to manage AWS KMS keys. For more information, see What Is Key Management Service?

    Migration between older encryption types is not supported.

    • enable_encryption

      (Mandatory) A Boolean value indicating whether custom encryption through SAP Key Management Service is enabled or not.

      The default value is false. If this parameter is set to true, it cannot be set to false.

  • enableSAL
    "enableSAL": true | false

    Enables Server Access Logging (SAL). This feature logs requests performed on the instance's source bucket. A bucket is created if it does not already exist. These logs are automatically deleted after a certain number of days, determined by the salLogsRetentionPeriod parameter.

    The default value is false.

  • salLogsRetentionPeriod <aws_days_before_sal_log_deletion>
    "salLogsRetentionPeriod": <aws_days_before_sal_log_deletion>

    A Number that indicates the number of days after which SAL logs are deleted. Input an integer less than 1 to never delete logs.

    This parameter requires the enableSAL parameter to be set to true. The default value is 365.

  • autoExpiration
    "autoExpiration": [
        {
          "id": "<aws_lifecycle_rule_name>",
          "status": "Enabled" | "Disabled",
          "expirationInDays": <aws_days_before_expiration>,
          "expirationDate": "<aws_date_to_expire>",
          "filter": <aws_filter_configuration>,
          "noncurrentVersionExpiration": <aws_version_configuration>,
          "expiredObjectDeleteMarker":  true | false
          "abortIncompleteMultipartUpload" : <aws_multipart_configuration>
        }
      ]

    Configures a scheduled removal of objects after a defined time period by taking in a list of objects, each representing an AWS Lifecycle Rule. For more information on AWS's S3 Lifecycle Configuration, see Managing the lifecycle of objectsInformation published on non-SAP site.

    This parameter isn't supported in a create call. By default, this parameter sets an expiration rule where all noncurrent versions of objects are deleted after 14 days.

    • id <aws_lifecycle_rule_name>

      (Optional) A String ID for the new rule. Consists of at most 255 bytes.

      If you don't set an ID, one is automatically generated.

    • status

      (Mandatory) A String that indicates whether the rule is enabled or not.

    • expirationInDays <aws_days_before_expiration>

      (Mandatory) A Number that indicates the number of days after which objects are deleted.

      Must be an integer greater than 0.

    • expirationDate <aws_date_to_expire>

      (Optional) A date that indicates when objects expire. Enter a String formatted in ISO 8601, with full date and time in UTC. Use midnight for the time. For example, if you want objects to expire on January 1, 2100, enter 2100-01-01T00:00:00Z.

    • filter <aws_filter_configuration>
      "filter": {
            "predicate": <aws_predicate_filter_configuration>
          }
      "filter": {
            "and": <aws_and_filter_configuration>
          }

      (Mandatory) Specifies a subset of objects that auto expiration applies to. You can use either an <aws_predicate_filter_configuration> filter, which lets you use either a prefix or a tag, or you can use an <aws_and_filter_configuration> filter, which lets you use multiple tags. Don't use both <aws_predicate_filter_configuration> and <aws_and_filter_configuration>, as this can cause unexpected behavior.

      • predicate <aws_predicate_filter_configuration>
        "predicate": {
              "prefix": "<aws_predicate_filter_prefix>"
            }
        "predicate": {
              "tag": {
                "key": "<aws_predicate_filter_tag_key>",
                "value": "<aws_predicate_filter_tag_value>"
              }
            }

        (Optional) Configure the filter parameter to use either a prefix or a tag. Don't use both, as this can cause unexpected behavior.

        • prefix <aws_predicate_filter_prefix>

          (Optional) The rule will apply to objects matching the provided String prefix. In AWS, you can configure objects to begin with a custom prefix followed by a delimiter, like a slash (/). For more information, see Organizing objects using prefixesInformation published on non-SAP site.

        • tag

          (Optional) The rule will apply to objects that match the AWS tag. For more information, see Categorizing your storage using tags Information published on non-SAP site.

          • key<aws_predicate_filter_tag_key>

            (Optional) The String key of the tag element.

          • value <aws_predicate_filter_tag_value>

            (Mandatory) The String value of the tag element.

      • and <aws_and_filter_configuration>
        "and": {
              "prefix": "<aws_and_filter_prefix>",
              "tags": [
                {
                  "key": "<aws_and_filter_tag_key>",
                  "value": "<aws_and_filter_value_key>"
                }
              ]
            }

        (Optional) Configure the filter parameter to use at most one prefix and one or more tags.

        • prefix <aws_and_filter_prefix>

          (Optional) The rule will apply to objects matching the provided String prefix. In AWS, you can configure objects to begin with a custom prefix followed by a delimiter, like a slash (/). For more information, see Organizing objects using prefixesInformation published on non-SAP site.

        • tags

          (Mandatory) The rule will apply to objects that match any of the AWS tags in the list. For more information, see Categorizing your storage using tags Information published on non-SAP site.

          • key <aws_and_filter_tag_key>

            (Mandatory) The String key of the tag element.

          • value <aws_and_filter_value_key>

            (Mandatory) The String value of the tag element.

    • noncurrentVersionExpiration <aws_version_configuration>
      "noncurrentVersionExpiration": {
            "days": <aws_days_before_noncurrent_expiration>,
            "newerNoncurrentVersions": <aws_versions_to_retain>
          }

      (Mandatory) Configures deletion of noncurrent versions of objects.

      • days <aws_days_before_noncurrent_expiration>

        (Mandatory) A Number that indicates the number of days after which objects that aren't the current version are deleted.

        Must be an integer greater than 0.

      • newerNoncurrentVersions <aws_versions_to_retain>

        (Optional) A Number that indicates how many versions to keep before the current version.

        Must be an integer greater than or equal to 0.

    • expiredObjectDeleteMarker

      (Optional) A Boolean value indicating whether to remove a delete marker with no noncurrent versions. If set to true, the delete marker is removed and there will be no noncurrent versions, which means there will be no current version. This can be used to delete a current version of an object that has no noncurrent versions.

    • abortIncompleteMultipartUpload <aws_multipart_configuration>
      "abortIncompleteMultipartUpload": {
                  "daysAfterInitiation": <aws_days_before_abort_multipart_upload>
            }

      (Optional) Large objects can be uploaded to the Amazon S3 bucket in parts. This parameter configures deletion of incomplete multipart uploads. For more information, see Uploading and copying objects using multipart upload in Amazon S3Information published on non-SAP site.

      By default, incomplete multipart uploads aren't deleted.

      • daysAfterInitiation <aws_days_before_abort_multipart_upload>

        (Mandatory) A Number that indicates the number of days after which incomplete multipart uploads are deleted.

        Must be an integer greater than 0.

    The following fields are expected for lifecycle rules in the output of a get service operation. See Example 2 for an example of lifecycle rules.

    Field

    Expected value

    expirationInDays

    0 or positive integer

    expirationDate

    null or date value

    expiredObjectDeleteMarker

    false by default

    filter

    {} or specified filter object

    id

    lifecycle rule ID

    noncurrentVersionExpiration

    null or object

    noncurrentVersionExpiration.days

    positive integer

    noncurrentVersionExpiration.newerNoncurrentVersions

    -1 or positive integer

    prefix

    null

    status

    Enabled

    abortIncompleteMultipartUpload

    null or specified object

  • deleteAutoExpiration
    "deleteAutoExpiration": ["<aws_lifecycle_rule_name>"]

    Deletes a list of Lifecycle Rules using their String <aws_lifecycle_rule_name> parameters.

    This parameter is supported only in an update call. This parameter is not supported in a call with any other parameters.

  • preventDeletion
    "preventDeletion": true | false

    Prevents an instance from being deleted when objects are present in the Amazon S3 bucket. To delete a service instance with preventDeletion enabled, delete all objects in the Amazon S3 bucket first.

    The default value is false.

  • backupEnabled
    "backupEnabled": true | false

    Enables a daily backup of the Amazon S3 bucket, creating a recovery point for restoration. If backup is enabled, you can request a point-in-time recovery to restore objects in the bucket to a specific timestamp. For more information, see Request Point-in-Time Restoration. These backups are retained for a certain number of days, determined by the backupRetentionPeriod parameter.

    This parameter requires the associated Object Store instance to run on the standard plan, and not the s3-standard plan. The default value is false. If this parameter is set to true, it cannot be set to false. This parameter requires the versioning parameter to be set to true.

  • backupRetentionPeriod
    "backupRetentionPeriod": <aws_backup_retention_days>

    A Number that indicates the number of days after which backups are deleted.

    This parameter requires the backupEnabled parameter to be set to true. Must be an integer between 1 and 35. The default value is 14.

  • versioning
    "versioning": true

    Enables storing multiple versions of the same object in an Amazon S3 bucket. This can be used to keep previous versions of data. For more information on AWS-specific roles that are applied to the user when versioning is enabled, as well as adding, retrieving, and deleting versioned objects in an Amazon S3 bucket, see Object Versioning.

    This parameter can't be set to false. The default value is true on the standard plan, and false on previous plans.

  • corsPermissions
    "corsPermissions": [
        {
          "allowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],
          "allowedOrigins": ["<allowed_origins>"],
          "allowedHeaders": ["<allowed_headers>"],
          "exposeHeaders": ["<exposed_headers>"],
          "maxAgeSeconds": <preflight_cache_duration>
        }
      ]

    Enables Cross-Origin Resource Sharing (CORS) to control which origins, HTTP methods, and headers are permitted to access stored objects. This parameter is an array that accepts one or more CORS rule objects. For more information on valid values, constraints, and the behaviors of each rule object, see Elements of a CORS ConfigurationInformation published on non-SAP site.

    This parameter replaces the entire existing CORS configuration on the Amazon S3 bucket. When adding a new rule to an existing setup, include all existing rules alongside the new one in the same array.

    Set the parameter value as null to disable CORS.

    • allowedMethods

      (Mandatory) An array of strings that indicate the HTTP methods permitted for cross-origin requests.

      The accepted values are GET, PUT, POST, DELETE, and HEAD.

    • allowedOrigins <allowed_origins>

      (Mandatory) An array of strings that indicate the origins allowed to make cross-origin requests.

      List specific origin URLs or use a wildcard (*) to allow all origins.

    • allowedHeaders <allowed_headers>

      (Optional) An array of strings that indicate the request headers allowed in a cross-origin request.

      Use a wildcard (*) to allow all headers.

    • exposeHeaders <exposed_headers>

      (Optional) An array of strings that indicate the response headers that can be exposed to the browser. For example: x-amz-server-side-encryption, x-amz-request-id, x-amz-id-2.

    • maxAgeSeconds <preflight_cache_duration>

      (Optional) A Number that indicates the duration, in seconds, that the browser can cache a preflight response.

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"
    }
 ]