Skip to content

/AWS1/CL_R53=>GETTRAFFICPOLICY()

About GetTrafficPolicy

Gets information about a specific traffic policy version.

For information about how of deleting a traffic policy affects the response from GetTrafficPolicy, see DeleteTrafficPolicy.

Method Signature

IMPORTING

Required arguments:

iv_id TYPE /AWS1/R53TRAFFICPOLICYID /AWS1/R53TRAFFICPOLICYID

The ID of the traffic policy that you want to get information about.

iv_version TYPE /AWS1/R53TRAFFICPOLICYVERSION /AWS1/R53TRAFFICPOLICYVERSION

The version number of the traffic policy that you want to get information about.

RETURNING

oo_output TYPE REF TO /aws1/cl_r53gettrafpolicyrsp /AWS1/CL_R53GETTRAFPOLICYRSP

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_r53~gettrafficpolicy(
  iv_id = |string|
  iv_version = 123
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_trafficpolicy = lo_result->get_trafficpolicy( ).
  IF lo_trafficpolicy IS NOT INITIAL.
    lv_trafficpolicyid = lo_trafficpolicy->get_id( ).
    lv_trafficpolicyversion = lo_trafficpolicy->get_version( ).
    lv_trafficpolicyname = lo_trafficpolicy->get_name( ).
    lv_rrtype = lo_trafficpolicy->get_type( ).
    lv_trafficpolicydocument = lo_trafficpolicy->get_document( ).
    lv_trafficpolicycomment = lo_trafficpolicy->get_comment( ).
  ENDIF.
ENDIF.