Class CfnAppPropsMixin.EnvironmentVariableProperty
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.OpsWorks
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnAppPropsMixin.EnvironmentVariableProperty : CfnAppPropsMixin.IEnvironmentVariableProperty
Syntax (vb)
Public Class CfnAppPropsMixin.EnvironmentVariableProperty Implements CfnAppPropsMixin.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.CfnPropertyMixins.AWS.OpsWorks;
var environmentVariableProperty = new EnvironmentVariableProperty {
Key = "key",
Secure = false,
Value = "value"
};
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 |
| Value | (Optional) The environment variable's value, which can be left empty. |
Constructors
EnvironmentVariableProperty()
public EnvironmentVariableProperty()
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.CfnPropertyMixins.AWS.OpsWorks;
var environmentVariableProperty = new EnvironmentVariableProperty {
Key = "key",
Secure = false,
Value = "value"
};
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
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.
public object? Secure { get; set; }
Property Value
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 .
Type union: either bool or IResolvable
Value
(Optional) The environment variable's value, which can be left empty.
public string? Value { get; set; }
Property Value
Remarks
If you specify a value, it can contain up to 256 characters, which must all be printable.