# ContainerEnvVarConstruct Properties

- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Type: [ContainerEnvVarConstruct](/reference/api/csharp/aspire.hosting.radius/containerenvvarconstruct.md)
- Kind: `Properties`
- Members: `3`

Represents a single environment-variable entry in a container's `env` block.

<a id="secretkey"></a>

## SecretKey

- Name: `SecretKey`
- Modifiers: `get; set`
- Returns: `BicepValue<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/Constructs/ContainerEnvVarConstruct.cs)

The key within the secret resource's `data` map. Emitted only when assigned, and mutually exclusive with [ContainerEnvVarConstruct.Value](/reference/api/csharp/aspire.hosting.radius/containerenvvarconstruct/properties.md#value).

```csharp
public BicepValue<string> SecretKey { get; set; }
```

<a id="secretname"></a>

## SecretName

- Name: `SecretName`
- Modifiers: `get; set`
- Returns: `BicepValue<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/Constructs/ContainerEnvVarConstruct.cs)

The name of the `Radius.Security/secrets` resource supplying this value. Emitted only when assigned, and mutually exclusive with [ContainerEnvVarConstruct.Value](/reference/api/csharp/aspire.hosting.radius/containerenvvarconstruct/properties.md#value).

```csharp
public BicepValue<string> SecretName { get; set; }
```

<a id="value"></a>

## Value

- Name: `Value`
- Modifiers: `get; set`
- Returns: `BicepValue<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/Constructs/ContainerEnvVarConstruct.cs)

The environment variable value (a literal, or a reference to a Bicep parameter).

```csharp
public BicepValue<string> Value { get; set; }
```
