Class: Aws::EC2::Types::ModifyInstanceMetadataDefaultsRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ModifyInstanceMetadataDefaultsRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response.
-
#http_endpoint ⇒ String
Enables or disables the IMDS endpoint on an instance.
-
#http_put_response_hop_limit ⇒ Integer
The maximum number of hops that the metadata token can travel.
-
#http_tokens ⇒ String
Indicates whether IMDSv2 is required.
-
#instance_metadata_tags ⇒ String
Enables or disables access to an instance’s tags from the instance metadata.
Instance Attribute Details
#dry_run ⇒ Boolean
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 ‘DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
51534 51535 51536 51537 51538 51539 51540 51541 51542 |
# File 'lib/aws-sdk-ec2/types.rb', line 51534 class ModifyInstanceMetadataDefaultsRequest < Struct.new( :http_tokens, :http_put_response_hop_limit, :http_endpoint, :instance_metadata_tags, :dry_run) SENSITIVE = [] include Aws::Structure end |
#http_endpoint ⇒ String
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can’t be accessed.
51534 51535 51536 51537 51538 51539 51540 51541 51542 |
# File 'lib/aws-sdk-ec2/types.rb', line 51534 class ModifyInstanceMetadataDefaultsRequest < Struct.new( :http_tokens, :http_put_response_hop_limit, :http_endpoint, :instance_metadata_tags, :dry_run) SENSITIVE = [] include Aws::Structure end |
#http_put_response_hop_limit ⇒ Integer
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
51534 51535 51536 51537 51538 51539 51540 51541 51542 |
# File 'lib/aws-sdk-ec2/types.rb', line 51534 class ModifyInstanceMetadataDefaultsRequest < Struct.new( :http_tokens, :http_put_response_hop_limit, :http_endpoint, :instance_metadata_tags, :dry_run) SENSITIVE = [] include Aws::Structure end |
#http_tokens ⇒ String
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.
51534 51535 51536 51537 51538 51539 51540 51541 51542 |
# File 'lib/aws-sdk-ec2/types.rb', line 51534 class ModifyInstanceMetadataDefaultsRequest < Struct.new( :http_tokens, :http_put_response_hop_limit, :http_endpoint, :instance_metadata_tags, :dry_run) SENSITIVE = [] include Aws::Structure end |
#instance_metadata_tags ⇒ String
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*.
[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS
51534 51535 51536 51537 51538 51539 51540 51541 51542 |
# File 'lib/aws-sdk-ec2/types.rb', line 51534 class ModifyInstanceMetadataDefaultsRequest < Struct.new( :http_tokens, :http_put_response_hop_limit, :http_endpoint, :instance_metadata_tags, :dry_run) SENSITIVE = [] include Aws::Structure end |