# KmsKey

> Resource KmsKey in pulumi-infisical.

<!-- Generated from the pulumi-infisical SDK. -->

Resource KmsKey in pulumi-infisical.

Pulumi type: `infisical:index/kmsKey:KmsKey`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as infisical from "pulumi-infisical"

const resource = new infisical.KmsKey("kmsKey", {
  projectId: "<projectId>",
})
```

## Arguments

| Property              | Type      | Required | Description                                                                                                                  |
| --------------------- | --------- | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `description`         | `string`  | no       | The description of the KMS key. Maximum 500 characters.                                                                      |
| `encryptionAlgorithm` | `string`  | no       | The encryption algorithm for the key. Options: aes-256-gcm, aes-128-gcm, RSA_4096, ECC_NIST_P256. Defaults to 'aes-256-gcm'. |
| `isDisabled`          | `boolean` | no       | Whether the key is disabled. Defaults to false.                                                                              |
| `isExportable`        | `boolean` | no       | Whether the raw key material can be exported. Defaults to true. Changing this value requires replacing the key.              |
| `keyUsage`            | `string`  | no       | The usage of the key. Options: encrypt-decrypt, sign-verify. Defaults to 'encrypt-decrypt'.                                  |
| `name`                | `string`  | no       | The name of the KMS key. Must be 1-32 characters.                                                                            |
| `projectId`           | `string`  | yes      | The ID of the project where the KMS key will be created.                                                                     |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property              | Type      | Computed | Description                                                                                                                  |
| --------------------- | --------- | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `createdAt`           | `string`  | yes      | The creation timestamp of the key.                                                                                           |
| `description`         | `string`  | no       | The description of the KMS key. Maximum 500 characters.                                                                      |
| `encryptionAlgorithm` | `string`  | no       | The encryption algorithm for the key. Options: aes-256-gcm, aes-128-gcm, RSA_4096, ECC_NIST_P256. Defaults to 'aes-256-gcm'. |
| `isDisabled`          | `boolean` | no       | Whether the key is disabled. Defaults to false.                                                                              |
| `isExportable`        | `boolean` | no       | Whether the raw key material can be exported. Defaults to true. Changing this value requires replacing the key.              |
| `keyUsage`            | `string`  | no       | The usage of the key. Options: encrypt-decrypt, sign-verify. Defaults to 'encrypt-decrypt'.                                  |
| `name`                | `string`  | no       | The name of the KMS key. Must be 1-32 characters.                                                                            |
| `orgId`               | `string`  | yes      | The ID of the organization.                                                                                                  |
| `projectId`           | `string`  | no       | The ID of the project where the KMS key will be created.                                                                     |
| `updatedAt`           | `string`  | yes      | The last update timestamp of the key.                                                                                        |
| `version`             | `number`  | yes      | The version of the key.                                                                                                      |
