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, see Creating a wrapped key. Note: When you use Cloud KMS for cryptographic operations, charges apply.
Generated from protobuf message google.privacy.dlp.v2.KmsWrappedCryptoKey
Namespace
Google \ Cloud \ Dlp \ V2Methods
__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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |