Skip to content

/AWS1/CL_APR=>ASSOCIATECUSTOMDOMAIN()

About AssociateCustomDomain

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).

Method Signature

IMPORTING

Required arguments:

IV_SERVICEARN TYPE /AWS1/APRAPPRUNNERRESOURCEARN /AWS1/APRAPPRUNNERRESOURCEARN

The Amazon Resource Name (ARN) of the App Runner service that you want to associate a custom domain name with.

IV_DOMAINNAME TYPE /AWS1/APRDOMAINNAME /AWS1/APRDOMAINNAME

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).

Optional arguments:

IV_ENABLEWWWSUBDOMAIN TYPE /AWS1/APRNULLABLEBOOLEAN /AWS1/APRNULLABLEBOOLEAN

Set to true to associate the subdomain www.DomainName with the App Runner service in addition to the base domain.

Default: true

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_APRASSOCCUSTOMDOMRSP /AWS1/CL_APRASSOCCUSTOMDOMRSP