# PostaResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Posta](/reference/api/csharp/communitytoolkit.aspire.hosting.posta.md)
- Version: `13.5.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaResource.cs)
- Inherits: `ContainerResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

Resource for the Posta email delivery platform.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class PostaResource
    : Aspire.Hosting.ApplicationModel.ContainerResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.Posta/PostaResource`
- Public instance properties are exported as ATS capabilities.

## Constructors

- [PostaResource(string, ParameterResource, ParameterResource)](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/constructors.md#constructor-string-parameterresource-parameterresource) -- Resource for the Posta email delivery platform.

## Properties

- [AdminPasswordParameter](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/properties.md#adminpasswordparameter) : `ParameterResource` `get` -- Gets the parameter that contains the initial admin password.
- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Connection string for the Posta HTTP API in the form of Endpoint=http://host:port.
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/properties.md#host) : `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the HTTP endpoint.
- [JwtSecretParameter](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/properties.md#jwtsecretparameter) : `ParameterResource` `get` -- Gets the parameter that contains the JWT signing secret.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/properties.md#port) : `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the HTTP endpoint.
- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary HTTP endpoint for the Posta server.
- [SmtpEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/properties.md#smtpendpoint) : `EndpointReference` `get` -- Gets the inbound SMTP endpoint for the Posta server.
- [SmtpRelayEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/properties.md#smtprelayendpoint) : `EndpointReference` `get` -- Gets the authenticated SMTP relay endpoint for the Posta server.
- [UriExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postaresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the Posta HTTP API.
