Data Loss Prevention V2 Client - Class KmsWrappedCryptoKey (1.10.2)

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 \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setWrappedKey

Required. The wrapped data crypto key.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCryptoKeyName

Required. The resource name of the KMS CryptoKey to use for unwrapping.

Returns
TypeDescription
string

setCryptoKeyName

Required. The resource name of the KMS CryptoKey to use for unwrapping.

Parameter
NameDescription
var string
Returns
TypeDescription
$this