/AWS1/IF_AZS=>UPDATEZONALAUTOSHIFTCONF()¶
About UpdateZonalAutoshiftConfiguration¶
The zonal autoshift configuration for a resource includes the practice run configuration and the status for running autoshifts, zonal autoshift status. When a resource has a practice run configuration, ARC starts weekly zonal shifts for the resource, to shift traffic away from an Availability Zone. Weekly practice runs help you to make sure that your application can continue to operate normally with the loss of one Availability Zone.
You can update the zonal autoshift status to enable or disable zonal autoshift. When zonal autoshift is ENABLED, you authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery. Traffic is also shifted away for the required weekly practice runs.
Method Signature¶
METHODS /AWS1/IF_AZS~UPDATEZONALAUTOSHIFTCONF
IMPORTING
!IV_RESOURCEIDENTIFIER TYPE /AWS1/AZSRESOURCEIDENTIFIER OPTIONAL
!IV_ZONALAUTOSHIFTSTATUS TYPE /AWS1/AZSZONALAUTOSHIFTSTATUS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_azsupzonalautoshift01
RAISING
/AWS1/CX_AZSACCESSDENIEDEX
/AWS1/CX_AZSCONFLICTEXCEPTION
/AWS1/CX_AZSINTERNALSERVEREX
/AWS1/CX_AZSRESOURCENOTFOUNDEX
/AWS1/CX_AZSTHROTTLINGEX
/AWS1/CX_AZSVALIDATIONEX
/AWS1/CX_AZSCLIENTEXC
/AWS1/CX_AZSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourceidentifier TYPE /AWS1/AZSRESOURCEIDENTIFIER /AWS1/AZSRESOURCEIDENTIFIER¶
The identifier for the resource that you want to update the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
iv_zonalautoshiftstatus TYPE /AWS1/AZSZONALAUTOSHIFTSTATUS /AWS1/AZSZONALAUTOSHIFTSTATUS¶
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose
ENABLEDto authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_azsupzonalautoshift01 /AWS1/CL_AZSUPZONALAUTOSHIFT01¶
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->updatezonalautoshiftconf(
iv_resourceidentifier = |string|
iv_zonalautoshiftstatus = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_resourceidentifier = lo_result->get_resourceidentifier( ).
lv_zonalautoshiftstatus = lo_result->get_zonalautoshiftstatus( ).
ENDIF.