# Class EkmConnection (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

    EkmConnection(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An EkmConnection represents an
individual EKM connection. It can be used for creating
CryptoKeys and
CryptoKeyVersions with a
ProtectionLevel of
EXTERNAL_VPC, as
well as performing cryptographic operations using keys created
within the EkmConnection.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. The resource name for the EkmConnection in the format `projects/*/locations/*/ekmConnections/*`. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time at which the EkmConnection was created. |
| `service_resolvers` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/cloudkms/latest/google.cloud.kms_v1.types.EkmConnection.ServiceResolver]` Optional. A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported. |
| `etag` | `str` Optional. Etag of the currently stored EkmConnection. |
| `key_management_mode` | `https://docs.cloud.google.com/python/docs/reference/cloudkms/latest/google.cloud.kms_v1.types.EkmConnection.KeyManagementMode` Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL. |
| `crypto_space_path` | `str` Optional. Identifies the EKM Crypto Space that this EkmConnection maps to. Note: This field is required if KeyManagementMode is CLOUD_KMS. |

## Classes

### KeyManagementMode

    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.

### ServiceResolver

    ServiceResolver(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A
ServiceResolver
represents an EKM replica that can be reached within an
EkmConnection.