Amazon S3 API · JSON Structure

S3 Condition Structure

A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.

Type: object Properties: 0
Cloud StorageObject StorageStorage

S3 Condition Structure is a JSON Structure definition published by Amazon S3 API. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "title": "Condition",
  "type": "object",
  "description": "A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the <code>/docs</code> folder, redirect to the <code>/documents</code> folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.",
  "fields": [
    {
      "name": "HttpErrorCodeReturnedEquals",
      "type": "string"
    },
    {
      "name": "KeyPrefixEquals",
      "type": "string"
    }
  ]
}