Interface CfnProject.IEnvironmentVariableProperty
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.
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnProject.IEnvironmentVariableProperty
Syntax (vb)
Public Interface 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
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. |
Properties
Name
The name or key of the environment variable.
string Name { get; }
Property Value
Remarks
Type
The type of environment variable. Valid values include:.
string? Type { get; }
Property Value
Remarks
Value
The value of the environment variable.
string Value { get; }
Property Value
Remarks
We strongly discourage the use of <code>PLAINTEXT</code> environment variables to store sensitive values, especially AWS secret key IDs. <code>PLAINTEXT</code> 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 <code>PARAMETER_STORE</code> or <code>SECRETS_MANAGER</code> .