{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudfront/json-schema/cloudfront-update-distribution-tenant-request-schema.json",
  "title": "UpdateDistributionTenantRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudfront-distribution-tenant-api-openapi.yml#/components/schemas/UpdateDistributionTenantRequest",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "The ID of the distribution tenant."
    },
    "DistributionId": {
      "type": "string",
      "description": "The ID for the multi-tenant distribution."
    },
    "Domains": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DomainItem"
      },
      "description": "The domains to update for the distribution tenant. A domain object can contain only a domain property. You must specify at least one domain. Each distribution tenant can have up to 5 domains."
    },
    "Customizations": {
      "$ref": "#/$defs/Customizations"
    },
    "Parameters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Parameter"
      },
      "description": "A list of parameter values to add to the resource. A parameter is specified as a key-value pair. A valid parameter value must exist for any parameter that is marked as required in the multi-tenant distribution."
    },
    "ConnectionGroupId": {
      "type": "string",
      "description": "The ID of the target connection group."
    },
    "IfMatch": {
      "type": "string",
      "description": "The value of the ETag header that you received when retrieving the distribution tenant to update. This value is returned in the response of the GetDistributionTenant API operation."
    },
    "ManagedCertificateRequest": {
      "$ref": "#/$defs/ManagedCertificateRequest"
    },
    "Enabled": {
      "type": "boolean",
      "description": "Indicates whether the distribution tenant should be updated to an enabled state. If you update the distribution tenant and it's not enabled, the distribution tenant won't serve traffic."
    }
  },
  "required": [
    "Id",
    "IfMatch"
  ],
  "$defs": {
    "Certificate": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the ACM certificate."
        }
      },
      "required": [
        "Arn"
      ]
    },
    "Customizations": {
      "type": "object",
      "properties": {
        "WebAcl": {
          "$ref": "#/$defs/WebAclCustomization"
        },
        "Certificate": {
          "$ref": "#/$defs/Certificate"
        },
        "GeoRestrictions": {
          "$ref": "#/$defs/GeoRestrictionCustomization"
        }
      }
    },
    "DomainItem": {
      "type": "object",
      "properties": {
        "Domain": {
          "type": "string",
          "description": "The domain name."
        }
      },
      "required": [
        "Domain"
      ]
    },
    "GeoRestrictionCustomization": {
      "type": "object",
      "properties": {
        "RestrictionType": {
          "type": "string",
          "enum": [
            "blacklist",
            "whitelist",
            "none"
          ],
          "description": "The method that you want to use to restrict distribution of your content by country: none: No geographic restriction is enabled, meaning access to content is not restricted by client geo location. blacklist: The Location elements specify the countries in which you don't want CloudFront to distribute your content. whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content."
        },
        "Locations": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The locations for geographic restrictions."
        }
      },
      "required": [
        "RestrictionType"
      ]
    },
    "ManagedCertificateRequest": {
      "type": "object",
      "properties": {
        "ValidationTokenHost": {
          "type": "string",
          "enum": [
            "cloudfront",
            "self-hosted"
          ],
          "description": "Specify how the HTTP validation token will be served when requesting the CloudFront managed ACM certificate. For cloudfront, CloudFront will automatically serve the validation token. Choose this mode if you can point the domain's DNS to CloudFront immediately. For self-hosted, you serve the validation token from your existing infrastructure. Choose this mode when you need to maintain current traffic flow while your certificate is being issued. You can place the validation token at the well-known path on your existing web server, wait for ACM to validate and issue the certificate, and then upda"
        },
        "PrimaryDomainName": {
          "type": "string",
          "description": "The primary domain name associated with the CloudFront managed ACM certificate."
        },
        "CertificateTransparencyLoggingPreference": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ],
          "description": "You can opt out of certificate transparency logging by specifying the disabled option. Opt in by specifying enabled. For more information, see Certificate Transparency Logging in the Certificate Manager User Guide."
        }
      },
      "required": [
        "ValidationTokenHost"
      ]
    },
    "Parameter": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The parameter name."
        },
        "Value": {
          "type": "string",
          "description": "The parameter value."
        }
      },
      "required": [
        "Name",
        "Value"
      ]
    },
    "WebAclCustomization": {
      "type": "object",
      "properties": {
        "Action": {
          "type": "string",
          "enum": [
            "override",
            "disable"
          ],
          "description": "The action for the WAF web ACL customization. You can specify override to specify a separate WAF web ACL for the distribution tenant. If you specify disable, the distribution tenant won't have WAF web ACL protections and won't inherit from the multi-tenant distribution."
        },
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the WAF web ACL."
        }
      },
      "required": [
        "Action"
      ]
    }
  }
}