/AWS1/IF_HS2=>MODIFYBACKUPATTRIBUTES()¶
About ModifyBackupAttributes¶
Modifies attributes for CloudHSM backup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
Method Signature¶
METHODS /AWS1/IF_HS2~MODIFYBACKUPATTRIBUTES
IMPORTING
!IV_BACKUPID TYPE /AWS1/HS2BACKUPID OPTIONAL
!IV_NEVEREXPIRES TYPE /AWS1/HS2BOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_hs2mdfybackupattrsrsp
RAISING
/AWS1/CX_HS2CLOUDHSMACCDENIE00
/AWS1/CX_HS2CLOUDHSMINTERNAL00
/AWS1/CX_HS2CLOUDHSMINVREQEX
/AWS1/CX_HS2CLOUDHSMRESRCNOT00
/AWS1/CX_HS2CLOUDHSMSERVICEEX
/AWS1/CX_HS2CLIENTEXC
/AWS1/CX_HS2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_backupid TYPE /AWS1/HS2BACKUPID /AWS1/HS2BACKUPID¶
The identifier (ID) of the backup to modify. To find the ID of a backup, use the DescribeBackups operation.
iv_neverexpires TYPE /AWS1/HS2BOOLEAN /AWS1/HS2BOOLEAN¶
Specifies whether the service should exempt a backup from the retention policy for the cluster.
Trueexempts a backup from the retention policy.Falsemeans the service applies the backup retention policy defined at the cluster.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_hs2mdfybackupattrsrsp /AWS1/CL_HS2MDFYBACKUPATTRSRSP¶
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->modifybackupattributes(
iv_backupid = |string|
iv_neverexpires = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_backup = lo_result->get_backup( ).
IF lo_backup IS NOT INITIAL.
lv_backupid = lo_backup->get_backupid( ).
lv_backuparn = lo_backup->get_backuparn( ).
lv_backupstate = lo_backup->get_backupstate( ).
lv_clusterid = lo_backup->get_clusterid( ).
lv_timestamp = lo_backup->get_createtimestamp( ).
lv_timestamp = lo_backup->get_copytimestamp( ).
lv_boolean = lo_backup->get_neverexpires( ).
lv_region = lo_backup->get_sourceregion( ).
lv_backupid = lo_backup->get_sourcebackup( ).
lv_clusterid = lo_backup->get_sourcecluster( ).
lv_timestamp = lo_backup->get_deletetimestamp( ).
LOOP AT lo_backup->get_taglist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_tagkey = lo_row_1->get_key( ).
lv_tagvalue = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_hsmtype = lo_backup->get_hsmtype( ).
lv_clustermode = lo_backup->get_mode( ).
ENDIF.
ENDIF.