Share via


ContainerV1.Lifecycle Property

Definition

Gets or sets the lifecycle definition for the container, specifying actions to take in response to container lifecycle events, such as PostStart and PreStop.

[YamlDotNet.Serialization.YamlMember(Alias="lifecycle")]
public Aspire.Hosting.Kubernetes.Resources.LifecycleV1? Lifecycle { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="lifecycle")>]
member this.Lifecycle : Aspire.Hosting.Kubernetes.Resources.LifecycleV1 with get, set
Public Property Lifecycle As LifecycleV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to