TaskContainerDependencyProperty Struct
A list of containers that this task depends on.
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 taskContainerDependencyProperty: batch.CfnJobDefinition.TaskContainerDependencyProperty = {
condition: 'condition',
containerName: 'containerName',
};
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
task_container_dependency_property = batch.CfnJobDefinition.TaskContainerDependencyProperty(
condition="condition",
container_name="containerName"
)
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.*;
TaskContainerDependencyProperty taskContainerDependencyProperty = TaskContainerDependencyProperty.builder()
.condition("condition")
.containerName("containerName")
.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 taskContainerDependencyProperty = new TaskContainerDependencyProperty {
Condition = "condition",
ContainerName = "containerName"
};
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"
taskContainerDependencyProperty := &TaskContainerDependencyProperty{
Condition: jsii.String("condition"),
ContainerName: jsii.String("containerName"),
}
Properties
The dependency condition of the container. The following are the available conditions and their behavior:.
notes
START- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.COMPLETE- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container.SUCCESS- This condition is the same asCOMPLETE, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
containerNamestringcontainer_namestrcontainerNameStringContainerNamestringContainerName*stringrequired#A unique identifier for the container.