TaskEnvironmentVariable Struct
An environment variable to be set in the container run as a task.
| Source | aws-stepfunctions-tasks/lib/ecs/run-ecs-task-base-types.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const taskEnvironmentVariable: stepfunctions_tasks.TaskEnvironmentVariable = {
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_stepfunctions_tasks as stepfunctions_tasks
task_environment_variable = stepfunctions_tasks.TaskEnvironmentVariable(
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.stepfunctions.tasks.*;
TaskEnvironmentVariable taskEnvironmentVariable = TaskEnvironmentVariable.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.StepFunctions.Tasks;
var taskEnvironmentVariable = new TaskEnvironmentVariable {
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"
taskEnvironmentVariable := &TaskEnvironmentVariable{
Name: jsii.String("name"),
Value: jsii.String("value"),
}
Properties
Name for the environment variable.
Use JsonPath class's static methods to specify name from a JSON path.
Value of the environment variable.
Use JsonPath class's static methods to specify value from a JSON path.