/AWS1/IF_BTC=>DESCRIBESCHEDULINGPOLICIES()¶
About DescribeSchedulingPolicies¶
Describes one or more of your scheduling policies.
Method Signature¶
METHODS /AWS1/IF_BTC~DESCRIBESCHEDULINGPOLICIES
IMPORTING
!IT_ARNS TYPE /AWS1/CL_BTCSTRINGLIST_W=>TT_STRINGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_btcdscschedulingpol01
RAISING
/AWS1/CX_BTCCLIENTEXCEPTION
/AWS1/CX_BTCSERVEREXCEPTION
/AWS1/CX_BTCCLIENTEXC
/AWS1/CX_BTCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_arns TYPE /AWS1/CL_BTCSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST¶
A list of up to 100 scheduling policy Amazon Resource Name (ARN) entries.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_btcdscschedulingpol01 /AWS1/CL_BTCDSCSCHEDULINGPOL01¶
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->describeschedulingpolicies(
it_arns = VALUE /aws1/cl_btcstringlist_w=>tt_stringlist(
( new /aws1/cl_btcstringlist_w( |string| ) )
)
).
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_schedulingpolicies( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_name( ).
lv_string = lo_row_1->get_arn( ).
lo_fairsharepolicy = lo_row_1->get_fairsharepolicy( ).
IF lo_fairsharepolicy IS NOT INITIAL.
lv_integer = lo_fairsharepolicy->get_sharedecayseconds( ).
lv_integer = lo_fairsharepolicy->get_computereservation( ).
LOOP AT lo_fairsharepolicy->get_sharedistribution( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_shareidentifier( ).
lv_float = lo_row_3->get_weightfactor( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_row_1->get_tags( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.