Show / Hide Table of Contents

Class ContainerDependency

The details of a dependency on another container in the task definition.

Inheritance
System.Object
ContainerDependency
Implements
IContainerDependency
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class ContainerDependency : Object, IContainerDependency
Syntax (vb)
Public Class ContainerDependency
    Inherits Object
    Implements 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

Constructors

ContainerDependency()

Properties

Condition

The state the container needs to be in to satisfy the dependency and proceed with startup.

Container

The container to depend on.

Constructors

ContainerDependency()

public ContainerDependency()

Properties

Condition

The state the container needs to be in to satisfy the dependency and proceed with startup.

public Nullable<ContainerDependencyCondition> Condition { get; set; }
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.

public ContainerDefinition Container { get; set; }
Property Value

ContainerDefinition

Implements

IContainerDependency
Back to top Generated by DocFX