/AWS1/IF_FNT=>ASSOCIATEALIAS()
¶
About AssociateAlias¶
The AssociateAlias
API operation only supports standard distributions. To move domains between distribution tenants and/or standard distributions, we recommend that you use the UpdateDomainAssociation API operation instead.
Associates an alias with a CloudFront standard distribution. An alias is commonly known as a custom domain or vanity domain. It can also be called a CNAME or alternate domain name.
With this operation, you can move an alias that's already used for a standard distribution to a different standard distribution. This prevents the downtime that could occur if you first remove the alias from one standard distribution and then separately add the alias to another standard distribution.
To use this operation, specify the alias and the ID of the target standard distribution.
For more information, including how to set up the target standard distribution, prerequisites that you must complete, and other restrictions, see Moving an alternate domain name to a different standard distribution or distribution tenant in the Amazon CloudFront Developer Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_targetdistributionid
TYPE /AWS1/FNTSTRING
/AWS1/FNTSTRING
¶
The ID of the standard distribution that you're associating the alias with.
iv_alias
TYPE /AWS1/FNTSTRING
/AWS1/FNTSTRING
¶
The alias (also known as a CNAME) to add to the target standard distribution.
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.
lo_client->/aws1/if_fnt~associatealias(
iv_alias = |string|
iv_targetdistributionid = |string|
).