Class CfnApp.EnvironmentVariableProperty
Represents an app's environment variable.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.OpsWorks
Assembly: Amazon.CDK.AWS.OpsWorks.dll
Syntax (csharp)
public class EnvironmentVariableProperty : Object, CfnApp.IEnvironmentVariableProperty
Syntax (vb)
Public Class EnvironmentVariableProperty
Inherits Object
Implements CfnApp.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.OpsWorks;
var environmentVariableProperty = new EnvironmentVariableProperty {
Key = "key",
Value = "value",
// the properties below are optional
Secure = false
};
Synopsis
Constructors
EnvironmentVariableProperty() |
Properties
Key | (Required) The environment variable's name, which can consist of up to 64 characters and must be specified. |
Secure | (Optional) Whether the variable's value is returned by the DescribeApps action. To hide an environment variable's value, set |
Value | (Optional) The environment variable's value, which can be left empty. |
Constructors
EnvironmentVariableProperty()
public EnvironmentVariableProperty()
Properties
Key
(Required) The environment variable's name, which can consist of up to 64 characters and must be specified.
public string Key { get; set; }
Property Value
System.String
Remarks
The name can contain upper- and lowercase letters, numbers, and underscores (_), but it must start with a letter or underscore.
Secure
(Optional) Whether the variable's value is returned by the DescribeApps action. To hide an environment variable's value, set Secure
to true
. DescribeApps
returns *****FILTERED*****
instead of the actual value. The default value for Secure
is false
.
public object Secure { get; set; }
Property Value
System.Object
Remarks
Value
(Optional) The environment variable's value, which can be left empty.
public string Value { get; set; }
Property Value
System.String
Remarks
If you specify a value, it can contain up to 256 characters, which must all be printable.