AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
The metadata options for the instance.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class InstanceMetadataOptionsRequest
The InstanceMetadataOptionsRequest type exposes the following members
Name | Description | |
---|---|---|
InstanceMetadataOptionsRequest() |
Name | Type | Description | |
---|---|---|---|
HttpEndpoint | Amazon.EC2.InstanceMetadataEndpointState |
Gets and sets the property HttpEndpoint. Enables or disables the HTTP metadata endpoint on your instances.
If you specify a value of
Default: |
|
HttpProtocolIpv6 | Amazon.EC2.InstanceMetadataProtocolState |
Gets and sets the property HttpProtocolIpv6. Enables or disables the IPv6 endpoint for the instance metadata service.
Default: |
|
HttpPutResponseHopLimit | System.Int32 |
Gets and sets the property HttpPutResponseHopLimit. The maximum number of hops that the metadata token can travel. Possible values: Integers from 1 to 64 |
|
HttpTokens | Amazon.EC2.HttpTokensState |
Gets and sets the property HttpTokens. Indicates whether IMDSv2 is required.
Default:
The default value can also be affected by other combinations of parameters. For more information, see Order of precedence for instance metadata options in the Amazon EC2 User Guide. |
|
InstanceMetadataTags | Amazon.EC2.InstanceMetadataTagsState |
Gets and sets the property InstanceMetadataTags.
Set to
Default: |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5