public sealed class CustomerManagedEncryption : IMessage<CustomerManagedEncryption>, IEquatable<CustomerManagedEncryption>, IDeepCloneable<CustomerManagedEncryption>, IBufferMessage, IMessage
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."],[[["The `CustomerManagedEncryption` class is used for configuring the encryption of secret payloads using customer-managed encryption keys (CMEK)."],["This class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, allowing for versatile object handling."],["There is an array of versioned documentation available, from versions 1.3.0 to 2.5.0, with 2.5.0 being the latest, and it is accessible via the links provided."],["The `KmsKeyName` property, of type string, specifies the resource name of the Cloud KMS CryptoKey used for encryption, and its location requirements differ depending on the secret's replication policy."],["The class offers two constructors: a parameterless one for default initialization and another that accepts an existing `CustomerManagedEncryption` object for copying."]]],[]]