/AWS1/IF_RSH=>REVOKECLUSTERSECGROUPINGRESS()¶
About RevokeClusterSecurityGroupIngress¶
Revokes an ingress rule in an Amazon Redshift security group for a previously authorized IP range or Amazon EC2 security group. To add an ingress rule, see AuthorizeClusterSecurityGroupIngress. For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide.
Method Signature¶
METHODS /AWS1/IF_RSH~REVOKECLUSTERSECGROUPINGRESS
  IMPORTING
    !IV_CLUSTERSECURITYGROUPNAME TYPE /AWS1/RSHSTRING OPTIONAL
    !IV_CIDRIP TYPE /AWS1/RSHSTRING OPTIONAL
    !IV_EC2SECURITYGROUPNAME TYPE /AWS1/RSHSTRING OPTIONAL
    !IV_EC2SECURITYGROUPOWNERID TYPE /AWS1/RSHSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rshrvkclstsecgringrs
  RAISING
    /AWS1/CX_RSHAUTHNOTFOUNDFAULT
    /AWS1/CX_RSHCLSTSECGRNOTFNDF00
    /AWS1/CX_RSHINVCLSTSECGRSTAT00
    /AWS1/CX_RSHCLIENTEXC
    /AWS1/CX_RSHSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_clustersecuritygroupname TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
The name of the security Group from which to revoke the ingress rule.
Optional arguments:¶
iv_cidrip TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
The IP range for which to revoke access. This range must be a valid Classless Inter-Domain Routing (CIDR) block of IP addresses. If
CIDRIPis specified,EC2SecurityGroupNameandEC2SecurityGroupOwnerIdcannot be provided.
iv_ec2securitygroupname TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
The name of the EC2 Security Group whose access is to be revoked. If
EC2SecurityGroupNameis specified,EC2SecurityGroupOwnerIdmust also be provided andCIDRIPcannot be provided.
iv_ec2securitygroupownerid TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
The Amazon Web Services account number of the owner of the security group specified in the
EC2SecurityGroupNameparameter. The Amazon Web Services access key ID is not an acceptable value. IfEC2SecurityGroupOwnerIdis specified,EC2SecurityGroupNamemust also be provided. andCIDRIPcannot be provided.Example:
111122223333
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rshrvkclstsecgringrs /AWS1/CL_RSHRVKCLSTSECGRINGRS¶
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->revokeclustersecgroupingress(
  iv_cidrip = |string|
  iv_clustersecuritygroupname = |string|
  iv_ec2securitygroupname = |string|
  iv_ec2securitygroupownerid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_clustersecuritygroup = lo_result->get_clustersecuritygroup( ).
  IF lo_clustersecuritygroup IS NOT INITIAL.
    lv_string = lo_clustersecuritygroup->get_clustersecuritygroupname( ).
    lv_string = lo_clustersecuritygroup->get_description( ).
    LOOP AT lo_clustersecuritygroup->get_ec2securitygroups( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_status( ).
        lv_string = lo_row_1->get_ec2securitygroupname( ).
        lv_string = lo_row_1->get_ec2securitygroupownerid( ).
        LOOP AT lo_row_1->get_tags( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_string = lo_row_3->get_key( ).
            lv_string = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
    LOOP AT lo_clustersecuritygroup->get_ipranges( ) into lo_row_4.
      lo_row_5 = lo_row_4.
      IF lo_row_5 IS NOT INITIAL.
        lv_string = lo_row_5->get_status( ).
        lv_string = lo_row_5->get_cidrip( ).
        LOOP AT lo_row_5->get_tags( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_string = lo_row_3->get_key( ).
            lv_string = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
    LOOP AT lo_clustersecuritygroup->get_tags( ) into lo_row_2.
      lo_row_3 = lo_row_2.
      IF lo_row_3 IS NOT INITIAL.
        lv_string = lo_row_3->get_key( ).
        lv_string = lo_row_3->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.