{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-app-runner/json-schema/aws-app-runner-disassociate-custom-domain-response-schema.json",
  "title": "DisassociateCustomDomainResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-app-runner-custom-domains-api-openapi.yml#/components/schemas/DisassociateCustomDomainResponse",
  "type": "object",
  "properties": {
    "DNSTarget": {
      "type": "string",
      "description": "The App Runner subdomain of the App Runner service. The disassociated custom domain name was mapped to this target name."
    },
    "ServiceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the App Runner service that a custom domain name is disassociated from."
    },
    "CustomDomain": {
      "$ref": "#/$defs/CustomDomain"
    },
    "VpcDNSTargets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/VpcDNSTarget"
      },
      "description": "DNS Target records for the custom domains of this Amazon VPC."
    }
  },
  "required": [
    "DNSTarget",
    "ServiceArn",
    "CustomDomain",
    "VpcDNSTargets"
  ],
  "$defs": {
    "CertificateValidationRecord": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The certificate CNAME record name."
        },
        "Type": {
          "type": "string",
          "description": "The record type, always CNAME."
        },
        "Value": {
          "type": "string",
          "description": "The certificate CNAME record value."
        },
        "Status": {
          "type": "string",
          "enum": [
            "PENDING_VALIDATION",
            "SUCCESS",
            "FAILED"
          ],
          "description": "The current state of the certificate CNAME record validation. It should change to SUCCESS after App Runner completes validation with your DNS."
        }
      }
    },
    "CustomDomain": {
      "type": "object",
      "properties": {
        "DomainName": {
          "type": "string",
          "description": "An associated custom domain endpoint. It can be a root domain (for example, example.com), a subdomain (for example, login.example.com or admin.login.example.com), or a wildcard (for example, *.example.com)."
        },
        "EnableWWWSubdomain": {
          "type": "boolean",
          "description": "When true, the subdomain www.DomainName is associated with the App Runner service in addition to the base domain."
        },
        "CertificateValidationRecords": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CertificateValidationRecord"
          },
          "description": "A list of certificate CNAME records that's used for this domain name."
        },
        "Status": {
          "type": "string",
          "enum": [
            "CREATING",
            "CREATE_FAILED",
            "ACTIVE",
            "DELETING",
            "DELETE_FAILED",
            "PENDING_CERTIFICATE_DNS_VALIDATION",
            "BINDING_CERTIFICATE"
          ],
          "description": "The current state of the domain name association."
        }
      },
      "required": [
        "DomainName",
        "EnableWWWSubdomain",
        "Status"
      ]
    },
    "VpcDNSTarget": {
      "type": "object",
      "properties": {
        "VpcIngressConnectionArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the VPC Ingress Connection that is associated with your service."
        },
        "VpcId": {
          "type": "string",
          "description": "The ID of the Amazon VPC that is associated with the custom domain name of the target DNS."
        },
        "DomainName": {
          "type": "string",
          "description": "The domain name of your target DNS that is associated with the Amazon VPC."
        }
      }
    }
  }
}