pub struct InstanceOptions {
pub are_legacy_imds_endpoints_disabled: Option<bool>,
}Expand description
Optional mutable instance options
Fields§
§are_legacy_imds_endpoints_disabled: Option<bool>Whether to disable the legacy (/v1) instance metadata service endpoints. Customers who have migrated to /v2 should set this to true for added security. Default is false.
Implementations§
Source§impl InstanceOptions
impl InstanceOptions
Sourcepub fn set_are_legacy_imds_endpoints_disabled(self, value: Option<bool>) -> Self
pub fn set_are_legacy_imds_endpoints_disabled(self, value: Option<bool>) -> Self
Set are_legacy_imds_endpoints_disabled
Sourcepub fn with_are_legacy_imds_endpoints_disabled(self, value: bool) -> Self
pub fn with_are_legacy_imds_endpoints_disabled(self, value: bool) -> Self
Set are_legacy_imds_endpoints_disabled (unwraps Option)
Trait Implementations§
Source§impl Clone for InstanceOptions
impl Clone for InstanceOptions
Source§fn clone(&self) -> InstanceOptions
fn clone(&self) -> InstanceOptions
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 InstanceOptions
impl Debug for InstanceOptions
Source§impl Default for InstanceOptions
impl Default for InstanceOptions
Source§impl<'de> Deserialize<'de> for InstanceOptions
impl<'de> Deserialize<'de> for InstanceOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InstanceOptions
impl RefUnwindSafe for InstanceOptions
impl Send for InstanceOptions
impl Sync for InstanceOptions
impl Unpin for InstanceOptions
impl UnsafeUnpin for InstanceOptions
impl UnwindSafe for InstanceOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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