Skip to content
v2.277.0

EnvironmentProperty Struct ​

The Environment property type specifies environment variables to use in a job definition.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const environmentProperty: batch.CfnJobDefinition.EnvironmentProperty = {
  name: 'name',
  value: 'value',
};
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_batch as batch

environment_property = batch.CfnJobDefinition.EnvironmentProperty(
    name="name",
    value="value"
)
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.batch.*;

EnvironmentProperty environmentProperty = EnvironmentProperty.builder()
        .name("name")
        .value("value")
        .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.Batch;

var environmentProperty = new EnvironmentProperty {
    Name = "name",
    Value = "value"
};
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"

environmentProperty := &EnvironmentProperty{
	Name: jsii.String("name"),
	Value: jsii.String("value"),
}

Properties ​

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string#
The name of the environment variable.
valueoptionalstringvalueoptionalstrvalueoptionalStringValueoptionalstringValueoptional*string#
The value of the environment variable.