# InstanceMetadataOptionsRequestProperty

- Source: Generated at build time
- Type last changed: v2.251.0 · 24 Apr 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const instanceMetadataOptionsRequestProperty: ec2.CfnEC2Fleet.InstanceMetadataOptionsRequestProperty = {
  httpEndpoint: 'httpEndpoint',
  httpPutResponseHopLimit: 123,
  httpTokens: 'httpTokens',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

instance_metadata_options_request_property = ec2.CfnEC2Fleet.InstanceMetadataOptionsRequestProperty(
    http_endpoint="httpEndpoint",
    http_put_response_hop_limit=123,
    http_tokens="httpTokens"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

InstanceMetadataOptionsRequestProperty instanceMetadataOptionsRequestProperty = InstanceMetadataOptionsRequestProperty.builder()
        .httpEndpoint("httpEndpoint")
        .httpPutResponseHopLimit(123)
        .httpTokens("httpTokens")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var instanceMetadataOptionsRequestProperty = new InstanceMetadataOptionsRequestProperty {
    HttpEndpoint = "httpEndpoint",
    HttpPutResponseHopLimit = 123,
    HttpTokens = "httpTokens"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

instanceMetadataOptionsRequestProperty := &InstanceMetadataOptionsRequestProperty{
	HttpEndpoint: jsii.String("httpEndpoint"),
	HttpPutResponseHopLimit: jsii.Number(123),
	HttpTokens: jsii.String("httpTokens"),
}
```

## Properties

- `httpEndpoint`: string

- `httpPutResponseHopLimit`: number

- `httpTokens`: string
