# 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/2d325b13709752ba6d9a943635c5e2940a2530c0)

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`.
