Skip to content
v2.278.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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lightsail as lightsail

environment_variable_property = lightsail.CfnContainer.EnvironmentVariableProperty(
    value="value",
    variable="variable"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lightsail.*;

EnvironmentVariableProperty environmentVariableProperty = EnvironmentVariableProperty.builder()
        .value("value")
        .variable("variable")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;

var environmentVariableProperty = new EnvironmentVariableProperty {
    Value = "value",
    Variable = "variable"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

environmentVariableProperty := &EnvironmentVariableProperty{
	Value: jsii.String("value"),
	Variable: jsii.String("variable"),
}

Properties ​

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