Skip to content

/AWS1/CL_EC2=>DISABLEFASTSNAPSHOTRESTORES()

About DisableFastSnapshotRestores

Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.

Method Signature

IMPORTING

Required arguments:

it_availabilityzones TYPE /AWS1/CL_EC2AZSTRINGLIST_W=>TT_AVAILABILITYZONESTRINGLIST TT_AVAILABILITYZONESTRINGLIST

One or more Availability Zones. For example, us-east-2a.

it_sourcesnapshotids TYPE /AWS1/CL_EC2SNAPIDSTRINGLIST_W=>TT_SNAPSHOTIDSTRINGLIST TT_SNAPSHOTIDSTRINGLIST

The IDs of one or more snapshots. For example, snap-1234567890abcdef0.

Optional arguments:

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 is UnauthorizedOperation.

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->/aws1/if_ec2~disablefastsnapshotrestores(
  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

LOOP AT lo_result->get_successful( ) into lo_row.
  lv_string = lo_row_1->get_snapshotid( ).
  lv_string = lo_row_1->get_availabilityzone( ).
  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( ).
ENDLOOP.
LOOP AT lo_result->get_unsuccessful( ) into lo_row_2.
  lv_string = lo_row_3->get_snapshotid( ).
  LOOP AT lo_row_3->get_fastsnaprestorestateerrs( ) into lo_row_4.
    lv_string = lo_row_5->get_availabilityzone( ).
    lv_string = lo_disablefastsnapshotrest->get_code( ).
    lv_string = lo_disablefastsnapshotrest->get_message( ).
  ENDLOOP.
ENDLOOP.