Skip to content

/AWS1/IF_OUT=>STARTOUTPOSTDECOMMISSION()

About StartOutpostDecommission

Starts the decommission process to return the Outposts racks or servers.

Method Signature

METHODS /AWS1/IF_OUT~STARTOUTPOSTDECOMMISSION
  IMPORTING
    !IV_OUTPOSTIDENTIFIER TYPE /AWS1/OUTOUTPOSTIDENTIFIER OPTIONAL
    !IV_VALIDATEONLY TYPE /AWS1/OUTVALIDATEONLY OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_outstrtoutpostdecom01
  RAISING
    /AWS1/CX_OUTACCESSDENIEDEX
    /AWS1/CX_OUTCONFLICTEXCEPTION
    /AWS1/CX_OUTINTERNALSERVEREX
    /AWS1/CX_OUTNOTFOUNDEXCEPTION
    /AWS1/CX_OUTVALIDATIONEX
    /AWS1/CX_OUTCLIENTEXC
    /AWS1/CX_OUTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_outpostidentifier TYPE /AWS1/OUTOUTPOSTIDENTIFIER /AWS1/OUTOUTPOSTIDENTIFIER

The ID or ARN of the Outpost that you want to decommission.

Optional arguments:

iv_validateonly TYPE /AWS1/OUTVALIDATEONLY /AWS1/OUTVALIDATEONLY

Validates the request without starting the decommission process.

RETURNING

oo_output TYPE REF TO /aws1/cl_outstrtoutpostdecom01 /AWS1/CL_OUTSTRTOUTPOSTDECOM01

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->startoutpostdecommission(
  iv_outpostidentifier = |string|
  iv_validateonly = ABAP_TRUE
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_decommissionrequeststat = lo_result->get_status( ).
  LOOP AT lo_result->get_blockingresourcetypes( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_blockingresourcetype = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
ENDIF.