3.26.0 (latest) 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 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.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0

    public sealed class ExternalProtectionLevelOptions : IMessage<ExternalProtectionLevelOptions>, IEquatable<ExternalProtectionLevelOptions>, IDeepCloneable<ExternalProtectionLevelOptions>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Key Management Service v1 API class ExternalProtectionLevelOptions.

ExternalProtectionLevelOptions stores a group of additional fields for
configuring a \[CryptoKeyVersion\]\[google.cloud.kms.v1.CryptoKeyVersion\] that
are specific to the \[EXTERNAL\]\[google.cloud.kms.v1.ProtectionLevel.EXTERNAL\]
protection level and
\[EXTERNAL_VPC\]\[google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC\] protection
levels.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ExternalProtectionLevelOptions

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ExternalProtectionLevelOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ExternalProtectionLevelOptions), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExternalProtectionLevelOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ExternalProtectionLevelOptions), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ExternalProtectionLevelOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ExternalProtectionLevelOptions), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Kms.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1)

## Assembly

Google.Cloud.Kms.V1.dll

## Constructors

### ExternalProtectionLevelOptions()

    public ExternalProtectionLevelOptions()

### ExternalProtectionLevelOptions(ExternalProtectionLevelOptions)

    public ExternalProtectionLevelOptions(ExternalProtectionLevelOptions other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ExternalProtectionLevelOptions` |

## Properties

### EkmConnectionBackendOverride

    public string EkmConnectionBackendOverride { get; set; }

Optional. The resource name of the backend environment where the key
material of \[CryptoKeyVersions\]\[google.cloud.kms.v1.CryptoKeyVersion\] is
associated with. Setting this field overrides the \[CryptoKeyBackend\]\[\].
This field may be set when
\[CryptoKeyVersions\]\[google.cloud.kms.v1.CryptoKeyVersion\] is set to
\[EXTERNAL_VPC\]\[google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC\]. Format:
`projects/*/locations/*/ekmConnections/*`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### EkmConnectionBackendOverrideAsEkmConnectionName

    public EkmConnectionName EkmConnectionBackendOverrideAsEkmConnectionName { get; set; }

[EkmConnectionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnectionName)-typed view over the [EkmConnectionBackendOverride](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ExternalProtectionLevelOptions#Google_Cloud_Kms_V1_ExternalProtectionLevelOptions_EkmConnectionBackendOverride) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.EkmConnectionName` |   |

### EkmConnectionKeyPath

    public string EkmConnectionKeyPath { get; set; }

Optional. The path to the external key material on the EKM when using
\[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\] e.g., "v0/my/key". Set
this field instead of external_key_uri when using an
\[EkmConnection\]\[google.cloud.kms.v1.EkmConnection\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ExternalKeyUri

    public string ExternalKeyUri { get; set; }

Optional. The URI for an external resource that this
\[CryptoKeyVersion\]\[google.cloud.kms.v1.CryptoKeyVersion\] represents.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |