Struct aws_sdk_ec2::operation::modify_instance_metadata_defaults::ModifyInstanceMetadataDefaultsInput
source · #[non_exhaustive]pub struct ModifyInstanceMetadataDefaultsInput {
pub http_tokens: Option<MetadataDefaultHttpTokensState>,
pub http_put_response_hop_limit: Option<i32>,
pub http_endpoint: Option<DefaultInstanceMetadataEndpointState>,
pub instance_metadata_tags: Option<DefaultInstanceMetadataTagsState>,
pub dry_run: Option<bool>,
}
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<MetadataDefaultHttpTokensState>
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. To indicate no preference, specify -1
.
Possible values: Integers from 1
to 64
, and -1
to indicate no preference
http_endpoint: Option<DefaultInstanceMetadataEndpointState>
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
dry_run: Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Implementations§
source§impl ModifyInstanceMetadataDefaultsInput
impl ModifyInstanceMetadataDefaultsInput
sourcepub fn http_tokens(&self) -> Option<&MetadataDefaultHttpTokensState>
pub fn http_tokens(&self) -> Option<&MetadataDefaultHttpTokensState>
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. To indicate no preference, specify -1
.
Possible values: Integers from 1
to 64
, and -1
to indicate no preference
sourcepub fn http_endpoint(&self) -> Option<&DefaultInstanceMetadataEndpointState>
pub fn http_endpoint(&self) -> Option<&DefaultInstanceMetadataEndpointState>
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
source§impl ModifyInstanceMetadataDefaultsInput
impl ModifyInstanceMetadataDefaultsInput
sourcepub fn builder() -> ModifyInstanceMetadataDefaultsInputBuilder
pub fn builder() -> ModifyInstanceMetadataDefaultsInputBuilder
Creates a new builder-style object to manufacture ModifyInstanceMetadataDefaultsInput
.
Trait Implementations§
source§impl Clone for ModifyInstanceMetadataDefaultsInput
impl Clone for ModifyInstanceMetadataDefaultsInput
source§fn clone(&self) -> ModifyInstanceMetadataDefaultsInput
fn clone(&self) -> ModifyInstanceMetadataDefaultsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ModifyInstanceMetadataDefaultsInput
impl PartialEq for ModifyInstanceMetadataDefaultsInput
source§fn eq(&self, other: &ModifyInstanceMetadataDefaultsInput) -> bool
fn eq(&self, other: &ModifyInstanceMetadataDefaultsInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ModifyInstanceMetadataDefaultsInput
Auto Trait Implementations§
impl Freeze for ModifyInstanceMetadataDefaultsInput
impl RefUnwindSafe for ModifyInstanceMetadataDefaultsInput
impl Send for ModifyInstanceMetadataDefaultsInput
impl Sync for ModifyInstanceMetadataDefaultsInput
impl Unpin for ModifyInstanceMetadataDefaultsInput
impl UnwindSafe for ModifyInstanceMetadataDefaultsInput
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