Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

attach_security_profile

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