Skip to content

/AWS1/CL_IOT=>UPDATESECURITYPROFILE()

About UpdateSecurityProfile

Updates a Device Defender security profile.

Requires permission to access the UpdateSecurityProfile action.

Method Signature

IMPORTING

Required arguments:

IV_SECURITYPROFILENAME TYPE /AWS1/IOTSECURITYPROFILENAME /AWS1/IOTSECURITYPROFILENAME

The name of the security profile you want to update.

Optional arguments:

IV_SECURITYPROFILEDESC TYPE /AWS1/IOTSECURITYPROFILEDESC /AWS1/IOTSECURITYPROFILEDESC

A description of the security profile.

IT_BEHAVIORS TYPE /AWS1/CL_IOTBEHAVIOR=>TT_BEHAVIORS TT_BEHAVIORS

Specifies the behaviors that, when violated by a device (thing), cause an alert.

IT_ALERTTARGETS TYPE /AWS1/CL_IOTALERTTARGET=>TT_ALERTTARGETS TT_ALERTTARGETS

Where the alerts are sent. (Alerts are always sent to the console.)

IT_ADDITIONALMETRICSTORETAIN TYPE /AWS1/CL_IOTADDLMETTORTNLIST_W=>TT_ADDLMETRICSTORETAINLIST TT_ADDLMETRICSTORETAINLIST

Please use UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.

A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.

IT_ADDLMETRICSTORETAINV2 TYPE /AWS1/CL_IOTMETRICTORETAIN=>TT_ADDLMETRICSTORETAINV2LIST TT_ADDLMETRICSTORETAINV2LIST

A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.

IV_DELETEBEHAVIORS TYPE /AWS1/IOTDELETEBEHAVIORS /AWS1/IOTDELETEBEHAVIORS

If true, delete all behaviors defined for this security profile. If any behaviors are defined in the current invocation, an exception occurs.

IV_DELETEALERTTARGETS TYPE /AWS1/IOTDELETEALERTTARGETS /AWS1/IOTDELETEALERTTARGETS

If true, delete all alertTargets defined for this security profile. If any alertTargets are defined in the current invocation, an exception occurs.

IV_DELETEADDLMETRICSTORETAIN TYPE /AWS1/IOTDELETEADDLMETTORETAIN /AWS1/IOTDELETEADDLMETTORETAIN

If true, delete all additionalMetricsToRetain defined for this security profile. If any additionalMetricsToRetain are defined in the current invocation, an exception occurs.

IV_EXPECTEDVERSION TYPE /AWS1/IOTOPTIONALVERSION /AWS1/IOTOPTIONALVERSION

The expected version of the security profile. A new version is generated whenever the security profile is updated. If you specify a value that is different from the actual version, a VersionConflictException is thrown.

IO_METRICSEXPORTCONFIG TYPE REF TO /AWS1/CL_IOTMETEXPORTCONFIG /AWS1/CL_IOTMETEXPORTCONFIG

Specifies the MQTT topic and role ARN required for metric export.

IV_DELETEMETRICSEXPORTCONFIG TYPE /AWS1/IOTDELETEMETEXPORTCONFIG /AWS1/IOTDELETEMETEXPORTCONFIG

Set the value as true to delete metrics export related configurations.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_IOTUPDATESECPFLRSP /AWS1/CL_IOTUPDATESECPFLRSP