Skip to content
v2.274.0

EnvironmentVariableProperty Struct ​

EnvironmentVariable is a property of the Container property. It describes the environment variables of a container on a container service which are key-value parameters that provide dynamic configuration of the application or script run by the container.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const environmentVariableProperty: lightsail.CfnContainer.EnvironmentVariableProperty = {
  value: 'value',
  variable: 'variable',
};

Properties ​

valueoptionalstringvalueoptionalstrvalueoptionalStringValueoptionalstringValueoptional*string#
The environment variable value.
variableoptionalstringvariableoptionalstrvariableoptionalStringVariableoptionalstringVariableoptional*string#
The environment variable key.