# PostaResource

- Module: [CommunityToolkit.Aspire.Hosting.Posta](/reference/api/go/communitytoolkit.aspire.hosting.posta.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Resource for the Posta email delivery platform.

## Definition

```go
type PostaResource interface {
    ExpressionValue
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithConnectionString
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `ExpressionValue`
- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithConnectionString`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Properties

- `AdminPasswordParameter`: `ParameterResource` `get` -- Gets the parameter that contains the initial admin password.
- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Connection string for the Posta HTTP API in the form of Endpoint=http://host:port.
- `Host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the HTTP endpoint.
- `JwtSecretParameter`: `ParameterResource` `get` -- Gets the parameter that contains the JWT signing secret.
- `Port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the HTTP endpoint.
- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the primary HTTP endpoint for the Posta server.
- `SmtpEndpoint`: `EndpointReference` `get` -- Gets the inbound SMTP endpoint for the Posta server.
- `SmtpRelayEndpoint`: `EndpointReference` `get` -- Gets the authenticated SMTP relay endpoint for the Posta server.
- `UriExpression`: `*ReferenceExpression` `get` -- Gets the connection URI expression for the Posta HTTP API.

## Methods

- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.posta/postaresource/withdatabindmount.md) -- `method` -- Adds a bind mount for Posta's filesystem-backed attachment data.
  ```go
  WithDataBindMount(source string, options ...*WithDataBindMountOptions) PostaResource
  ```
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.posta/postaresource/withdatavolume.md) -- `method` -- Adds a named volume for Posta's filesystem-backed attachment data.
  ```go
  WithDataVolume(options ...*WithDataVolumeOptions) PostaResource
  ```
- [WithPostgresReference](/reference/api/go/communitytoolkit.aspire.hosting.posta/postaresource/withpostgresreference.md) -- `method` -- Configures the PostgreSQL database used by Posta.
  ```go
  WithPostgresReference(database PostgresDatabaseResource) PostaResource
  ```
- [WithRedisReference](/reference/api/go/communitytoolkit.aspire.hosting.posta/postaresource/withredisreference.md) -- `method` -- Configures the Redis server used by Posta.
  ```go
  WithRedisReference(redis RedisResource, options ...*WithRedisReferenceOptions) PostaResource
  ```
