/AWS1/IF_AZS=>UPDATEZONALSHIFT()¶
About UpdateZonalShift¶
Update an active zonal shift in Amazon Application Recovery Controller in your Amazon Web Services account. You can update a zonal shift to set a new expiration, or edit or replace the comment for the zonal shift.
Method Signature¶
METHODS /AWS1/IF_AZS~UPDATEZONALSHIFT
IMPORTING
!IV_ZONALSHIFTID TYPE /AWS1/AZSZONALSHIFTID OPTIONAL
!IV_COMMENT TYPE /AWS1/AZSZONALSHIFTCOMMENT OPTIONAL
!IV_EXPIRESIN TYPE /AWS1/AZSEXPIRESIN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_azszonalshift
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_zonalshiftid TYPE /AWS1/AZSZONALSHIFTID /AWS1/AZSZONALSHIFTID¶
The identifier of a zonal shift.
Optional arguments:¶
iv_comment TYPE /AWS1/AZSZONALSHIFTCOMMENT /AWS1/AZSZONALSHIFTCOMMENT¶
A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
iv_expiresin TYPE /AWS1/AZSEXPIRESIN /AWS1/AZSEXPIRESIN¶
The length of time that you want a zonal shift to be active, which ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.
To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
A lowercase letter m: To specify that the value is in minutes.
A lowercase letter h: To specify that the value is in hours.
For example:
20hmeans the zonal shift expires in 20 hours.120mmeans the zonal shift expires in 120 minutes (2 hours).
RETURNING¶
oo_output TYPE REF TO /aws1/cl_azszonalshift /AWS1/CL_AZSZONALSHIFT¶
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->updatezonalshift(
iv_comment = |string|
iv_expiresin = |string|
iv_zonalshiftid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_zonalshiftid = lo_result->get_zonalshiftid( ).
lv_resourceidentifier = lo_result->get_resourceidentifier( ).
lv_availabilityzone = lo_result->get_awayfrom( ).
lv_expirytime = lo_result->get_expirytime( ).
lv_starttime = lo_result->get_starttime( ).
lv_zonalshiftstatus = lo_result->get_status( ).
lv_zonalshiftcomment = lo_result->get_comment( ).
ENDIF.