/AWS1/IF_CWL=>DELETEACCOUNTPOLICY()¶
About DeleteAccountPolicy¶
Deletes a CloudWatch Logs account policy. This stops the account-wide policy from applying to log groups in the account. If you delete a data protection policy or subscription filter policy, any log-group level policies of those types remain in effect.
To use this operation, you must be signed on with the correct permissions depending on the type of policy that you are deleting.
-
To delete a data protection policy, you must have the
logs:DeleteDataProtectionPolicyandlogs:DeleteAccountPolicypermissions. -
To delete a subscription filter policy, you must have the
logs:DeleteSubscriptionFilterandlogs:DeleteAccountPolicypermissions. -
To delete a transformer policy, you must have the
logs:DeleteTransformerandlogs:DeleteAccountPolicypermissions. -
To delete a field index policy, you must have the
logs:DeleteIndexPolicyandlogs:DeleteAccountPolicypermissions.
If you delete a field index policy, the indexing of the log events that happened before you deleted the policy will still be used for up to 30 days to improve CloudWatch Logs Insights queries.
Method Signature¶
METHODS /AWS1/IF_CWL~DELETEACCOUNTPOLICY
IMPORTING
!IV_POLICYNAME TYPE /AWS1/CWLPOLICYNAME OPTIONAL
!IV_POLICYTYPE TYPE /AWS1/CWLPOLICYTYPE OPTIONAL
RAISING
/AWS1/CX_CWLINVALIDPARAMETEREX
/AWS1/CX_CWLOPERATIONABORTEDEX
/AWS1/CX_CWLRESOURCENOTFOUNDEX
/AWS1/CX_CWLSERVICEUNAVAILEX
/AWS1/CX_CWLCLIENTEXC
/AWS1/CX_CWLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_policyname TYPE /AWS1/CWLPOLICYNAME /AWS1/CWLPOLICYNAME¶
The name of the policy to delete.
iv_policytype TYPE /AWS1/CWLPOLICYTYPE /AWS1/CWLPOLICYTYPE¶
The type of policy to delete.
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->deleteaccountpolicy(
iv_policyname = |string|
iv_policytype = |string|
).