---
title: "PUT /instance/{InstanceId}/security-key"
method: PUT
path: "/instance/{InstanceId}/security-key"
---

# PUT /instance/{InstanceId}/security-key

`PUT /instance/{InstanceId}/security-key`

This API is in preview release for Amazon Connect and is subject to change.

Associates a security key to the instance.

## Path parameters

- `InstanceId` string, required

## Request body

- object
  - `Key` string, required — A valid security key in PEM format.

## Response `200`

Success

- AssociateSecurityKeyResponse
  - `AssociationId` string — The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ResourceConflictException
- `482` — InternalServiceException
- `483` — InvalidRequestException
- `484` — InvalidParameterException
- `485` — ServiceQuotaExceededException
- `486` — ThrottlingException

---

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