/AWS1/IF_REH=>DELETEAPPINPUTSOURCE()
¶
About DeleteAppInputSource¶
Deletes the input source and all of its imported resources from the Resilience Hub application.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_apparn
TYPE /AWS1/REHARN
/AWS1/REHARN
¶
Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition
:resiliencehub:region
:account
:app/app-id
. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
Optional arguments:¶
iv_sourcearn
TYPE /AWS1/REHARN
/AWS1/REHARN
¶
The Amazon Resource Name (ARN) of the imported resource you want to remove from the Resilience Hub application. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
io_terraformsource
TYPE REF TO /AWS1/CL_REHTERRAFORMSOURCE
/AWS1/CL_REHTERRAFORMSOURCE
¶
The imported Terraform s3 state file you want to remove from the Resilience Hub application.
iv_clienttoken
TYPE /AWS1/REHCLIENTTOKEN
/AWS1/REHCLIENTTOKEN
¶
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
io_ekssourceclusternamespace
TYPE REF TO /AWS1/CL_REHEKSSRCCLSTNAMESP00
/AWS1/CL_REHEKSSRCCLSTNAMESP00
¶
The namespace on your Amazon Elastic Kubernetes Service cluster that you want to delete from the Resilience Hub application.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_rehdelappinputsrcrsp
/AWS1/CL_REHDELAPPINPUTSRCRSP
¶
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->/aws1/if_reh~deleteappinputsource(
io_ekssourceclusternamespace = new /aws1/cl_rehekssrcclstnamesp00(
iv_eksclusterarn = |string|
iv_namespace = |string|
)
io_terraformsource = new /aws1/cl_rehterraformsource( |string| )
iv_apparn = |string|
iv_clienttoken = |string|
iv_sourcearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_apparn( ).
lo_appinputsource = lo_result->get_appinputsource( ).
IF lo_appinputsource IS NOT INITIAL.
lv_string255 = lo_appinputsource->get_sourcename( ).
lv_resourcemappingtype = lo_appinputsource->get_importtype( ).
lv_arn = lo_appinputsource->get_sourcearn( ).
lo_terraformsource = lo_appinputsource->get_terraformsource( ).
IF lo_terraformsource IS NOT INITIAL.
lv_s3url = lo_terraformsource->get_s3statefileurl( ).
ENDIF.
lv_integer = lo_appinputsource->get_resourcecount( ).
lo_ekssourceclusternamespa = lo_appinputsource->get_ekssourceclustnamespace( ).
IF lo_ekssourceclusternamespa IS NOT INITIAL.
lv_arn = lo_ekssourceclusternamespa->get_eksclusterarn( ).
lv_eksnamespace = lo_ekssourceclusternamespa->get_namespace( ).
ENDIF.
ENDIF.
ENDIF.