/AWS1/IF_CNT=>LISTDATATABLEATTRIBUTES()¶
About ListDataTableAttributes¶
Returns all attributes for a specified data table. A maximum of 100 attributes per data table is allowed. Customers can request an increase by using Amazon Web Services Service Quotas. The response can be filtered by specific attribute IDs for CloudFormation integration.
Method Signature¶
METHODS /AWS1/IF_CNT~LISTDATATABLEATTRIBUTES
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
!IV_DATATABLEID TYPE /AWS1/CNTDATATABLEID OPTIONAL
!IT_ATTRIBUTEIDS TYPE /AWS1/CL_CNTATTRIBUTEIDS_W=>TT_ATTRIBUTEIDS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/CNTNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/CNTMAXRESULT1000 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntlstdatatblattrsrsp
RAISING
/AWS1/CX_CNTACCESSDENIEDEX
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTINVALIDREQUESTEX
/AWS1/CX_CNTRESOURCENOTFOUNDEX
/AWS1/CX_CNTTHROTTLINGEX
/AWS1/CX_CNTCLIENTEXC
/AWS1/CX_CNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_instanceid TYPE /AWS1/CNTINSTANCEID /AWS1/CNTINSTANCEID¶
The unique identifier for the Amazon Connect instance.
iv_datatableid TYPE /AWS1/CNTDATATABLEID /AWS1/CNTDATATABLEID¶
The unique identifier for the data table whose attributes should be listed.
Optional arguments:¶
it_attributeids TYPE /AWS1/CL_CNTATTRIBUTEIDS_W=>TT_ATTRIBUTEIDS TT_ATTRIBUTEIDS¶
Optional list of specific attribute IDs to retrieve. Used for CloudFormation to effectively describe attributes by ID. If NextToken is provided, this parameter is ignored.
iv_nexttoken TYPE /AWS1/CNTNEXTTOKEN /AWS1/CNTNEXTTOKEN¶
Specify the pagination token from a previous request to retrieve the next page of results.
iv_maxresults TYPE /AWS1/CNTMAXRESULT1000 /AWS1/CNTMAXRESULT1000¶
The maximum number of data table attributes to return in one page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntlstdatatblattrsrsp /AWS1/CL_CNTLSTDATATBLATTRSRSP¶
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->listdatatableattributes(
it_attributeids = VALUE /aws1/cl_cntattributeids_w=>tt_attributeids(
( new /aws1/cl_cntattributeids_w( |string| ) )
)
iv_datatableid = |string|
iv_instanceid = |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.
lv_nexttoken = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_attributes( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_datatableid = lo_row_1->get_attributeid( ).
lv_datatablename = lo_row_1->get_name( ).
lv_datatableattributevalue = lo_row_1->get_valuetype( ).
lv_datatabledescription = lo_row_1->get_description( ).
lv_datatableid = lo_row_1->get_datatableid( ).
lv_arn = lo_row_1->get_datatablearn( ).
lv_boolean = lo_row_1->get_primary( ).
lv_datatableversion = lo_row_1->get_version( ).
lo_datatablelockversion = lo_row_1->get_lockversion( ).
IF lo_datatablelockversion IS NOT INITIAL.
lv_string = lo_datatablelockversion->get_datatable( ).
lv_string = lo_datatablelockversion->get_attribute( ).
lv_string = lo_datatablelockversion->get_primaryvalues( ).
lv_string = lo_datatablelockversion->get_value( ).
ENDIF.
lv_timestamp = lo_row_1->get_lastmodifiedtime( ).
lv_regionname = lo_row_1->get_lastmodifiedregion( ).
lo_validation = lo_row_1->get_validation( ).
IF lo_validation IS NOT INITIAL.
lv_lengthboundary = lo_validation->get_minlength( ).
lv_lengthboundary = lo_validation->get_maxlength( ).
lv_valueboundary = lo_validation->get_minvalues( ).
lv_valueboundary = lo_validation->get_maxvalues( ).
lv_boolean = lo_validation->get_ignorecase( ).
lv_positiveandnegativedoub = lo_validation->get_minimum( ).
lv_positiveandnegativedoub = lo_validation->get_maximum( ).
lv_positiveandnegativedoub = lo_validation->get_exclusiveminimum( ).
lv_positiveandnegativedoub = lo_validation->get_exclusivemaximum( ).
lv_positivedouble = lo_validation->get_multipleof( ).
lo_validationenum = lo_validation->get_enum( ).
IF lo_validationenum IS NOT INITIAL.
lv_boolean = lo_validationenum->get_strict( ).
LOOP AT lo_validationenum->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.