Skip to content

/AWS1/IF_NWS=>DELETEPOLICY()

About DeletePolicy

Deletes the specified policy.

Method Signature

METHODS /AWS1/IF_NWS~DELETEPOLICY
  IMPORTING
    !IV_POLICYIDENTIFIER TYPE /AWS1/NWSPOLICYIDENTIFIER OPTIONAL
  RAISING
    /AWS1/CX_NWSACCESSDENIEDEX
    /AWS1/CX_NWSCONFLICTEXCEPTION
    /AWS1/CX_NWSINTERNALSERVEREX
    /AWS1/CX_NWSTHROTTLINGEX
    /AWS1/CX_NWSVLDTNEXCEPTION
    /AWS1/CX_NWSCLIENTEXC
    /AWS1/CX_NWSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_policyidentifier TYPE /AWS1/NWSPOLICYIDENTIFIER /AWS1/NWSPOLICYIDENTIFIER

The identifier of the policy. This is the policy's Amazon Resource Name (ARN).

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

Delete a policy

Deletes a policy by its ARN. The policy must not be associated with any deployment.

lo_client->deletepolicy( |arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789| ).