IoT / Client / list_security_profiles_for_target

list_security_profiles_for_target

IoT.Client.list_security_profiles_for_target(**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.

Lists the Device Defender security profiles attached to a target (thing group).

Requires permission to access the ListSecurityProfilesForTarget action.

See also: AWS API Documentation

Request Syntax

response = client.list_security_profiles_for_target(
    nextToken='string',
    maxResults=123,
    recursive=True|False,
    securityProfileTargetArn='string'
)
Parameters:
  • nextToken (string) – The token for the next set of results.

  • maxResults (integer) – The maximum number of results to return at one time.

  • recursive (boolean) – If true, return child groups too.

  • securityProfileTargetArn (string) –

    [REQUIRED]

    The ARN of the target (thing group) whose attached security profiles you want to get.

Return type:

dict

Returns:

Response Syntax

{
    'securityProfileTargetMappings': [
        {
            'securityProfileIdentifier': {
                'name': 'string',
                'arn': 'string'
            },
            'target': {
                'arn': 'string'
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • securityProfileTargetMappings (list) –

      A list of security profiles and their associated targets.

      • (dict) –

        Information about a security profile and the target associated with it.

        • securityProfileIdentifier (dict) –

          Information that identifies the security profile.

          • name (string) –

            The name you’ve given to the security profile.

          • arn (string) –

            The ARN of the security profile.

        • target (dict) –

          Information about the target (thing group) associated with the security profile.

          • arn (string) –

            The ARN of the security profile.

    • nextToken (string) –

      A token that can be used to retrieve the next set of results, or null if there are no additional results.

Exceptions

  • IoT.Client.exceptions.InvalidRequestException

  • IoT.Client.exceptions.ThrottlingException

  • IoT.Client.exceptions.InternalFailureException

  • IoT.Client.exceptions.ResourceNotFoundException