#[non_exhaustive]pub struct CustomerEncryptionKey {
pub kms_key: String,
pub kms_key_service_account: String,
/* private fields */
}Expand description
A customer-managed encryption key (CMEK) for the Compute Engine resources of the associated workstation configuration. Specify the name of your Cloud KMS encryption key and the default service account. We recommend that you use a separate service account and follow Cloud KMS best practices.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kms_key: StringImmutable. The name of the Google Cloud KMS encryption key. For example,
"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME".
The key must be in the same region as the workstation configuration.
kms_key_service_account: StringImmutable. The service account to use with the specified
KMS key. We recommend that you use a separate service account
and follow KMS best practices. For more information, see
Separation of
duties and
gcloud kms keys add-iam-policy-binding
--member.
Implementations§
Source§impl CustomerEncryptionKey
impl CustomerEncryptionKey
pub fn new() -> Self
Sourcepub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_kms_key_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_service_account.
§Example
let x = CustomerEncryptionKey::new().set_kms_key_service_account("example");Trait Implementations§
Source§impl Clone for CustomerEncryptionKey
impl Clone for CustomerEncryptionKey
Source§fn clone(&self) -> CustomerEncryptionKey
fn clone(&self) -> CustomerEncryptionKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more