/AWS1/IF_REK=>DELETEPROJECTPOLICY()¶
About DeleteProjectPolicy¶
This operation applies only to Amazon Rekognition Custom Labels.
Deletes an existing project policy.
To get a list of project policies attached to a project, call ListProjectPolicies. To attach a project policy to a project, call PutProjectPolicy.
This operation requires permissions to perform the rekognition:DeleteProjectPolicy action.
Method Signature¶
METHODS /AWS1/IF_REK~DELETEPROJECTPOLICY
IMPORTING
!IV_PROJECTARN TYPE /AWS1/REKPROJECTARN OPTIONAL
!IV_POLICYNAME TYPE /AWS1/REKPROJECTPOLICYNAME OPTIONAL
!IV_POLICYREVISIONID TYPE /AWS1/REKPROJECTPLYREVISIONID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rekdelprojectplyrsp
RAISING
/AWS1/CX_REKACCESSDENIEDEX
/AWS1/CX_REKINTERNALSERVERERR
/AWS1/CX_REKINVALIDPARAMETEREX
/AWS1/CX_REKINVPLYREVISIONIDEX
/AWS1/CX_REKPROVTHRUPUTEXCDEX
/AWS1/CX_REKRESOURCENOTFOUNDEX
/AWS1/CX_REKTHROTTLINGEX
/AWS1/CX_REKCLIENTEXC
/AWS1/CX_REKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_projectarn TYPE /AWS1/REKPROJECTARN /AWS1/REKPROJECTARN¶
The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached to.
iv_policyname TYPE /AWS1/REKPROJECTPOLICYNAME /AWS1/REKPROJECTPOLICYNAME¶
The name of the policy that you want to delete.
Optional arguments:¶
iv_policyrevisionid TYPE /AWS1/REKPROJECTPLYREVISIONID /AWS1/REKPROJECTPLYREVISIONID¶
The ID of the project policy revision that you want to delete.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rekdelprojectplyrsp /AWS1/CL_REKDELPROJECTPLYRSP¶
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->deleteprojectpolicy(
iv_policyname = |string|
iv_policyrevisionid = |string|
iv_projectarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.
DeleteProjectPolicy¶
This operation deletes a revision of an existing project policy from an Amazon Rekognition Custom Labels project.
DATA(lo_result) = lo_client->deleteprojectpolicy(
iv_policyname = |testPolicy1|
iv_policyrevisionid = |3b274c25e9203a56a99e00e3ff205fbc|
iv_projectarn = |arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/1656557123456|
).