AWS App Runner Custom Domains API

Manage custom domain associations

GitHub OpenAPI

Operations 3

POST /#AssociateCustomDomain Associate Custom Domain #
POST /#DescribeCustomDomains Describe Custom Domains #
POST /#DisassociateCustomDomain Disassociate Custom Domain #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aws-app-runner:aws-app-runner-custom-domains-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aws-app-runner-custom-domains-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS App Runner Custom Domains API
  version: '2020-05-15'
  description: Generated from AWS's published Smithy model for AWS App Runner. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://apprunner.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#AssociateCustomDomain:
    post:
      operationId: AssociateCustomDomain
      summary: Associate Custom Domain
      description: Associate your own domain name with the App Runner subdomain URL of your App Runner service. After you
        call AssociateCustomDomain and receive a successful response, use the information in the CustomDomain record that's
        returned to add CNAME records to your Domain Name System (DNS). For each mapped domain name, add a mapping to the
        target App Runner subdomain and one or more certificate validation records. App Runner then performs DNS validation
        to verify that you own or control the domain name that you associated. App Runner tracks domain validity in a certificate
        stored in AWS Certificate Manager (ACM).
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/AssociateCustomDomainResponse'
        '500':
          description: InternalServiceErrorException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServiceErrorException'
        '400':
          description: InvalidRequestException; InvalidStateException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AppRunner.AssociateCustomDomain
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/AssociateCustomDomainRequest'
      tags:
      - Custom Domains
  /#DescribeCustomDomains:
    post:
      operationId: DescribeCustomDomains
      summary: Describe Custom Domains
      description: Return a description of custom domain names that are associated with an App Runner service.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/DescribeCustomDomainsResponse'
        '500':
          description: InternalServiceErrorException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServiceErrorException'
        '400':
          description: InvalidRequestException; ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AppRunner.DescribeCustomDomains
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/DescribeCustomDomainsRequest'
      tags:
      - Custom Domains
  /#DisassociateCustomDomain:
    post:
      operationId: DisassociateCustomDomain
      summary: Disassociate Custom Domain
      description: Disassociate a custom domain name from an App Runner service. Certificates tracking domain validity are
        associated with a custom domain and are stored in AWS Certificate Manager (ACM). These certificates aren't deleted
        as part of this action. App Runner delays certificate deletion for 30 days after a domain is disassociated from your
        service.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/DisassociateCustomDomainResponse'
        '500':
          description: InternalServiceErrorException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InternalServiceErrorException'
        '400':
          description: InvalidRequestException; InvalidStateException; ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AppRunner.DisassociateCustomDomain
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/DisassociateCustomDomainRequest'
      tags:
      - Custom Domains
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: apprunner
  schemas:
    AssociateCustomDomainRequest:
      type: object
      properties:
        ServiceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the App Runner service that you want to associate a custom domain
            name with.
        DomainName:
          type: string
          description: A custom domain endpoint to associate. Specify 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: 'Set to true to associate the subdomain www.DomainName with the App Runner service in addition to the
            base domain. Default: true'
      required:
      - ServiceArn
      - DomainName
    AssociateCustomDomainResponse:
      type: object
      properties:
        DNSTarget:
          type: string
          description: The App Runner subdomain of the App Runner service. The custom domain name is mapped to this target
            name.
        ServiceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the App Runner service with which a custom domain name is associated.
        CustomDomain:
          $ref: '#/components/schemas/CustomDomain'
        VpcDNSTargets:
          type: array
          items:
            $ref: '#/components/schemas/VpcDNSTarget'
          description: DNS Target records for the custom domains of this Amazon VPC.
      required:
      - DNSTarget
      - ServiceArn
      - CustomDomain
      - VpcDNSTargets
    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: '#/components/schemas/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
    DescribeCustomDomainsRequest:
      type: object
      properties:
        ServiceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the App Runner service that you want associated custom domain names
            to be described for.
        NextToken:
          type: string
          description: A token from a previous result page. It's used for a paginated request. The request retrieves the next
            result page. All other parameter values must be identical to the ones that are specified in the initial request.
            If you don't specify NextToken, the request retrieves the first result page.
        MaxResults:
          type: integer
          description: The maximum number of results that each response (result page) can include. It's used for a paginated
            request. If you don't specify MaxResults, the request retrieves all available results in a single response.
      required:
      - ServiceArn
    DescribeCustomDomainsResponse:
      type: object
      properties:
        DNSTarget:
          type: string
          description: The App Runner subdomain of the App Runner service. The associated custom domain names are mapped to
            this target name.
        ServiceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the App Runner service whose associated custom domain names you want
            to describe.
        CustomDomains:
          type: array
          items:
            $ref: '#/components/schemas/CustomDomain'
          description: A list of descriptions of custom domain names that are associated with the service. In a paginated
            request, the request returns up to MaxResults records per call.
        VpcDNSTargets:
          type: array
          items:
            $ref: '#/components/schemas/VpcDNSTarget'
          description: DNS Target records for the custom domains of this Amazon VPC.
        NextToken:
          type: string
          description: The token that you can pass in a subsequent request to get the next result page. It's returned in a
            paginated request.
      required:
      - DNSTarget
      - ServiceArn
      - CustomDomains
      - VpcDNSTargets
    DisassociateCustomDomainRequest:
      type: object
      properties:
        ServiceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the App Runner service that you want to disassociate a custom domain
            name from.
        DomainName:
          type: string
          description: The domain name that you want to disassociate from the App Runner service.
      required:
      - ServiceArn
      - DomainName
    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: '#/components/schemas/CustomDomain'
        VpcDNSTargets:
          type: array
          items:
            $ref: '#/components/schemas/VpcDNSTarget'
          description: DNS Target records for the custom domains of this Amazon VPC.
      required:
      - DNSTarget
      - ServiceArn
      - CustomDomain
      - VpcDNSTargets
    InternalServiceErrorException:
      type: object
      properties:
        Message:
          type: string
    InvalidRequestException:
      type: object
      properties:
        Message:
          type: string
    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.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/apprunner/service/2020-05-15/apprunner-2020-05-15.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)