Show / Hide Table of Contents

Class ContainerDependency

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

Inheritance
object
ContainerDependency
Implements
IContainerDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ContainerDependency : IContainerDependency
Syntax (vb)
Public Class ContainerDependency 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()

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

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()

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

public ContainerDependency()
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
             };

Properties

Condition

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

public ContainerDependencyCondition? Condition { get; set; }
Property Value

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

Remarks

See: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDependency.html

ExampleMetadata: fixture=_generated

Implements

IContainerDependency
Back to top Generated by DocFX