Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can click “Customize cookies” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To continue without accepting these cookies, click “Continue without accepting.” To make more detailed choices or learn more, click “Customize cookies.”

Skip to content

/AWS1/CL_R53=>CREATETRAFFICPOLICYINSTANCE()

About CreateTrafficPolicyInstance

Creates resource record sets in a specified hosted zone based on the settings in a specified traffic policy version. In addition, CreateTrafficPolicyInstance associates the resource record sets with a specified domain name (such as example.com) or subdomain name (such as www.example.com). Amazon Route 53 responds to DNS queries for the domain or subdomain name by using the resource record sets that CreateTrafficPolicyInstance created.

After you submit an CreateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. Use GetTrafficPolicyInstance with the id of new traffic policy instance to confirm that the CreateTrafficPolicyInstance request completed successfully. For more information, see the State response element.

Method Signature

IMPORTING

Required arguments:

IV_HOSTEDZONEID TYPE /AWS1/R53RESOURCEID /AWS1/R53RESOURCEID

The ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy.

IV_NAME TYPE /AWS1/R53DNSNAME /AWS1/R53DNSNAME

The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance.

IV_TTL TYPE /AWS1/R53TTL /AWS1/R53TTL

(Optional) The TTL that you want Amazon Route 53 to assign to all of the resource record sets that it creates in the specified hosted zone.

IV_TRAFFICPOLICYID TYPE /AWS1/R53TRAFFICPOLICYID /AWS1/R53TRAFFICPOLICYID

The ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

IV_TRAFFICPOLICYVERSION TYPE /AWS1/R53TRAFFICPOLICYVERSION /AWS1/R53TRAFFICPOLICYVERSION

The version of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_R53CRETRAFPLYINSTRSP /AWS1/CL_R53CRETRAFPLYINSTRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC