# Class KeyManagementMode (3.14.0)

3.14.0 (latest) 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.1 3.4.0 3.3.1 3.2.2 3.1.1 3.0.0 2.24.2 2.23.0 2.22.0 2.21.4 2.20.0 2.19.2 2.18.0 2.17.0 2.16.1 2.15.0 2.14.1 2.13.0 2.12.3 2.11.2 2.10.1 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.3 2.3.0 2.2.0 2.1.0 2.0.1 1.4.2 1.3.0 1.2.1 1.1.0

    KeyManagementMode(value)

KeyManagementMode
describes who can perform control plane cryptographic operations
using this EkmConnection.

        - When creating a
          <xref uid="google.cloud.kms.v1.CryptoKeyVersion">CryptoKeyVersion</xref>
          associated with this
          <xref uid="google.cloud.kms.v1.EkmConnection">EkmConnection</xref>, the
          caller must supply the key path of pre-existing external
          key material that will be linked to the
          <xref uid="google.cloud.kms.v1.CryptoKeyVersion">CryptoKeyVersion</xref>.
        - Destruction of external key material cannot be requested
          via the Cloud KMS API and must be performed directly in
          the EKM.
        - Automatic rotation of key material is not supported.
    CLOUD_KMS (2):
        All <xref uid="google.cloud.kms.v1.CryptoKey">CryptoKeys</xref> created with
        this <xref uid="google.cloud.kms.v1.EkmConnection">EkmConnection</xref> use
        EKM-side key management operations initiated from Cloud KMS.
        This means that:

        - When a
          <xref uid="google.cloud.kms.v1.CryptoKeyVersion">CryptoKeyVersion</xref>
          associated with this
          <xref uid="google.cloud.kms.v1.EkmConnection">EkmConnection</xref> is
          created, the EKM automatically generates new key material
          and a new key path. The caller cannot supply the key path
          of pre-existing external key material.
        - Destruction of external key material associated with this
          <xref uid="google.cloud.kms.v1.EkmConnection">EkmConnection</xref> can be
          requested by calling
          <xref uid="google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion">DestroyCryptoKeyVersion</xref>.
        - Automatic rotation of key material is supported.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `KEY_MANAGEMENT_MODE_UNSPECIFIED` | Not specified. |
| `MANUAL` | EKM-side key management operations on CryptoKeys created with this EkmConnection must be initiated from the EKM directly and cannot be performed from Cloud KMS. This means that: |