# SleepActionV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/SleepActionV1.cs)

Represents an action to pause execution for a specified duration in seconds.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class SleepActionV1
{
    // ...
}
```

## Remarks

SleepActionV1 is primarily used in Kubernetes lifecycle handlers to introduce a delay or pause during specific points of the Pod's lifecycle, such as during pre-stop or post-start events.

## Constructors

- [SleepActionV1](/reference/api/csharp/aspire.hosting.kubernetes/sleepactionv1/constructors.md#constructor)

## Properties

- [Seconds](/reference/api/csharp/aspire.hosting.kubernetes/sleepactionv1/properties.md#seconds) : `long` `get; set` -- Represents the duration in seconds associated with a sleep action.
