public sealed class KmsWrappedCryptoKey : IMessage<KmsWrappedCryptoKey>, IEquatable<KmsWrappedCryptoKey>, IDeepCloneable<KmsWrappedCryptoKey>, IBufferMessage, IMessage
Include to use an existing data crypto key wrapped by KMS.
The wrapped key must be a 128-, 192-, or 256-bit key.
Authorization requires the following IAM permissions when sending a request
to perform a crypto transformation using a KMS-wrapped crypto key:
dlp.kms.encrypt
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eKmsWrappedCryptoKey\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace, which is used to employ an existing data crypto key that has been wrapped by Key Management Service (KMS).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKmsWrappedCryptoKey\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are numerous versions of \u003ccode\u003eKmsWrappedCryptoKey\u003c/code\u003e listed, ranging from version 2.15.0 to the latest version 4.16.0, each with its own documentation link.\u003c/p\u003e\n"],["\u003cp\u003eUsing a KMS-wrapped crypto key requires specific IAM permissions (\u003ccode\u003edlp.kms.encrypt\u003c/code\u003e), and interacting with Cloud KMS will incur associated charges.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two key properties: \u003ccode\u003eCryptoKeyName\u003c/code\u003e, which is the required KMS CryptoKey resource name, and \u003ccode\u003eWrappedKey\u003c/code\u003e, which holds the required wrapped data crypto key, which must be either 128-, 192-, or 256-bit.\u003c/p\u003e\n"]]],[],null,[]]