create_security_profile
async
¶
create_security_profile(
security_profile_name: SecurityProfileName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = 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/async_io_t.py
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 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 | |