#[non_exhaustive]pub struct ControlPlaneEncryption {
pub kms_key: String,
pub kms_key_active_version: String,
pub kms_key_state: KmsKeyState,
pub kms_status: Option<Status>,
pub resource_state: ResourceState,
/* private fields */
}Expand description
Configuration for Customer-managed KMS key support for control plane nodes.
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: StringOptional. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting control plane disks. If not specified, a Google-managed key will be used instead.
kms_key_active_version: StringOutput only. The Cloud KMS CryptoKeyVersion currently in use for protecting control plane disks. Only applicable if kms_key is set.
kms_key_state: KmsKeyStateOutput only. Availability of the Cloud KMS CryptoKey. If not
KEY_AVAILABLE, then nodes may go offline as they cannot access their
local data. This can be caused by a lack of permissions to use the key,
or if the key is disabled or deleted.
kms_status: Option<Status>Output only. Error status returned by Cloud KMS when using this key. This
field may be populated only if kms_key_state is not
KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the
error status reported by Cloud KMS.
resource_state: ResourceStateOutput only. The current resource state associated with the cmek.
Implementations§
Source§impl ControlPlaneEncryption
impl ControlPlaneEncryption
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
Sets the value of kms_key.
Sourcepub fn set_kms_key_active_version<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_active_version<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_active_version.
Sourcepub fn set_kms_key_state<T: Into<KmsKeyState>>(self, v: T) -> Self
pub fn set_kms_key_state<T: Into<KmsKeyState>>(self, v: T) -> Self
Sets the value of kms_key_state.
Sourcepub fn set_kms_status<T>(self, v: T) -> Self
pub fn set_kms_status<T>(self, v: T) -> Self
Sets the value of kms_status.
Sourcepub fn set_or_clear_kms_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kms_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of kms_status.
Sourcepub fn set_resource_state<T: Into<ResourceState>>(self, v: T) -> Self
pub fn set_resource_state<T: Into<ResourceState>>(self, v: T) -> Self
Sets the value of resource_state.
Trait Implementations§
Source§impl Clone for ControlPlaneEncryption
impl Clone for ControlPlaneEncryption
Source§fn clone(&self) -> ControlPlaneEncryption
fn clone(&self) -> ControlPlaneEncryption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more