# EnvironmentVariableProperty

The environment variables for the action.

- Source: Generated at build time
- Type last changed: v2.197.0 · 21 May 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_codepipeline as codepipeline } from 'aws-cdk-lib';
const environmentVariableProperty: codepipeline.CfnPipeline.EnvironmentVariableProperty = {
  name: 'name',
  value: 'value',

  // the properties below are optional
  type: 'type',
};
```

Python:

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

environment_variable_property = codepipeline.CfnPipeline.EnvironmentVariableProperty(
    name="name",
    value="value",

    # the properties below are optional
    type="type"
)
```

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.services.codepipeline.*;

EnvironmentVariableProperty environmentVariableProperty = EnvironmentVariableProperty.builder()
        .name("name")
        .value("value")

        // the properties below are optional
        .type("type")
        .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.AWS.CodePipeline;

var environmentVariableProperty = new EnvironmentVariableProperty {
    Name = "name",
    Value = "value",

    // the properties below are optional
    Type = "type"
};
```

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"

environmentVariableProperty := &EnvironmentVariableProperty{
	Name: jsii.String("name"),
	Value: jsii.String("value"),

	// the properties below are optional
	Type: jsii.String("type"),
}
```

## Properties

- `name`: string (required) — The environment variable name in the key-value pair.

- `type`: string — Specifies the type of use for the environment variable value.

  The value can be either `PLAINTEXT` or `SECRETS_MANAGER` . If the value is `SECRETS_MANAGER` , provide the Secrets reference in the EnvironmentVariable value.

- `value`: string (required) — The environment variable value in the key-value pair.
