AWS SDK Version 4 for .NET
API Reference

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.

Describes the metadata options for the instances. Supported only for fleets of type instant.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.FleetInstanceMetadataOptionsRequest

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class FleetInstanceMetadataOptionsRequest

The FleetInstanceMetadataOptionsRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property HttpEndpoint Amazon.EC2.FleetInstanceMetadataEndpointState

Gets and sets the property HttpEndpoint.

Enables or disables the HTTP metadata endpoint on your instances.

  • enabled - The HTTP metadata endpoint is enabled.

  • disabled - The HTTP metadata endpoint is disabled.

Public Property HttpPutResponseHopLimit System.Nullable<System.Int32>

Gets and sets the property HttpPutResponseHopLimit.

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.

Default: 1

Possible values: Integers from 1 to 64

Public Property HttpTokens Amazon.EC2.FleetHttpTokensState

Gets and sets the property HttpTokens.

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.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer