#[non_exhaustive]pub struct ShieldedInstanceConfig {
pub enable_integrity_monitoring: Option<bool>,
pub enable_secure_boot: Option<bool>,
pub enable_vtpm: Option<bool>,
/* private fields */
}Available on crate features
instance-templates or instances or machine-images or region-instance-templates or region-instances only.Expand description
A set of Shielded Instance options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_integrity_monitoring: Option<bool>Defines whether the instance has integrity monitoring enabled.Enabled by default.
enable_secure_boot: Option<bool>Defines whether the instance has Secure Boot enabled.Disabled by default.
enable_vtpm: Option<bool>Defines whether the instance has the vTPM enabled.Enabled by default.
Implementations§
Source§impl ShieldedInstanceConfig
impl ShieldedInstanceConfig
pub fn new() -> Self
Sourcepub fn set_enable_integrity_monitoring<T>(self, v: T) -> Self
pub fn set_enable_integrity_monitoring<T>(self, v: T) -> Self
Sets the value of enable_integrity_monitoring.
§Example
ⓘ
let x = ShieldedInstanceConfig::new().set_enable_integrity_monitoring(true);Sourcepub fn set_or_clear_enable_integrity_monitoring<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable_integrity_monitoring<T>(self, v: Option<T>) -> Self
Sets or clears the value of enable_integrity_monitoring.
§Example
ⓘ
let x = ShieldedInstanceConfig::new().set_or_clear_enable_integrity_monitoring(Some(false));
let x = ShieldedInstanceConfig::new().set_or_clear_enable_integrity_monitoring(None::<bool>);Sourcepub fn set_enable_secure_boot<T>(self, v: T) -> Self
pub fn set_enable_secure_boot<T>(self, v: T) -> Self
Sets the value of enable_secure_boot.
§Example
ⓘ
let x = ShieldedInstanceConfig::new().set_enable_secure_boot(true);Sourcepub fn set_or_clear_enable_secure_boot<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable_secure_boot<T>(self, v: Option<T>) -> Self
Sets or clears the value of enable_secure_boot.
§Example
ⓘ
let x = ShieldedInstanceConfig::new().set_or_clear_enable_secure_boot(Some(false));
let x = ShieldedInstanceConfig::new().set_or_clear_enable_secure_boot(None::<bool>);Sourcepub fn set_enable_vtpm<T>(self, v: T) -> Self
pub fn set_enable_vtpm<T>(self, v: T) -> Self
Sets the value of enable_vtpm.
§Example
ⓘ
let x = ShieldedInstanceConfig::new().set_enable_vtpm(true);Sourcepub fn set_or_clear_enable_vtpm<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable_vtpm<T>(self, v: Option<T>) -> Self
Sets or clears the value of enable_vtpm.
§Example
ⓘ
let x = ShieldedInstanceConfig::new().set_or_clear_enable_vtpm(Some(false));
let x = ShieldedInstanceConfig::new().set_or_clear_enable_vtpm(None::<bool>);Trait Implementations§
Source§impl Clone for ShieldedInstanceConfig
impl Clone for ShieldedInstanceConfig
Source§fn clone(&self) -> ShieldedInstanceConfig
fn clone(&self) -> ShieldedInstanceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShieldedInstanceConfig
impl Debug for ShieldedInstanceConfig
Source§impl Default for ShieldedInstanceConfig
impl Default for ShieldedInstanceConfig
Source§fn default() -> ShieldedInstanceConfig
fn default() -> ShieldedInstanceConfig
Returns the “default value” for a type. Read more
Source§impl Message for ShieldedInstanceConfig
impl Message for ShieldedInstanceConfig
Source§impl PartialEq for ShieldedInstanceConfig
impl PartialEq for ShieldedInstanceConfig
impl StructuralPartialEq for ShieldedInstanceConfig
Auto Trait Implementations§
impl Freeze for ShieldedInstanceConfig
impl RefUnwindSafe for ShieldedInstanceConfig
impl Send for ShieldedInstanceConfig
impl Sync for ShieldedInstanceConfig
impl Unpin for ShieldedInstanceConfig
impl UnwindSafe for ShieldedInstanceConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more