/AWS1/IF_R5R=>DELETERESOLVERRULE()¶
About DeleteResolverRule¶
Deletes a Resolver rule. Before you can delete a Resolver rule, you must disassociate it from all the VPCs that you associated the Resolver rule with. For more information, see DisassociateResolverRule.
Method Signature¶
METHODS /AWS1/IF_R5R~DELETERESOLVERRULE
IMPORTING
!IV_RESOLVERRULEID TYPE /AWS1/R5RRESOURCEID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5rdelresolverrulersp
RAISING
/AWS1/CX_R5RINTERNALSVCERROREX
/AWS1/CX_R5RINVALIDPARAMETEREX
/AWS1/CX_R5RRESOURCEINUSEEX
/AWS1/CX_R5RRESOURCENOTFOUNDEX
/AWS1/CX_R5RTHROTTLINGEX
/AWS1/CX_R5RCLIENTEXC
/AWS1/CX_R5RSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resolverruleid TYPE /AWS1/R5RRESOURCEID /AWS1/R5RRESOURCEID¶
The ID of the Resolver rule that you want to delete.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5rdelresolverrulersp /AWS1/CL_R5RDELRESOLVERRULERSP¶
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->deleteresolverrule( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_resolverrule = lo_result->get_resolverrule( ).
IF lo_resolverrule IS NOT INITIAL.
lv_resourceid = lo_resolverrule->get_id( ).
lv_creatorrequestid = lo_resolverrule->get_creatorrequestid( ).
lv_arn = lo_resolverrule->get_arn( ).
lv_domainname = lo_resolverrule->get_domainname( ).
lv_resolverrulestatus = lo_resolverrule->get_status( ).
lv_statusmessage = lo_resolverrule->get_statusmessage( ).
lv_ruletypeoption = lo_resolverrule->get_ruletype( ).
lv_name = lo_resolverrule->get_name( ).
LOOP AT lo_resolverrule->get_targetips( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_ip = lo_row_1->get_ip( ).
lv_port = lo_row_1->get_port( ).
lv_ipv6 = lo_row_1->get_ipv6( ).
lv_protocol = lo_row_1->get_protocol( ).
lv_servernameindication = lo_row_1->get_servernameindication( ).
ENDIF.
ENDLOOP.
lv_resourceid = lo_resolverrule->get_resolverendpointid( ).
lv_accountid = lo_resolverrule->get_ownerid( ).
lv_sharestatus = lo_resolverrule->get_sharestatus( ).
lv_rfc3339timestring = lo_resolverrule->get_creationtime( ).
lv_rfc3339timestring = lo_resolverrule->get_modificationtime( ).
lv_delegationrecord = lo_resolverrule->get_delegationrecord( ).
ENDIF.
ENDIF.