/AWS1/IF_ECS=>DELETEEXPRESSGATEWAYSERVICE()¶
About DeleteExpressGatewayService¶
Deletes an Express service and removes all associated Amazon Web Services resources. This operation stops service tasks, removes the Application Load Balancer, target groups, security groups, auto-scaling policies, and other managed infrastructure components.
The service enters a DRAINING state where existing tasks complete current
requests without starting new tasks. After all tasks stop, the service and infrastructure
are permanently removed.
This operation cannot be reversed. Back up important data and verify the service is no longer needed before deletion.
Method Signature¶
METHODS /AWS1/IF_ECS~DELETEEXPRESSGATEWAYSERVICE
IMPORTING
!IV_SERVICEARN TYPE /AWS1/ECSSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ecsdelexpressgwsvcrsp
RAISING
/AWS1/CX_ECSACCESSDENIEDEX
/AWS1/CX_ECSCLIENTEXCEPTION
/AWS1/CX_ECSCLUSTERNOTFOUNDEX
/AWS1/CX_ECSINVALIDPARAMETEREX
/AWS1/CX_ECSSERVEREXCEPTION
/AWS1/CX_ECSSERVICENOTACTIVEEX
/AWS1/CX_ECSSERVICENOTFOUNDEX
/AWS1/CX_ECSUNSUPPEDFEATUREEX
/AWS1/CX_ECSCLIENTEXC
/AWS1/CX_ECSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_servicearn TYPE /AWS1/ECSSTRING /AWS1/ECSSTRING¶
The Amazon Resource Name (ARN) of the Express service to delete. The ARN uniquely identifies the service within your Amazon Web Services account and region.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ecsdelexpressgwsvcrsp /AWS1/CL_ECSDELEXPRESSGWSVCRSP¶
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->deleteexpressgatewayservice( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_ecsexpressgatewayservic = lo_result->get_service( ).
IF lo_ecsexpressgatewayservic IS NOT INITIAL.
lv_string = lo_ecsexpressgatewayservic->get_cluster( ).
lv_string = lo_ecsexpressgatewayservic->get_servicename( ).
lv_string = lo_ecsexpressgatewayservic->get_servicearn( ).
lv_string = lo_ecsexpressgatewayservic->get_infrastructurerolearn( ).
lo_expressgatewayservicest = lo_ecsexpressgatewayservic->get_status( ).
IF lo_expressgatewayservicest IS NOT INITIAL.
lv_expressgatewayservicest_1 = lo_expressgatewayservicest->get_statuscode( ).
lv_string = lo_expressgatewayservicest->get_statusreason( ).
ENDIF.
lv_string = lo_ecsexpressgatewayservic->get_currentdeployment( ).
LOOP AT lo_ecsexpressgatewayservic->get_activeconfigurations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_servicerevisionarn( ).
lv_string = lo_row_1->get_executionrolearn( ).
lv_string = lo_row_1->get_taskrolearn( ).
lv_string = lo_row_1->get_cpu( ).
lv_string = lo_row_1->get_memory( ).
lo_expressgatewayservicene = lo_row_1->get_networkconfiguration( ).
IF lo_expressgatewayservicene IS NOT INITIAL.
LOOP AT lo_expressgatewayservicene->get_securitygroups( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_expressgatewayservicene->get_subnets( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_string = lo_row_1->get_healthcheckpath( ).
lo_expressgatewaycontainer = lo_row_1->get_primarycontainer( ).
IF lo_expressgatewaycontainer IS NOT INITIAL.
lv_string = lo_expressgatewaycontainer->get_image( ).
lv_boxedinteger = lo_expressgatewaycontainer->get_containerport( ).
lo_expressgatewayserviceaw = lo_expressgatewaycontainer->get_awslogsconfiguration( ).
IF lo_expressgatewayserviceaw IS NOT INITIAL.
lv_string = lo_expressgatewayserviceaw->get_loggroup( ).
lv_string = lo_expressgatewayserviceaw->get_logstreamprefix( ).
ENDIF.
lo_expressgatewayrepositor = lo_expressgatewaycontainer->get_repositorycredentials( ).
IF lo_expressgatewayrepositor IS NOT INITIAL.
lv_string = lo_expressgatewayrepositor->get_credentialsparameter( ).
ENDIF.
LOOP AT lo_expressgatewaycontainer->get_command( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_expressgatewaycontainer->get_environment( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_name( ).
lv_string = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_expressgatewaycontainer->get_secrets( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_name( ).
lv_string = lo_row_7->get_valuefrom( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_expressgatewayscalingta = lo_row_1->get_scalingtarget( ).
IF lo_expressgatewayscalingta IS NOT INITIAL.
lv_boxedinteger = lo_expressgatewayscalingta->get_mintaskcount( ).
lv_boxedinteger = lo_expressgatewayscalingta->get_maxtaskcount( ).
lv_expressgatewayservicesc = lo_expressgatewayscalingta->get_autoscalingmetric( ).
lv_boxedinteger = lo_expressgatewayscalingta->get_autoscalingtargetvalue( ).
ENDIF.
LOOP AT lo_row_1->get_ingresspaths( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_accesstype = lo_row_9->get_accesstype( ).
lv_string = lo_row_9->get_endpoint( ).
ENDIF.
ENDLOOP.
lv_timestamp = lo_row_1->get_createdat( ).
ENDIF.
ENDLOOP.
LOOP AT lo_ecsexpressgatewayservic->get_tags( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_tagkey = lo_row_11->get_key( ).
lv_tagvalue = lo_row_11->get_value( ).
ENDIF.
ENDLOOP.
lv_timestamp = lo_ecsexpressgatewayservic->get_createdat( ).
lv_timestamp = lo_ecsexpressgatewayservic->get_updatedat( ).
ENDIF.
ENDIF.