#[non_exhaustive]pub struct InstanceMetadataDefaultsResponse {
pub http_tokens: Option<HttpTokensState>,
pub http_put_response_hop_limit: Option<i32>,
pub http_endpoint: Option<InstanceMetadataEndpointState>,
pub instance_metadata_tags: Option<InstanceMetadataTagsState>,
}
Expand description
The default instance metadata service (IMDS) settings that were set at the account level in the specified Amazon Web Services Region.
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.http_tokens: Option<HttpTokensState>
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_put_response_hop_limit: Option<i32>
The maximum number of hops that the metadata token can travel.
http_endpoint: Option<InstanceMetadataEndpointState>
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
Implementations§
source§impl InstanceMetadataDefaultsResponse
impl InstanceMetadataDefaultsResponse
sourcepub fn http_tokens(&self) -> Option<&HttpTokensState>
pub fn http_tokens(&self) -> Option<&HttpTokensState>
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.
sourcepub fn http_put_response_hop_limit(&self) -> Option<i32>
pub fn http_put_response_hop_limit(&self) -> Option<i32>
The maximum number of hops that the metadata token can travel.
sourcepub fn http_endpoint(&self) -> Option<&InstanceMetadataEndpointState>
pub fn http_endpoint(&self) -> Option<&InstanceMetadataEndpointState>
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
source§impl InstanceMetadataDefaultsResponse
impl InstanceMetadataDefaultsResponse
sourcepub fn builder() -> InstanceMetadataDefaultsResponseBuilder
pub fn builder() -> InstanceMetadataDefaultsResponseBuilder
Creates a new builder-style object to manufacture InstanceMetadataDefaultsResponse
.
Trait Implementations§
source§impl Clone for InstanceMetadataDefaultsResponse
impl Clone for InstanceMetadataDefaultsResponse
source§fn clone(&self) -> InstanceMetadataDefaultsResponse
fn clone(&self) -> InstanceMetadataDefaultsResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for InstanceMetadataDefaultsResponse
impl PartialEq for InstanceMetadataDefaultsResponse
source§fn eq(&self, other: &InstanceMetadataDefaultsResponse) -> bool
fn eq(&self, other: &InstanceMetadataDefaultsResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceMetadataDefaultsResponse
Auto Trait Implementations§
impl Freeze for InstanceMetadataDefaultsResponse
impl RefUnwindSafe for InstanceMetadataDefaultsResponse
impl Send for InstanceMetadataDefaultsResponse
impl Sync for InstanceMetadataDefaultsResponse
impl Unpin for InstanceMetadataDefaultsResponse
impl UnwindSafe for InstanceMetadataDefaultsResponse
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more