/AWS1/IF_PP2=>DESCRIBECONFIGURATIONSETS()¶
About DescribeConfigurationSets¶
Describes the specified configuration sets or all in your account.
If you specify configuration set names, the output includes information for only the specified configuration sets. If you specify filters, the output includes information for only those configuration sets that meet the filter criteria. If you don't specify configuration set names or filters, the output includes information for all configuration sets.
If you specify a configuration set name that isn't valid, an error is returned.
Method Signature¶
METHODS /AWS1/IF_PP2~DESCRIBECONFIGURATIONSETS
IMPORTING
!IT_CONFIGURATIONSETNAMES TYPE /AWS1/CL_PP2CONFSETNAMELIST_W=>TT_CONFIGURATIONSETNAMELIST OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_PP2CONFSETFILTER=>TT_CONFIGURATIONSETFILTERLIST OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/PP2NEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/PP2MAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pp2descrconfsetsrslt
RAISING
/AWS1/CX_PP2ACCESSDENIEDEX
/AWS1/CX_PP2INTERNALSERVEREX
/AWS1/CX_PP2RESOURCENOTFOUNDEX
/AWS1/CX_PP2THROTTLINGEX
/AWS1/CX_PP2VALIDATIONEX
/AWS1/CX_PP2CLIENTEXC
/AWS1/CX_PP2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_configurationsetnames TYPE /AWS1/CL_PP2CONFSETNAMELIST_W=>TT_CONFIGURATIONSETNAMELIST TT_CONFIGURATIONSETNAMELIST¶
An array of strings. Each element can be either a ConfigurationSetName or ConfigurationSetArn.
it_filters TYPE /AWS1/CL_PP2CONFSETFILTER=>TT_CONFIGURATIONSETFILTERLIST TT_CONFIGURATIONSETFILTERLIST¶
An array of filters to apply to the results that are returned.
iv_nexttoken TYPE /AWS1/PP2NEXTTOKEN /AWS1/PP2NEXTTOKEN¶
The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
iv_maxresults TYPE /AWS1/PP2MAXRESULTS /AWS1/PP2MAXRESULTS¶
The maximum number of results to return per each request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_pp2descrconfsetsrslt /AWS1/CL_PP2DESCRCONFSETSRSLT¶
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->describeconfigurationsets(
it_configurationsetnames = VALUE /aws1/cl_pp2confsetnamelist_w=>tt_configurationsetnamelist(
( new /aws1/cl_pp2confsetnamelist_w( |string| ) )
)
it_filters = VALUE /aws1/cl_pp2confsetfilter=>tt_configurationsetfilterlist(
(
new /aws1/cl_pp2confsetfilter(
it_values = VALUE /aws1/cl_pp2filtervaluelist_w=>tt_filtervaluelist(
( new /aws1/cl_pp2filtervaluelist_w( |string| ) )
)
iv_name = |string|
)
)
)
iv_maxresults = 123
iv_nexttoken = |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_configurationsets( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_configurationsetarn( ).
lv_configurationsetname = lo_row_1->get_configurationsetname( ).
LOOP AT lo_row_1->get_eventdestinations( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_eventdestinationname = lo_row_3->get_eventdestinationname( ).
lv_boolean = lo_row_3->get_enabled( ).
LOOP AT lo_row_3->get_matchingeventtypes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_eventtype = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lo_cloudwatchlogsdestinati = lo_row_3->get_cloudwatchlogsdst( ).
IF lo_cloudwatchlogsdestinati IS NOT INITIAL.
lv_iamrolearn = lo_cloudwatchlogsdestinati->get_iamrolearn( ).
lv_loggrouparn = lo_cloudwatchlogsdestinati->get_loggrouparn( ).
ENDIF.
lo_kinesisfirehosedestinat = lo_row_3->get_kinesisfirehosedst( ).
IF lo_kinesisfirehosedestinat IS NOT INITIAL.
lv_iamrolearn = lo_kinesisfirehosedestinat->get_iamrolearn( ).
lv_deliverystreamarn = lo_kinesisfirehosedestinat->get_deliverystreamarn( ).
ENDIF.
lo_snsdestination = lo_row_3->get_snsdestination( ).
IF lo_snsdestination IS NOT INITIAL.
lv_snstopicarn = lo_snsdestination->get_topicarn( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_messagetype = lo_row_1->get_defaultmessagetype( ).
lv_senderid = lo_row_1->get_defaultsenderid( ).
lv_boolean = lo_row_1->get_defmsgfeedbackenabled( ).
lv_timestamp = lo_row_1->get_createdtimestamp( ).
lv_protectconfigurationido = lo_row_1->get_protectconfigurationid( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.