/AWS1/IF_STG=>DELETEFILESHARE()¶
About DeleteFileShare¶
Deletes a file share from an S3 File Gateway. This operation is only supported for S3 File Gateways.
Method Signature¶
METHODS /AWS1/IF_STG~DELETEFILESHARE
IMPORTING
!IV_FILESHAREARN TYPE /AWS1/STGFILESHAREARN OPTIONAL
!IV_FORCEDELETE TYPE /AWS1/STGBOOLEAN2 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_stgdeletefileshareout
RAISING
/AWS1/CX_STGINTERNALSERVERERR
/AWS1/CX_STGINVALIDGWREQUESTEX
/AWS1/CX_STGCLIENTEXC
/AWS1/CX_STGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_filesharearn TYPE /AWS1/STGFILESHAREARN /AWS1/STGFILESHAREARN¶
The Amazon Resource Name (ARN) of the file share to be deleted.
Optional arguments:¶
iv_forcedelete TYPE /AWS1/STGBOOLEAN2 /AWS1/STGBOOLEAN2¶
If this value is set to
true, the operation deletes a file share immediately and aborts all data uploads to Amazon Web Services. Otherwise, the file share is not deleted until all data is uploaded to Amazon Web Services. This process aborts the data upload process, and the file share enters theFORCE_DELETINGstatus.Valid Values:
true|false
RETURNING¶
oo_output TYPE REF TO /aws1/cl_stgdeletefileshareout /AWS1/CL_STGDELETEFILESHAREOUT¶
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->deletefileshare(
iv_filesharearn = |string|
iv_forcedelete = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_filesharearn = lo_result->get_filesharearn( ).
ENDIF.