IoT / Client / attach_security_profile

attach_security_profile

IoT.Client.attach_security_profile(**kwargs)

Note

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.

Associates a Device Defender security profile with a thing group or this account. Each thing group or account can have up to five security profiles associated with it.

Requires permission to access the AttachSecurityProfile action.

See also: AWS API Documentation

Request Syntax

response = client.attach_security_profile(
    securityProfileName='string',
    securityProfileTargetArn='string'
)
Parameters:
  • securityProfileName (string) –

    [REQUIRED]

    The security profile that is attached.

  • securityProfileTargetArn (string) –

    [REQUIRED]

    The ARN of the target (thing group) to which the security profile is attached.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions