Reference documentation and code samples for the Google Cloud Dms V1 Client class EncryptionConfig.
EncryptionConfig describes the encryption config of a cluster that is
encrypted with a CMEK (customer-managed encryption key).
Generated from protobuf message google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig
Namespace
Google \ Cloud \ CloudDms \ V1 \ AlloyDbSettings
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ kms_key_name
string
The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
getKmsKeyName
The fully-qualified resource name of the KMS key.
Each Cloud KMS key is regionalized and has the following format:
projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
Returns
Type
Description
string
setKmsKeyName
The fully-qualified resource name of the KMS key.
Each Cloud KMS key is regionalized and has the following format:
projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
[[["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-09 UTC."],[],[],null,["# Google Cloud Dms V1 Client - Class EncryptionConfig (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-dms/latest/V1.AlloyDbSettings.EncryptionConfig)\n- [2.0.5](/php/docs/reference/cloud-dms/2.0.5/V1.AlloyDbSettings.EncryptionConfig)\n- [1.5.5](/php/docs/reference/cloud-dms/1.5.5/V1.AlloyDbSettings.EncryptionConfig)\n- [1.4.2](/php/docs/reference/cloud-dms/1.4.2/V1.AlloyDbSettings.EncryptionConfig)\n- [1.3.0](/php/docs/reference/cloud-dms/1.3.0/V1.AlloyDbSettings.EncryptionConfig)\n- [1.2.1](/php/docs/reference/cloud-dms/1.2.1/V1.AlloyDbSettings.EncryptionConfig)\n- [1.1.0](/php/docs/reference/cloud-dms/1.1.0/V1.AlloyDbSettings.EncryptionConfig)\n- [1.0.5](/php/docs/reference/cloud-dms/1.0.5/V1.AlloyDbSettings.EncryptionConfig) \nReference documentation and code samples for the Google Cloud Dms V1 Client class EncryptionConfig.\n\nEncryptionConfig describes the encryption config of a cluster that is\nencrypted with a CMEK (customer-managed encryption key).\n\nGenerated from protobuf message `google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ CloudDms \\\\ V1 \\\\ AlloyDbSettings\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKmsKeyName\n\nThe fully-qualified resource name of the KMS key.\n\nEach Cloud KMS key is regionalized and has the following format:\nprojects/\\[PROJECT\\]/locations/\\[REGION\\]/keyRings/\\[RING\\]/cryptoKeys/\\[KEY_NAME\\]\n\n### setKmsKeyName\n\nThe fully-qualified resource name of the KMS key.\n\nEach Cloud KMS key is regionalized and has the following format:\nprojects/\\[PROJECT\\]/locations/\\[REGION\\]/keyRings/\\[RING\\]/cryptoKeys/\\[KEY_NAME\\]"]]