---
title: "PUT /security-profiles/{securityProfileName}/targets#securityProfileTargetArn"
method: PUT
path: "/security-profiles/{securityProfileName}/targets#securityProfileTargetArn"
---

# PUT /security-profiles/{securityProfileName}/targets#securityProfileTargetArn

`PUT /security-profiles/{securityProfileName}/targets#securityProfileTargetArn`

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](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Path parameters

- `securityProfileName` string, required

## Query parameters

- `securityProfileTargetArn` string, required

## Response `200`

Success

- AttachSecurityProfileResponse

## Other responses

- `480` — InvalidRequestException
- `481` — ResourceNotFoundException
- `482` — LimitExceededException
- `483` — VersionConflictException
- `484` — ThrottlingException
- `485` — InternalFailureException

---

[API](https://skmtc.net/aws/apis/iot.md) · [All operations](https://skmtc.net/aws/apis/iot/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iot/versions/deef5c4b09f0/schema)
