Skip to content
v2.278.0

EnvironmentVariableProperty Struct ​

The environment variables for the action.

Example ​

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
# 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
// 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();
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"
};
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 ​

namestringnamestrnameStringNamestringName*string required #
The environment variable name in the key-value pair.
typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*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.

valuestringvaluestrvalueStringValuestringValue*string required #
The environment variable value in the key-value pair.