#[non_exhaustive]pub struct InstanceMetadataDefaultsResponseBuilder { /* private fields */ }
Expand description
A builder for InstanceMetadataDefaultsResponse
.
Implementations§
source§impl InstanceMetadataDefaultsResponseBuilder
impl InstanceMetadataDefaultsResponseBuilder
sourcepub fn http_tokens(self, input: HttpTokensState) -> Self
pub fn http_tokens(self, input: HttpTokensState) -> Self
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 set_http_tokens(self, input: Option<HttpTokensState>) -> Self
pub fn set_http_tokens(self, input: Option<HttpTokensState>) -> Self
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 get_http_tokens(&self) -> &Option<HttpTokensState>
pub fn get_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, input: i32) -> Self
pub fn http_put_response_hop_limit(self, input: i32) -> Self
The maximum number of hops that the metadata token can travel.
sourcepub fn set_http_put_response_hop_limit(self, input: Option<i32>) -> Self
pub fn set_http_put_response_hop_limit(self, input: Option<i32>) -> Self
The maximum number of hops that the metadata token can travel.
sourcepub fn get_http_put_response_hop_limit(&self) -> &Option<i32>
pub fn get_http_put_response_hop_limit(&self) -> &Option<i32>
The maximum number of hops that the metadata token can travel.
sourcepub fn http_endpoint(self, input: InstanceMetadataEndpointState) -> Self
pub fn http_endpoint(self, input: InstanceMetadataEndpointState) -> Self
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
sourcepub fn set_http_endpoint(
self,
input: Option<InstanceMetadataEndpointState>
) -> Self
pub fn set_http_endpoint( self, input: Option<InstanceMetadataEndpointState> ) -> Self
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
sourcepub fn get_http_endpoint(&self) -> &Option<InstanceMetadataEndpointState>
pub fn get_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.
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.
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.
sourcepub fn build(self) -> InstanceMetadataDefaultsResponse
pub fn build(self) -> InstanceMetadataDefaultsResponse
Consumes the builder and constructs a InstanceMetadataDefaultsResponse
.
Trait Implementations§
source§impl Clone for InstanceMetadataDefaultsResponseBuilder
impl Clone for InstanceMetadataDefaultsResponseBuilder
source§fn clone(&self) -> InstanceMetadataDefaultsResponseBuilder
fn clone(&self) -> InstanceMetadataDefaultsResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InstanceMetadataDefaultsResponseBuilder
impl Default for InstanceMetadataDefaultsResponseBuilder
source§fn default() -> InstanceMetadataDefaultsResponseBuilder
fn default() -> InstanceMetadataDefaultsResponseBuilder
source§impl PartialEq for InstanceMetadataDefaultsResponseBuilder
impl PartialEq for InstanceMetadataDefaultsResponseBuilder
source§fn eq(&self, other: &InstanceMetadataDefaultsResponseBuilder) -> bool
fn eq(&self, other: &InstanceMetadataDefaultsResponseBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceMetadataDefaultsResponseBuilder
Auto Trait Implementations§
impl Freeze for InstanceMetadataDefaultsResponseBuilder
impl RefUnwindSafe for InstanceMetadataDefaultsResponseBuilder
impl Send for InstanceMetadataDefaultsResponseBuilder
impl Sync for InstanceMetadataDefaultsResponseBuilder
impl Unpin for InstanceMetadataDefaultsResponseBuilder
impl UnwindSafe for InstanceMetadataDefaultsResponseBuilder
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