# CapturedEnvironmentVariable

- Module: [Aspire.Hosting.Docker](/reference/api/go/aspire.hosting.docker.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Represents a captured environment variable that will be written to the .env file adjacent to the Docker Compose file.

## Definition

```go
type CapturedEnvironmentVariable interface{}
```

## Properties

- `DefaultValue`: `*string` `get/set` -- Gets or sets the default value for the environment variable.
- `Description`: `*string` `get/set` -- Gets or sets the description for the environment variable.
- `Source`: `any` `get/set` -- Gets or sets the source object that originated this environment variable. This could be a `ParameterResource`, `ContainerMountAnnotation`, `ContainerImageReference`, or `ContainerPortReference`.
