# Storage Transfer Service V1 API - Module Google::Cloud::StorageTransfer::V1::MetadataOptions::KmsKey (v1.11.0)

1.11.0 (latest) 1.10.0 1.9.0 1.8.1 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Storage Transfer Service V1 API module Google::Cloud::StorageTransfer::V1::MetadataOptions::KmsKey.

Options for handling the KmsKey setting for Google Cloud Storage objects.

## Constants

### KMS_KEY_UNSPECIFIED

**value:** 0  
KmsKey behavior is unspecified.

### KMS_KEY_DESTINATION_BUCKET_DEFAULT

**value:** 1  
Use the destination bucket's default encryption settings.

### KMS_KEY_PRESERVE

**value:** 2  
Preserve the object's original Cloud KMS customer-managed encryption key
(CMEK) if present. Objects that do not use a Cloud KMS encryption key
will be encrypted using the destination bucket's encryption settings.