# GatewaySpecV1

- 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/GatewayV1.cs)

Represents the specification of a Gateway resource.

## Definition

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

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

## Constructors

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

## Properties

- [GatewayClassName](/reference/api/csharp/aspire.hosting.kubernetes/gatewayspecv1/properties.md#gatewayclassname) : `string` `get; set` -- Gets or sets the name of the GatewayClass that this Gateway is associated with.
- [Listeners](/reference/api/csharp/aspire.hosting.kubernetes/gatewayspecv1/properties.md#listeners) : [List<GatewayListenerV1>](/reference/api/csharp/aspire.hosting.kubernetes/gatewaylistenerv1.md) `get` -- Gets the listeners associated with this Gateway. Each listener defines a port, protocol, and optional TLS configuration.
