/AWS1/IF_R53=>DELETETRAFFICPOLICY()¶
About DeleteTrafficPolicy¶
Deletes a traffic policy.
When you delete a traffic policy, Route 53 sets a flag on the policy to indicate that it has been deleted. However, Route 53 never fully deletes the traffic policy. Note the following:
-
Deleted traffic policies aren't listed if you run ListTrafficPolicies.
-
There's no way to get a list of deleted policies.
-
If you retain the ID of the policy, you can get information about the policy, including the traffic policy document, by running GetTrafficPolicy.
Method Signature¶
METHODS /AWS1/IF_R53~DELETETRAFFICPOLICY
IMPORTING
!IV_ID TYPE /AWS1/R53TRAFFICPOLICYID OPTIONAL
!IV_VERSION TYPE /AWS1/R53TRAFFICPOLICYVERSION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r53deletetrafplyrsp
RAISING
/AWS1/CX_R53CONCURRENTMOD
/AWS1/CX_R53INVALIDINPUT
/AWS1/CX_R53NOSUCHTRAFPOLICY
/AWS1/CX_R53TRAFFICPOLICYINUSE
/AWS1/CX_R53CLIENTEXC
/AWS1/CX_R53SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_id TYPE /AWS1/R53TRAFFICPOLICYID /AWS1/R53TRAFFICPOLICYID¶
The ID of the traffic policy that you want to delete.
iv_version TYPE /AWS1/R53TRAFFICPOLICYVERSION /AWS1/R53TRAFFICPOLICYVERSION¶
The version number of the traffic policy that you want to delete.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r53deletetrafplyrsp /AWS1/CL_R53DELETETRAFPLYRSP¶
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->deletetrafficpolicy(
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.
ENDIF.