Reference documentation and code samples for the Data Loss Prevention V2 Client class KmsWrappedCryptoKey.
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
For more information, seeCreating a wrapped key.
Note: When you use Cloud KMS for cryptographic operations,charges apply.
Generated from protobuf messagegoogle.privacy.dlp.v2.KmsWrappedCryptoKey
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ wrapped_key
string
Required. The wrapped data crypto key.
↳ crypto_key_name
string
Required. The resource name of the KMS CryptoKey to use for unwrapping.
getWrappedKey
Required. The wrapped data crypto key.
Returns
Type
Description
string
setWrappedKey
Required. The wrapped data crypto key.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCryptoKeyName
Required. The resource name of the KMS CryptoKey to use for unwrapping.
Returns
Type
Description
string
setCryptoKeyName
Required. The resource name of the KMS CryptoKey to use for unwrapping.
[[["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-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class KmsWrappedCryptoKey (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.KmsWrappedCryptoKey)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.KmsWrappedCryptoKey)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.KmsWrappedCryptoKey)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.KmsWrappedCryptoKey)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.KmsWrappedCryptoKey)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.KmsWrappedCryptoKey)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.KmsWrappedCryptoKey)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.KmsWrappedCryptoKey)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.KmsWrappedCryptoKey)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.KmsWrappedCryptoKey)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.KmsWrappedCryptoKey)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.KmsWrappedCryptoKey)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.KmsWrappedCryptoKey)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.KmsWrappedCryptoKey)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.KmsWrappedCryptoKey)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.KmsWrappedCryptoKey)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.KmsWrappedCryptoKey)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.KmsWrappedCryptoKey)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.KmsWrappedCryptoKey) \nReference documentation and code samples for the Data Loss Prevention V2 Client class KmsWrappedCryptoKey.\n\nInclude to use an existing data crypto key wrapped by KMS.\n\nThe wrapped key must be a 128-, 192-, or 256-bit key.\nAuthorization requires the following IAM permissions when sending a request\nto perform a crypto transformation using a KMS-wrapped crypto key:\ndlp.kms.encrypt\nFor more information, see [Creating a wrapped key](https://cloud.google.com/sensitive-data-protection/docs/create-wrapped-key).\nNote: When you use Cloud KMS for cryptographic operations,\n[charges apply](https://cloud.google.com/kms/pricing).\n\nGenerated from protobuf message `google.privacy.dlp.v2.KmsWrappedCryptoKey`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getWrappedKey\n\nRequired. The wrapped data crypto key.\n\n### setWrappedKey\n\nRequired. The wrapped data crypto key.\n\n### getCryptoKeyName\n\nRequired. The resource name of the KMS CryptoKey to use for unwrapping.\n\n### setCryptoKeyName\n\nRequired. The resource name of the KMS CryptoKey to use for unwrapping."]]