/AWS1/IF_EC2=>DISABLEFASTSNAPSHOTRESTORES()¶
About DisableFastSnapshotRestores¶
Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.
Method Signature¶
METHODS /AWS1/IF_EC2~DISABLEFASTSNAPSHOTRESTORES
IMPORTING
!IT_AVAILABILITYZONES TYPE /AWS1/CL_EC2AZSTRINGLIST_W=>TT_AVAILABILITYZONESTRINGLIST OPTIONAL
!IT_AVAILABILITYZONEIDS TYPE /AWS1/CL_EC2AZIDSTRINGLIST_W=>TT_AZIDSTRINGLIST OPTIONAL
!IT_SOURCESNAPSHOTIDS TYPE /AWS1/CL_EC2SNAPIDSTRINGLIST_W=>TT_SNAPSHOTIDSTRINGLIST OPTIONAL
!IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ec2dsbfastsnapresto01
RAISING
/AWS1/CX_EC2CLIENTEXC
/AWS1/CX_EC2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_sourcesnapshotids TYPE /AWS1/CL_EC2SNAPIDSTRINGLIST_W=>TT_SNAPSHOTIDSTRINGLIST TT_SNAPSHOTIDSTRINGLIST¶
The IDs of one or more snapshots. For example,
snap-1234567890abcdef0.
Optional arguments:¶
it_availabilityzones TYPE /AWS1/CL_EC2AZSTRINGLIST_W=>TT_AVAILABILITYZONESTRINGLIST TT_AVAILABILITYZONESTRINGLIST¶
One or more Availability Zones. For example,
us-east-2a.Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.
it_availabilityzoneids TYPE /AWS1/CL_EC2AZIDSTRINGLIST_W=>TT_AZIDSTRINGLIST TT_AZIDSTRINGLIST¶
One or more Availability Zone IDs. For example,
use2-az1.Either
AvailabilityZoneorAvailabilityZoneIdmust be specified in the request, but not both.
iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN¶
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ec2dsbfastsnapresto01 /AWS1/CL_EC2DSBFASTSNAPRESTO01¶
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->disablefastsnapshotrestores(
it_availabilityzoneids = VALUE /aws1/cl_ec2azidstringlist_w=>tt_azidstringlist(
( new /aws1/cl_ec2azidstringlist_w( |string| ) )
)
it_availabilityzones = VALUE /aws1/cl_ec2azstringlist_w=>tt_availabilityzonestringlist(
( new /aws1/cl_ec2azstringlist_w( |string| ) )
)
it_sourcesnapshotids = VALUE /aws1/cl_ec2snapidstringlist_w=>tt_snapshotidstringlist(
( new /aws1/cl_ec2snapidstringlist_w( |string| ) )
)
iv_dryrun = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_successful( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_snapshotid( ).
lv_string = lo_row_1->get_availabilityzone( ).
lv_string = lo_row_1->get_availabilityzoneid( ).
lv_fastsnapshotrestorestat = lo_row_1->get_state( ).
lv_string = lo_row_1->get_statetransitionreason( ).
lv_string = lo_row_1->get_ownerid( ).
lv_string = lo_row_1->get_owneralias( ).
lv_milliseconddatetime = lo_row_1->get_enablingtime( ).
lv_milliseconddatetime = lo_row_1->get_optimizingtime( ).
lv_milliseconddatetime = lo_row_1->get_enabledtime( ).
lv_milliseconddatetime = lo_row_1->get_disablingtime( ).
lv_milliseconddatetime = lo_row_1->get_disabledtime( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_unsuccessful( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_snapshotid( ).
LOOP AT lo_row_3->get_fastsnaprestorestateerrs( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_availabilityzone( ).
lv_string = lo_row_5->get_availabilityzoneid( ).
lo_disablefastsnapshotrest = lo_row_5->get_error( ).
IF lo_disablefastsnapshotrest IS NOT INITIAL.
lv_string = lo_disablefastsnapshotrest->get_code( ).
lv_string = lo_disablefastsnapshotrest->get_message( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.