Modify Instance Metadata Defaults
ec2_modify_instance_metadata_defaults | R Documentation |
Modifies the default instance metadata service (IMDS) settings at the account level in the specified Amazon Web Services Region¶
Description¶
Modifies the default instance metadata service (IMDS) settings at the account level in the specified Amazon Web Services Region.
To remove a parameter's account-level default setting, specify
no-preference
. If an account-level setting is cleared with
no-preference
, then the instance launch considers the other instance
metadata settings. For more information, see Order of precedence for
instance metadata
options
in the Amazon EC2 User Guide.
Usage¶
ec2_modify_instance_metadata_defaults(HttpTokens,
HttpPutResponseHopLimit, HttpEndpoint, InstanceMetadataTags, DryRun)
Arguments¶
HttpTokens |
Indicates whether IMDSv2 is required.
|
HttpPutResponseHopLimit |
The maximum number of hops that the metadata token can travel. To
indicate no preference, specify Possible values: Integers from |
HttpEndpoint |
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed. |
InstanceMetadataTags |
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. |
DryRun |
Checks whether you have the required permissions for the
operation, without actually making the request, and provides an error
response. If you have the required permissions, the error response is
|
Value¶
A list with the following syntax:
list(
Return = TRUE|FALSE
)
Request syntax¶
svc$modify_instance_metadata_defaults(
HttpTokens = "optional"|"required"|"no-preference",
HttpPutResponseHopLimit = 123,
HttpEndpoint = "disabled"|"enabled"|"no-preference",
InstanceMetadataTags = "disabled"|"enabled"|"no-preference",
DryRun = TRUE|FALSE
)