Class CfnProject.EnvironmentVariableProperty
EnvironmentVariable
is a property of the AWS CodeBuild Project Environment property type that specifies the name and value of an environment variable for an AWS CodeBuild project environment. When you use the environment to run a build, these variables are available for your builds to use. EnvironmentVariable
contains a list of EnvironmentVariable
property types.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EnvironmentVariableProperty : Object, CfnProject.IEnvironmentVariableProperty
Syntax (vb)
Public Class EnvironmentVariableProperty
Inherits Object
Implements CfnProject.IEnvironmentVariableProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
var environmentVariableProperty = new EnvironmentVariableProperty {
Name = "name",
Value = "value",
// the properties below are optional
Type = "type"
};
Synopsis
Constructors
EnvironmentVariableProperty() |
Properties
Name | The name or key of the environment variable. |
Type | The type of environment variable. Valid values include:. |
Value | The value of the environment variable. |
Constructors
EnvironmentVariableProperty()
public EnvironmentVariableProperty()
Properties
Name
The name or key of the environment variable.
public string Name { get; set; }
Property Value
System.String
Remarks
Type
The type of environment variable. Valid values include:.
public string Type { get; set; }
Property Value
System.String
Remarks
Value
The value of the environment variable.
public string Value { get; set; }
Property Value
System.String
Remarks
We strongly discourage the use of PLAINTEXT
environment variables to store sensitive values, especially AWS secret key IDs. PLAINTEXT
environment variables can be displayed in plain text using the AWS CodeBuild console and the AWS CLI . For sensitive values, we recommend you use an environment variable of type PARAMETER_STORE
or SECRETS_MANAGER
.