Skip to content

/AWS1/IF_R5G=>DELETEFIREWALLRULE()

About DeleteFirewallRule

Deletes a DNS firewall rule. This operation cannot be undone.

Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.

Method Signature

METHODS /AWS1/IF_R5G~DELETEFIREWALLRULE
  IMPORTING
    !IV_FIREWALLRULEID TYPE /AWS1/R5GRESOURCEID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5gdeletefwallruleout
  RAISING
    /AWS1/CX_R5GACCESSDENIEDEX
    /AWS1/CX_R5GCONFLICTEXCEPTION
    /AWS1/CX_R5GINTERNALSERVEREX
    /AWS1/CX_R5GRESOURCENOTFOUNDEX
    /AWS1/CX_R5GTHROTTLINGEX
    /AWS1/CX_R5GVLDTNEXCEPTION
    /AWS1/CX_R5GCLIENTEXC
    /AWS1/CX_R5GSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_firewallruleid TYPE /AWS1/R5GRESOURCEID /AWS1/R5GRESOURCEID

The unique identifier of the firewall rule to delete.

RETURNING

oo_output TYPE REF TO /aws1/cl_r5gdeletefwallruleout /AWS1/CL_R5GDELETEFWALLRULEOUT

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->deletefirewallrule( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_firewallruleaction = lo_result->get_action( ).
  lv_blockoverridednsqueryty = lo_result->get_blockoverridednstype( ).
  lv_domain = lo_result->get_blockoverridedomain( ).
  lv_blockoverridettl = lo_result->get_blockoverridettl( ).
  lv_firewallblockresponse = lo_result->get_blockresponse( ).
  lv_confidencethreshold = lo_result->get_confidencethreshold( ).
  lv_iso8601timestring = lo_result->get_createdat( ).
  lv_resourcedescription = lo_result->get_description( ).
  lv_dnsadvancedprotection = lo_result->get_dnsadvancedprotection( ).
  lv_resourceid = lo_result->get_firewalldomainlistid( ).
  lv_resourceid = lo_result->get_id( ).
  lv_resourcename = lo_result->get_name( ).
  lv_firewallrulepriority = lo_result->get_priority( ).
  lv_resourceid = lo_result->get_dnsviewid( ).
  lv_dnsquerytype = lo_result->get_querytype( ).
  lv_crresourcestatus = lo_result->get_status( ).
  lv_iso8601timestring = lo_result->get_updatedat( ).
ENDIF.