{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudfront/json-schema/cloudfront-update-origin-access-control-request-schema.json",
  "title": "UpdateOriginAccessControlRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudfront-originaccesscontrol-api-openapi.yml#/components/schemas/UpdateOriginAccessControlRequest",
  "type": "object",
  "properties": {
    "OriginAccessControlConfig": {
      "$ref": "#/$defs/OriginAccessControlConfig"
    },
    "Id": {
      "type": "string",
      "description": "The unique identifier of the origin access control that you are updating."
    },
    "IfMatch": {
      "type": "string",
      "description": "The current version (ETag value) of the origin access control that you are updating."
    }
  },
  "required": [
    "OriginAccessControlConfig",
    "Id"
  ],
  "$defs": {
    "OriginAccessControlConfig": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "A name to identify the origin access control. You can specify up to 64 characters."
        },
        "Description": {
          "type": "string",
          "description": "A description of the origin access control."
        },
        "SigningProtocol": {
          "type": "string",
          "enum": [
            "sigv4",
            "sigv4a"
          ],
          "description": "The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid values are sigv4 and sigv4a."
        },
        "SigningBehavior": {
          "type": "string",
          "enum": [
            "never",
            "always",
            "no-override",
            "always-amz-auth"
          ],
          "description": "Specifies which requests CloudFront signs (adds authentication information to). Specify always for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide. This field can have one of the following values: always – CloudFront signs all origin requests, overwriting the Authorization header from the viewer request if one exists. never – CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control. no-override – If the view"
        },
        "OriginAccessControlOriginType": {
          "type": "string",
          "enum": [
            "s3",
            "mediastore",
            "mediapackagev2",
            "lambda"
          ],
          "description": "The type of origin that this origin access control is for."
        }
      },
      "required": [
        "Name",
        "SigningProtocol",
        "SigningBehavior",
        "OriginAccessControlOriginType"
      ]
    }
  }
}