#[non_exhaustive]pub struct ShieldedInstanceConfig {
pub enable_secure_boot: bool,
pub enable_vtpm: bool,
pub enable_integrity_monitoring: bool,
/* private fields */
}Expand description
A set of Shielded Instance options. See Images using supported Shielded VM features. Not all combinations are valid.
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.enable_secure_boot: boolOptional. Defines whether the VM instance has Secure Boot enabled.
Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. Disabled by default.
enable_vtpm: boolOptional. Defines whether the VM instance has the vTPM enabled. Enabled by default.
enable_integrity_monitoring: boolOptional. Defines whether the VM instance has integrity monitoring enabled.
Enables monitoring and attestation of the boot integrity of the VM instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the VM instance is created. Enabled by default.
Implementations§
Source§impl ShieldedInstanceConfig
impl ShieldedInstanceConfig
pub fn new() -> Self
Sourcepub fn set_enable_secure_boot<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_secure_boot<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_secure_boot.
Sourcepub fn set_enable_vtpm<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_vtpm<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_vtpm.
Sourcepub fn set_enable_integrity_monitoring<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_integrity_monitoring<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_integrity_monitoring.
Trait Implementations§
Source§impl Clone for ShieldedInstanceConfig
impl Clone for ShieldedInstanceConfig
Source§fn clone(&self) -> ShieldedInstanceConfig
fn clone(&self) -> ShieldedInstanceConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more