# EC2FleetReference

A reference to a EC2Fleet resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## 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 interfaces_ec2 } from 'aws-cdk-lib/interfaces';
const eC2FleetReference: interfaces_ec2.EC2FleetReference = {
  fleetId: 'fleetId',
};
```

Python:

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

e_c2_fleet_reference = interfaces_ec2.EC2FleetReference(
    fleet_id="fleetId"
)
```

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.interfaces.ec2.*;

EC2FleetReference eC2FleetReference = EC2FleetReference.builder()
        .fleetId("fleetId")
        .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.Interfaces.EC2;

var eC2FleetReference = new EC2FleetReference {
    FleetId = "fleetId"
};
```

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"

eC2FleetReference := &EC2FleetReference{
	FleetId: jsii.String("fleetId"),
}
```

## Properties

- `fleetId`: string (required) — The FleetId of the EC2Fleet resource.
