Skip to content

/AWS1/CL_FNT=>LISTDOMAINCONFLICTS()

About ListDomainConflicts

We recommend that you use the ListDomainConflicts API operation to check for domain conflicts, as it supports both standard distributions and distribution tenants. ListConflictingAliases performs similar checks but only supports standard distributions.

Lists existing domain associations that conflict with the domain that you specify.

You can use this API operation to identify potential domain conflicts when moving domains between standard distributions and/or distribution tenants. Domain conflicts must be resolved first before they can be moved.

For example, if you provide www.example.com as input, the returned list can include www.example.com and the overlapping wildcard alternate domain name (.example.com), if they exist. If you provide .example.com as input, the returned list can include *.example.com and any alternate domain names covered by that wildcard (for example, www.example.com, test.example.com, dev.example.com, and so on), if they exist.

To list conflicting domains, specify the following:

  • The domain to search for

  • The ID of a standard distribution or distribution tenant in your account that has an attached TLS certificate, which covers the specified domain

For more information, including how to set up the standard distribution or distribution tenant, and the certificate, see Moving an alternate domain name to a different standard distribution or distribution tenant in the Amazon CloudFront Developer Guide.

You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

Method Signature

IMPORTING

Required arguments:

iv_domain TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

The domain to check for conflicts.

io_domainctlvalidationres TYPE REF TO /AWS1/CL_FNTDISTRIBUTIONRESID /AWS1/CL_FNTDISTRIBUTIONRESID

The distribution resource identifier. This can be the standard distribution or distribution tenant that has a valid certificate, which covers the domain that you specify.

Optional arguments:

iv_maxitems TYPE /AWS1/FNTINTEGER /AWS1/FNTINTEGER

The maximum number of domain conflicts to return.

iv_marker TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

The marker for the next set of domain conflicts.

RETURNING

oo_output TYPE REF TO /aws1/cl_fntlistdomconflictsrs /AWS1/CL_FNTLISTDOMCONFLICTSRS

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_fnt~listdomainconflicts(
  io_domainctlvalidationres = new /aws1/cl_fntdistributionresid(
    iv_distributionid = |string|
    iv_distributiontenantid = |string|
  )
  iv_domain = |string|
  iv_marker = |string|
  iv_maxitems = 123
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_domainconflicts( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_domain( ).
      lv_distributionresourcetyp = lo_row_1->get_resourcetype( ).
      lv_string = lo_row_1->get_resourceid( ).
      lv_string = lo_row_1->get_accountid( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_nextmarker( ).
ENDIF.