IoT / Client / attach_security_profile
attach_security_profile#
- IoT.Client.attach_security_profile(**kwargs)#
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
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ResourceNotFoundException
IoT.Client.exceptions.LimitExceededException
IoT.Client.exceptions.VersionConflictException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.InternalFailureException