/AWS1/IF_IOT=>VLDTSECURITYPROFILEBEHAVS()¶
About ValidateSecurityProfileBehaviors¶
The IoT Device Defender detect feature will no longer be available to new customers starting August 31, 2026. If you would like to use the detect feature, sign up prior to August 31, 2026. To learn about alternatives to IoT Device Defender detect, see IoT Device Defender detect feature availability change in the IoT Device Defender Developer Guide. There is no change to IoT Device Defender audit availability.
Validates a Device Defender security profile behaviors specification.
Requires permission to access the ValidateSecurityProfileBehaviors action.
Method Signature¶
METHODS /AWS1/IF_IOT~VLDTSECURITYPROFILEBEHAVS
IMPORTING
!IT_BEHAVIORS TYPE /AWS1/CL_IOTBEHAVIOR=>TT_BEHAVIORS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iotvldtsecpflbehrsp
RAISING
/AWS1/CX_IOTINTERNALFAILUREEX
/AWS1/CX_IOTINVALIDREQUESTEX
/AWS1/CX_IOTTHROTTLINGEX
/AWS1/CX_IOTCLIENTEXC
/AWS1/CX_IOTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_behaviors TYPE /AWS1/CL_IOTBEHAVIOR=>TT_BEHAVIORS TT_BEHAVIORS¶
Specifies the behaviors that, when violated by a device (thing), cause an alert.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iotvldtsecpflbehrsp /AWS1/CL_IOTVLDTSECPFLBEHRSP¶
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->vldtsecurityprofilebehavs(
it_behaviors = VALUE /aws1/cl_iotbehavior=>tt_behaviors(
(
new /aws1/cl_iotbehavior(
io_criteria = new /aws1/cl_iotbehaviorcriteria(
io_mldetectionconfig = new /aws1/cl_iotmldetectionconfig( |string| )
io_statisticalthreshold = new /aws1/cl_iotstatlthreshold( |string| )
io_value = new /aws1/cl_iotmetricvalue(
it_cidrs = VALUE /aws1/cl_iotcidrs_w=>tt_cidrs(
( new /aws1/cl_iotcidrs_w( |string| ) )
)
it_numbers = VALUE /aws1/cl_iotnumberlist_w=>tt_numberlist(
( new /aws1/cl_iotnumberlist_w( |0.1| ) )
)
it_ports = VALUE /aws1/cl_iotports_w=>tt_ports(
( new /aws1/cl_iotports_w( 123 ) )
)
it_strings = VALUE /aws1/cl_iotstringlist_w=>tt_stringlist(
( new /aws1/cl_iotstringlist_w( |string| ) )
)
iv_count = 123
iv_number = '0.1'
)
iv_comparisonoperator = |string|
iv_conseqdatapointstoalarm = 123
iv_conseqdatapointstoclear = 123
iv_durationseconds = 123
)
io_metricdimension = new /aws1/cl_iotmetricdimension(
iv_dimensionname = |string|
iv_operator = |string|
)
iv_exportmetric = ABAP_TRUE
iv_metric = |string|
iv_name = |string|
iv_suppressalerts = ABAP_TRUE
)
)
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_valid = lo_result->get_valid( ).
LOOP AT lo_result->get_validationerrors( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_errormessage = lo_row_1->get_errormessage( ).
ENDIF.
ENDLOOP.
ENDIF.