Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

CapturedEnvironmentVariable

Handle
📦 Aspire.Hosting.Docker v17.0.0

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

type CapturedEnvironmentVariable interface{}

Properties

propertyDefaultValue*stringget · set
Gets or sets the default value for the environment variable.
DefaultValue() (*string, error)
SetDefaultValue(value *string) CapturedEnvironmentVariable
propertyDescription*stringget · set
Gets or sets the description for the environment variable.
Description() (*string, error)
SetDescription(value *string) CapturedEnvironmentVariable
propertySourceanyget · set
Gets or sets the source object that originated this environment variable. This could be a ParameterResource, ContainerMountAnnotation, ContainerImageReference, or ContainerPortReference.
Source() (any, error)
SetSource(value any) CapturedEnvironmentVariable