create_security_profile
¶
create_security_profile(
security_profile_name: SecurityProfileName,
*,
config_overrides: Optional[IoTClientConfig] = None,
security_profile_description: Optional[SecurityProfileDescription] = None,
behaviors: Optional[Behaviors] = None,
alert_targets: Optional[AlertTargets] = None,
additional_metrics_to_retain: Optional[AdditionalMetricsToRetainList] = None,
additional_metrics_to_retain_v2: Optional[AdditionalMetricsToRetainV2List] = None,
tags: Optional[TagList] = None,
metrics_export_config: Optional[MetricsExportConfig] = None,
) -> CreateSecurityProfileResponse
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.
Creates a Device Defender security profile.
Requires permission to access the CreateSecurityProfile action.
Parameters:
-
security_profile_name(SecurityProfileName) –The name you are giving to the security profile.
-
security_profile_description(Optional[SecurityProfileDescription], default:None) –A description of the security profile.
-
behaviors(Optional[Behaviors], default:None) –Specifies the behaviors that, when violated by a device (thing), cause an alert.
-
alert_targets(Optional[AlertTargets], default:None) –Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
-
additional_metrics_to_retain(Optional[AdditionalMetricsToRetainList], default:None) –Please use CreateSecurityProfileRequest$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(Optional[AdditionalMetricsToRetainV2List], default:None) –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. -
tags(Optional[TagList], default:None) –Metadata that can be used to manage the security profile.
-
metrics_export_config(Optional[MetricsExportConfig], default:None) –Specifies the MQTT topic and role ARN required for metric export.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceAlreadyExistsException–The resource already exists.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 | |