/AWS1/IF_EBN=>LISTAVAILABLESOLUTIONSTACKS()¶
About ListAvailableSolutionStacks¶
Returns a list of the available solution stack names, with the public version first and then in reverse chronological order.
This action only returns information about resources that the calling principle has IAM permissions to access. For example, consider a case where a user only has permission to access one of three resources. When the user calls the this action, the response will only include the one resource that the user has permission to access instead of all three resources. If the user doesn’t have access to any of the resources an empty result is returned.
The AWSElasticBeanstalkReadOnly managed policy allows operators to view information about resources related to Elastic Beanstalk. For more information, see Managing Elastic Beanstalk user policies in the Elastic Beanstalk Developer Guide. For detailed instructions to attach a policy to a user or group, see the section Controlling access with managed policies in the same topic.
Method Signature¶
METHODS /AWS1/IF_EBN~LISTAVAILABLESOLUTIONSTACKS
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ebnlstavailablesolu00
RAISING
/AWS1/CX_EBNCLIENTEXC
/AWS1/CX_EBNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ebnlstavailablesolu00 /AWS1/CL_EBNLSTAVAILABLESOLU00¶
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->listavailablesolutionstacks( ).
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_solutionstacks( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_solutionstackname = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_solutionstackdetails( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_solutionstackname = lo_row_3->get_solutionstackname( ).
LOOP AT lo_row_3->get_permittedfiletypes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_filetypeextension = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
To view solution stacks¶
The following operation lists solution stacks for all currently available platform configurations and any that you have used in the past:
DATA(lo_result) = lo_client->listavailablesolutionstacks( ).