public sealed class CustomerManagedEncryption : IMessage<CustomerManagedEncryption>, IEquatable<CustomerManagedEncryption>, IDeepCloneable<CustomerManagedEncryption>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1 API class CustomerManagedEncryption.
Configuration for encrypting secret payloads using customer-managed
encryption keys (CMEK).
Required. The resource name of the Cloud KMS CryptoKey used to encrypt
secret payloads.
For secrets using the
[UserManaged][google.cloud.secretmanager.v1.Replication.UserManaged]
replication policy type, Cloud KMS CryptoKeys must reside in the same
location as the [replica location][Secret.UserManaged.Replica.location].
For secrets using the
[Automatic][google.cloud.secretmanager.v1.Replication.Automatic]
replication policy type, Cloud KMS CryptoKeys must reside in global.
The expected format is projects/*/locations/*/keyRings/*/cryptoKeys/*.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `CustomerManagedEncryption` class within the Google Cloud Secret Manager v1 API, specifically for .NET."],["The latest version of the `CustomerManagedEncryption` class is 2.5.0, and the page also lists 12 other previous versions, ranging from 1.3.0 to 2.4.0."],["`CustomerManagedEncryption` is used to configure encryption of secret payloads with customer-managed encryption keys (CMEK), and it inherits from `object` and implements several interfaces like `IMessage`, `IEquatable`, and `IDeepCloneable`."],["The class has a `KmsKeyName` property, which requires a resource name of a Cloud KMS CryptoKey and must be in the same location as the secret or in 'global' depending on the replication policy."],["The page provides the namespace `Google.Cloud.SecretManager.V1`, the assembly `Google.Cloud.SecretManager.V1.dll` and the constructors and parameters to use."]]],[]]