Skip to content

UpdateSecurityProfileRequest

Source code in docs_src/capo_iot/types/update_security_profile_request.py
class UpdateSecurityProfileRequest(TypedDict, closed=True):
    security_profile_name: "capo_iot.types.security_profile_name.SecurityProfileName"
    """<p>The name of the security profile you want to update.</p>"""
    security_profile_description: NotRequired[
        "capo_iot.types.security_profile_description.SecurityProfileDescription"
    ]
    """<p>A description of the security profile.</p>"""
    behaviors: NotRequired["capo_iot.types.behaviors.Behaviors"]
    """<p>Specifies the behaviors that, when violated by a device (thing), cause an alert.</p>"""
    alert_targets: NotRequired["capo_iot.types.alert_targets.AlertTargets"]
    """<p>Where the alerts are sent. (Alerts are always sent to the console.)</p>"""
    additional_metrics_to_retain: NotRequired[
        "capo_iot.types.additional_metrics_to_retain_list.AdditionalMetricsToRetainList"
    ]
    """<p> <i>Please use <a>UpdateSecurityProfileRequest$additionalMetricsToRetainV2</a> instead.</i> </p> <p>A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's <code>behaviors</code>, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.</p>"""
    additional_metrics_to_retain_v2: NotRequired[
        "capo_iot.types.additional_metrics_to_retain_v2_list.AdditionalMetricsToRetainV2List"
    ]
    """<p>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.</p>"""
    delete_behaviors: "capo_iot.types.delete_behaviors.DeleteBehaviors"
    """<p>If true, delete all <code>behaviors</code> defined for this security profile. If any <code>behaviors</code> are defined in the current invocation, an exception occurs.</p>"""
    delete_alert_targets: "capo_iot.types.delete_alert_targets.DeleteAlertTargets"
    """<p>If true, delete all <code>alertTargets</code> defined for this security profile. If any <code>alertTargets</code> are defined in the current invocation, an exception occurs.</p>"""
    delete_additional_metrics_to_retain: "capo_iot.types.delete_additional_metrics_to_retain.DeleteAdditionalMetricsToRetain"
    """<p>If true, delete all <code>additionalMetricsToRetain</code> defined for this security profile. If any <code>additionalMetricsToRetain</code> are defined in the current invocation, an exception occurs.</p>"""
    expected_version: NotRequired["capo_iot.types.optional_version.OptionalVersion"]
    """<p>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 <code>VersionConflictException</code> is thrown.</p>"""
    metrics_export_config: NotRequired[
        "capo_iot.types.metrics_export_config.MetricsExportConfig"
    ]
    """<p>Specifies the MQTT topic and role ARN required for metric export.</p>"""
    delete_metrics_export_config: (
        "capo_iot.types.delete_metrics_export_config.DeleteMetricsExportConfig"
    )
    """<p>Set the value as true to delete metrics export related configurations.</p>"""

additional_metrics_to_retain instance-attribute

additional_metrics_to_retain: NotRequired[AdditionalMetricsToRetainList]

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.

additional_metrics_to_retain_v2 instance-attribute

additional_metrics_to_retain_v2: NotRequired[AdditionalMetricsToRetainV2List]

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.

alert_targets instance-attribute

alert_targets: NotRequired[AlertTargets]

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

behaviors instance-attribute

behaviors: NotRequired[Behaviors]

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

delete_additional_metrics_to_retain instance-attribute

delete_additional_metrics_to_retain: DeleteAdditionalMetricsToRetain

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

delete_alert_targets instance-attribute

delete_alert_targets: DeleteAlertTargets

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

delete_behaviors instance-attribute

delete_behaviors: DeleteBehaviors

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

delete_metrics_export_config instance-attribute

delete_metrics_export_config: DeleteMetricsExportConfig

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

expected_version instance-attribute

expected_version: NotRequired[OptionalVersion]

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.

metrics_export_config instance-attribute

metrics_export_config: NotRequired[MetricsExportConfig]

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

security_profile_description instance-attribute

security_profile_description: NotRequired[SecurityProfileDescription]

A description of the security profile.

security_profile_name instance-attribute

security_profile_name: SecurityProfileName

The name of the security profile you want to update.