/AWS1/IF_CWE=>REMOVEPERMISSION()¶
About RemovePermission¶
Revokes the permission of another Amazon Web Services account to be able to put events to the specified
event bus. Specify the account to revoke by the StatementId value that you
associated with the account when you granted it permission with PutPermission.
You can find the StatementId by using DescribeEventBus.
Method Signature¶
METHODS /AWS1/IF_CWE~REMOVEPERMISSION
IMPORTING
!IV_STATEMENTID TYPE /AWS1/CWESTATEMENTID OPTIONAL
!IV_REMOVEALLPERMISSIONS TYPE /AWS1/CWEBOOLEAN OPTIONAL
!IV_EVENTBUSNAME TYPE /AWS1/CWENONPARTNEREBUSNAME OPTIONAL
RAISING
/AWS1/CX_CWECONCURRENTMODEX
/AWS1/CX_CWEINTERNALEXCEPTION
/AWS1/CX_CWEOPDISABLEDEX
/AWS1/CX_CWERESOURCENOTFOUNDEX
/AWS1/CX_CWECLIENTEXC
/AWS1/CX_CWESERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_statementid TYPE /AWS1/CWESTATEMENTID /AWS1/CWESTATEMENTID¶
The statement ID corresponding to the account that is no longer allowed to put events to the default event bus.
iv_removeallpermissions TYPE /AWS1/CWEBOOLEAN /AWS1/CWEBOOLEAN¶
Specifies whether to remove all permissions.
iv_eventbusname TYPE /AWS1/CWENONPARTNEREBUSNAME /AWS1/CWENONPARTNEREBUSNAME¶
The name of the event bus to revoke permissions for. If you omit this, the default event bus is used.
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.
lo_client->removepermission(
iv_eventbusname = |string|
iv_removeallpermissions = ABAP_TRUE
iv_statementid = |string|
).