pub struct InstanceMetadataOptionsResponse {
pub http_tokens: Option<String>,
pub http_endpoint: Option<String>,
}Expand description
The metadata options for the instance.
AWS API: ec2.v1.InstanceMetadataOptionsResponse
Reference: https://docs.aws.amazon.com/AWSEC2/latest/APIReference//InstanceMetadataOptionsResponse
§Coverage
2 of 6 fields included. Omitted fields:
State— not selected in manifestHttpPutResponseHopLimit— not selected in manifestHttpProtocolIpv6— not selected in manifestInstanceMetadataTags— not selected in manifest
Fields§
§http_tokens: Option<String>Indicates whether IMDSv2 is required. optional
- IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1. required
- IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
http_endpoint: Option<String>Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled. If the value is disabled, you cannot access your instance metadata.
Trait Implementations§
Source§impl Clone for InstanceMetadataOptionsResponse
impl Clone for InstanceMetadataOptionsResponse
Source§fn clone(&self) -> InstanceMetadataOptionsResponse
fn clone(&self) -> InstanceMetadataOptionsResponse
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 Default for InstanceMetadataOptionsResponse
impl Default for InstanceMetadataOptionsResponse
Source§fn default() -> InstanceMetadataOptionsResponse
fn default() -> InstanceMetadataOptionsResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceMetadataOptionsResponse
impl<'de> Deserialize<'de> for InstanceMetadataOptionsResponse
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 InstanceMetadataOptionsResponse
impl RefUnwindSafe for InstanceMetadataOptionsResponse
impl Send for InstanceMetadataOptionsResponse
impl Sync for InstanceMetadataOptionsResponse
impl Unpin for InstanceMetadataOptionsResponse
impl UnsafeUnpin for InstanceMetadataOptionsResponse
impl UnwindSafe for InstanceMetadataOptionsResponse
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