BatchEnvironmentVariableProperty Struct
The environment variables to send to the container.
You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.
Environment variables cannot start with "
AWS Batch". This naming convention is reserved for variables that AWS Batch sets.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pipes as pipes } from 'aws-cdk-lib';
const batchEnvironmentVariableProperty: pipes.CfnPipe.BatchEnvironmentVariableProperty = {
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_pipes as pipes
batch_environment_variable_property = pipes.CfnPipe.BatchEnvironmentVariableProperty(
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.pipes.*;
BatchEnvironmentVariableProperty batchEnvironmentVariableProperty = BatchEnvironmentVariableProperty.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.Pipes;
var batchEnvironmentVariableProperty = new BatchEnvironmentVariableProperty {
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"
batchEnvironmentVariableProperty := &BatchEnvironmentVariableProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
}
Properties
The name of the key-value pair.
For environment variables, this is the name of the environment variable.
The value of the key-value pair.
For environment variables, this is the value of the environment variable.