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.
Minimum: 1
Maximum: 64
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.
Minimum: 1
Maximum: 64
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 ==.