---
title: "POST /#X-Amz-Target=IoTAutobahnControlPlane.PutEncryptionConfiguration"
method: POST
path: "/#X-Amz-Target=IoTAutobahnControlPlane.PutEncryptionConfiguration"
---

# POST /#X-Amz-Target=IoTAutobahnControlPlane.PutEncryptionConfiguration

`POST /#X-Amz-Target=IoTAutobahnControlPlane.PutEncryptionConfiguration`

Creates or updates the encryption configuration. Amazon Web Services IoT FleetWise can encrypt your data and resources using an Amazon Web Services managed key. Or, you can use a KMS key that you own and manage. For more information, see <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/data-encryption.html">Data encryption</a> in the <i>Amazon Web Services IoT FleetWise Developer Guide</i>.

## Headers

- `X-Amz-Target` 'IoTAutobahnControlPlane.PutEncryptionConfiguration', required

## Request body

- PutEncryptionConfigurationRequest
  - `kmsKeyId` string — The ID of the KMS key that is used for encryption.
  - `encryptionType` 'KMS_BASED_ENCRYPTION' | 'FLEETWISE_DEFAULT_ENCRYPTION', required — The type of encryption. Choose <code>KMS_BASED_ENCRYPTION</code> to use a KMS key or <code>FLEETWISE_DEFAULT_ENCRYPTION</code> to use an Amazon Web Services managed key.

## Response `200`

Success

- PutEncryptionConfigurationResponse
  - `kmsKeyId` string — The ID of the KMS key that is used for encryption.
  - `encryptionStatus` 'PENDING' | 'SUCCESS' | 'FAILURE', required — The encryption status.
  - `encryptionType` 'KMS_BASED_ENCRYPTION' | 'FLEETWISE_DEFAULT_ENCRYPTION', required — The type of encryption. Set to <code>KMS_BASED_ENCRYPTION</code> to use an KMS key that you own and manage. Set to <code>FLEETWISE_DEFAULT_ENCRYPTION</code> to use an Amazon Web Services managed key that is owned by the Amazon Web Services IoT FleetWise service account.

## Other responses

- `480` — ResourceNotFoundException
- `481` — InternalServerException
- `482` — ConflictException
- `483` — ThrottlingException
- `484` — ValidationException
- `485` — AccessDeniedException

---

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