Interface IContainerDependency
The details of a dependency on another container in the task definition.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface IContainerDependency
Syntax (vb)
Public Interface IContainerDependency
Remarks
See: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDependency.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
ContainerDefinition containerDefinition;
var containerDependency = new ContainerDependency {
Container = containerDefinition,
// the properties below are optional
Condition = ContainerDependencyCondition.START
};
Synopsis
Properties
Condition | The state the container needs to be in to satisfy the dependency and proceed with startup. |
Container | The container to depend on. |
Properties
Condition
The state the container needs to be in to satisfy the dependency and proceed with startup.
virtual Nullable<ContainerDependencyCondition> Condition { get; }
Property Value
System.Nullable<ContainerDependencyCondition>
Remarks
Valid values are ContainerDependencyCondition.START, ContainerDependencyCondition.COMPLETE, ContainerDependencyCondition.SUCCESS and ContainerDependencyCondition.HEALTHY.
Default: ContainerDependencyCondition.HEALTHY
Container
The container to depend on.
ContainerDefinition Container { get; }
Property Value