Interface CfnApp.IEnvironmentVariableProperty
Namespace: Amazon.CDK.AWS.OpsWorks
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.OpsWorks;
var environmentVariableProperty = new EnvironmentVariableProperty {
Key = "key",
Value = "value",
// the properties below are optional
Secure = false
};
Synopsis
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 |
Value | (Optional) The environment variable's value, which can be left empty. |
Properties
Key
(Required) The environment variable's name, which can consist of up to 64 characters and must be specified.
string Key { get; }
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.
virtual object Secure { get; }
Property Value
System.Object
Remarks
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
.
Value
(Optional) The environment variable's value, which can be left empty.
string Value { get; }
Property Value
System.String
Remarks
If you specify a value, it can contain up to 256 characters, which must all be printable.