/AWS1/CL_OWX=>DESCRIBELAYERS()
¶
About DescribeLayers¶
Requests a description of one or more layers in a specified stack.
This call accepts only one resource-identifying parameter.
Required Permissions: To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.
Method Signature¶
IMPORTING¶
Optional arguments:¶
iv_stackid
TYPE /AWS1/OWXSTRING
/AWS1/OWXSTRING
¶
The stack ID.
it_layerids
TYPE /AWS1/CL_OWXSTRINGS_W=>TT_STRINGS
TT_STRINGS
¶
An array of layer IDs that specify the layers to be described. If you omit this parameter,
DescribeLayers
returns a description of every layer in the specified stack.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_owxdescrlayersresult
/AWS1/CL_OWXDESCRLAYERSRESULT
¶
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_owx~describelayers(
it_layerids = VALUE /aws1/cl_owxstrings_w=>tt_strings(
( new /aws1/cl_owxstrings_w( |string| ) )
)
iv_stackid = |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_layers( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_arn( ).
lv_string = lo_row_1->get_stackid( ).
lv_string = lo_row_1->get_layerid( ).
lv_layertype = lo_row_1->get_type( ).
lv_string = lo_row_1->get_name( ).
lv_string = lo_row_1->get_shortname( ).
LOOP AT lo_row_1->get_attributes( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lo_cloudwatchlogsconfigura = lo_row_1->get_cloudwatchlogsconf( ).
IF lo_cloudwatchlogsconfigura IS NOT INITIAL.
lv_boolean = lo_cloudwatchlogsconfigura->get_enabled( ).
LOOP AT lo_cloudwatchlogsconfigura->get_logstreams( ) into lo_row_3.
lo_row_4 = lo_row_3.
IF lo_row_4 IS NOT INITIAL.
lv_string = lo_row_4->get_loggroupname( ).
lv_string = lo_row_4->get_datetimeformat( ).
lv_cloudwatchlogstimezone = lo_row_4->get_timezone( ).
lv_string = lo_row_4->get_file( ).
lv_string = lo_row_4->get_filefingerprintlines( ).
lv_string = lo_row_4->get_multilinestartpattern( ).
lv_cloudwatchlogsinitialpo = lo_row_4->get_initialposition( ).
lv_cloudwatchlogsencoding = lo_row_4->get_encoding( ).
lv_integer = lo_row_4->get_bufferduration( ).
lv_integer = lo_row_4->get_batchcount( ).
lv_integer = lo_row_4->get_batchsize( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_string = lo_row_1->get_custominstanceprofilearn( ).
lv_string = lo_row_1->get_customjson( ).
LOOP AT lo_row_1->get_customsecuritygroupids( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_defaultsecgroupnames( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_packages( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_volumeconfigurations( ) into lo_row_7.
lo_row_8 = lo_row_7.
IF lo_row_8 IS NOT INITIAL.
lv_string = lo_row_8->get_mountpoint( ).
lv_integer = lo_row_8->get_raidlevel( ).
lv_integer = lo_row_8->get_numberofdisks( ).
lv_integer = lo_row_8->get_size( ).
lv_string = lo_row_8->get_volumetype( ).
lv_integer = lo_row_8->get_iops( ).
lv_boolean = lo_row_8->get_encrypted( ).
ENDIF.
ENDLOOP.
lv_boolean = lo_row_1->get_enableautohealing( ).
lv_boolean = lo_row_1->get_autoassignelasticips( ).
lv_boolean = lo_row_1->get_autoassignpublicips( ).
lo_recipes = lo_row_1->get_defaultrecipes( ).
IF lo_recipes IS NOT INITIAL.
LOOP AT lo_recipes->get_setup( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_recipes->get_configure( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_recipes->get_deploy( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_recipes->get_undeploy( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_recipes->get_shutdown( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_recipes = lo_row_1->get_customrecipes( ).
IF lo_recipes IS NOT INITIAL.
LOOP AT lo_recipes->get_setup( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_recipes->get_configure( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_recipes->get_deploy( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_recipes->get_undeploy( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_recipes->get_shutdown( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_string = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_datetime = lo_row_1->get_createdat( ).
lv_boolean = lo_row_1->get_installupdatesonboot( ).
lv_boolean = lo_row_1->get_useebsoptimizedinstances( ).
lo_lifecycleeventconfigura = lo_row_1->get_lifecycleeventconf( ).
IF lo_lifecycleeventconfigura IS NOT INITIAL.
lo_shutdowneventconfigurat = lo_lifecycleeventconfigura->get_shutdown( ).
IF lo_shutdowneventconfigurat IS NOT INITIAL.
lv_integer = lo_shutdowneventconfigurat->get_executiontimeout( ).
lv_boolean = lo_shutdowneventconfigurat->get_delayuntilelbconnsdrai00( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.