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 IEnvironmentVariableProperty
Syntax (vb)
Public Interface 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
System.String
Remarks
Type
The type of environment variable. Valid values include:.
virtual string Type { get; }
Property Value
System.String
Remarks
Value
The value of the environment variable.
string Value { get; }
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
.