/AWS1/IF_R53=>LISTTRAFPLYINSTSBYHOSTEDZONE()¶
About ListTrafficPolicyInstancesByHostedZone¶
Gets information about the traffic policy instances that you created in a specified hosted zone.
After you submit a CreateTrafficPolicyInstance or an
UpdateTrafficPolicyInstance request, there's a brief delay while
Amazon Route 53 creates the resource record sets that are specified in the traffic
policy definition. For more information, see the State response
element.
Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic
policy instances, you can use the MaxItems parameter to list them in groups
of up to 100.
Method Signature¶
METHODS /AWS1/IF_R53~LISTTRAFPLYINSTSBYHOSTEDZONE
IMPORTING
!IV_HOSTEDZONEID TYPE /AWS1/R53RESOURCEID OPTIONAL
!IV_TRAFPOLICYINSTNAMEMARKER TYPE /AWS1/R53DNSNAME OPTIONAL
!IV_TRAFPOLICYINSTTYPEMARKER TYPE /AWS1/R53RRTYPE OPTIONAL
!IV_MAXITEMS TYPE /AWS1/R53INTEGER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r53lsttrfplyinstsby01
RAISING
/AWS1/CX_R53INVALIDINPUT
/AWS1/CX_R53NOSUCHHOSTEDZONE
/AWS1/CX_R53NOSUCHTRAFPLYINST
/AWS1/CX_R53CLIENTEXC
/AWS1/CX_R53SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_hostedzoneid TYPE /AWS1/R53RESOURCEID /AWS1/R53RESOURCEID¶
The ID of the hosted zone that you want to list traffic policy instances for.
Optional arguments:¶
iv_trafpolicyinstnamemarker TYPE /AWS1/R53DNSNAME /AWS1/R53DNSNAME¶
If the value of
IsTruncatedin the previous response is true, you have more traffic policy instances. To get more traffic policy instances, submit anotherListTrafficPolicyInstancesrequest. For the value oftrafficpolicyinstancename, specify the value ofTrafficPolicyInstanceNameMarkerfrom the previous response, which is the name of the first traffic policy instance in the next group of traffic policy instances.If the value of
IsTruncatedin the previous response wasfalse, there are no more traffic policy instances to get.
iv_trafpolicyinsttypemarker TYPE /AWS1/R53RRTYPE /AWS1/R53RRTYPE¶
If the value of
IsTruncatedin the previous response is true, you have more traffic policy instances. To get more traffic policy instances, submit anotherListTrafficPolicyInstancesrequest. For the value oftrafficpolicyinstancetype, specify the value ofTrafficPolicyInstanceTypeMarkerfrom the previous response, which is the type of the first traffic policy instance in the next group of traffic policy instances.If the value of
IsTruncatedin the previous response wasfalse, there are no more traffic policy instances to get.
iv_maxitems TYPE /AWS1/R53INTEGER /AWS1/R53INTEGER¶
The maximum number of traffic policy instances to be included in the response body for this request. If you have more than
MaxItemstraffic policy instances, the value of theIsTruncatedelement in the response istrue, and the values ofHostedZoneIdMarker,TrafficPolicyInstanceNameMarker, andTrafficPolicyInstanceTypeMarkerrepresent the first traffic policy instance that Amazon Route 53 will return if you submit another request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r53lsttrfplyinstsby01 /AWS1/CL_R53LSTTRFPLYINSTSBY01¶
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->listtrafplyinstsbyhostedzone(
iv_hostedzoneid = |string|
iv_maxitems = 123
iv_trafpolicyinstnamemarker = |string|
iv_trafpolicyinsttypemarker = |string|
).
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_trafficpolicyinstances( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_trafficpolicyinstanceid = lo_row_1->get_id( ).
lv_resourceid = lo_row_1->get_hostedzoneid( ).
lv_dnsname = lo_row_1->get_name( ).
lv_ttl = lo_row_1->get_ttl( ).
lv_trafficpolicyinstancest = lo_row_1->get_state( ).
lv_message = lo_row_1->get_message( ).
lv_trafficpolicyid = lo_row_1->get_trafficpolicyid( ).
lv_trafficpolicyversion = lo_row_1->get_trafficpolicyversion( ).
lv_rrtype = lo_row_1->get_trafficpolicytype( ).
ENDIF.
ENDLOOP.
lv_dnsname = lo_result->get_trafpolicyinstnamemarker( ).
lv_rrtype = lo_result->get_trafpolicyinsttypemarker( ).
lv_pagetruncated = lo_result->get_istruncated( ).
lv_integer = lo_result->get_maxitems( ).
ENDIF.