{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudfront/json-schema/cloudfront-update-streaming-distribution-request-schema.json",
  "title": "UpdateStreamingDistributionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudfront-streaming-distribution-api-openapi.yml#/components/schemas/UpdateStreamingDistributionRequest",
  "type": "object",
  "properties": {
    "StreamingDistributionConfig": {
      "$ref": "#/$defs/StreamingDistributionConfig"
    },
    "Id": {
      "type": "string",
      "description": "The streaming distribution's id."
    },
    "IfMatch": {
      "type": "string",
      "description": "The value of the ETag header that you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL."
    }
  },
  "required": [
    "StreamingDistributionConfig",
    "Id"
  ],
  "$defs": {
    "Aliases": {
      "type": "object",
      "properties": {
        "Quantity": {
          "type": "integer",
          "description": "The number of CNAME aliases, if any, that you want to associate with this distribution."
        },
        "Items": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A complex type that contains the CNAME aliases, if any, that you want to associate with this distribution."
        }
      },
      "required": [
        "Quantity"
      ]
    },
    "S3Origin": {
      "type": "object",
      "properties": {
        "DomainName": {
          "type": "string",
          "description": "The DNS name of the Amazon S3 origin."
        },
        "OriginAccessIdentity": {
          "type": "string",
          "description": "The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configura"
        }
      },
      "required": [
        "DomainName",
        "OriginAccessIdentity"
      ]
    },
    "StreamingDistributionConfig": {
      "type": "object",
      "properties": {
        "CallerReference": {
          "type": "string",
          "description": "A unique value (for example, a date-time stamp) that ensures that the request can't be replayed. If the value of CallerReference is new (regardless of the content of the StreamingDistributionConfig object), CloudFront creates a new distribution. If CallerReference is a value that you already sent in a previous request to create a distribution, CloudFront returns a DistributionAlreadyExists error."
        },
        "S3Origin": {
          "$ref": "#/$defs/S3Origin"
        },
        "Aliases": {
          "$ref": "#/$defs/Aliases"
        },
        "Comment": {
          "type": "string",
          "description": "Any comments you want to include about the streaming distribution."
        },
        "Logging": {
          "$ref": "#/$defs/StreamingLoggingConfig"
        },
        "TrustedSigners": {
          "$ref": "#/$defs/TrustedSigners"
        },
        "PriceClass": {
          "type": "string",
          "enum": [
            "PriceClass_100",
            "PriceClass_200",
            "PriceClass_All",
            "None"
          ],
          "description": "A complex type that contains information about price class for this streaming distribution."
        },
        "Enabled": {
          "type": "boolean",
          "description": "Whether the streaming distribution is enabled to accept user requests for content."
        }
      },
      "required": [
        "CallerReference",
        "S3Origin",
        "Comment",
        "TrustedSigners",
        "Enabled"
      ]
    },
    "StreamingLoggingConfig": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted."
        },
        "Bucket": {
          "type": "string",
          "description": "The Amazon S3 bucket to store the access logs in, for example, amzn-s3-demo-bucket.s3.amazonaws.com."
        },
        "Prefix": {
          "type": "string",
          "description": "An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix element in the Logging element."
        }
      },
      "required": [
        "Enabled",
        "Bucket",
        "Prefix"
      ]
    },
    "TrustedSigners": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "This field is true if any of the Amazon Web Services accounts in the list are configured as trusted signers. If not, this field is false."
        },
        "Quantity": {
          "type": "integer",
          "description": "The number of Amazon Web Services accounts in the list."
        },
        "Items": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of Amazon Web Services account identifiers."
        }
      },
      "required": [
        "Enabled",
        "Quantity"
      ]
    }
  }
}