Skip to content
DocsTry Aspire
DocsTry

ListmonkResource

Handle
📦 CommunityToolkit.Aspire.Hosting.Listmonk v13.5.0
interface ListmonkResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences,
IResourceWithServiceDiscovery {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly uriExpression: ReferenceExpression;
withAdminCredentials(
username: string,
password: ParameterResource): ListmonkResource;
withAdminPassword(password: ParameterResource): ListmonkResource;
withAdminUser(username: string): ListmonkResource;
withAppAddress(address: string): ListmonkResource;
withDatabaseMaxIdleConnections(maxIdle: number): ListmonkResource;
withDatabaseMaxLifetime(maxLifetime: string): ListmonkResource;
withDatabaseMaxOpenConnections(maxOpen: number): ListmonkResource;
withDatabaseParameters(parameters: string): ListmonkResource;
withDatabaseSslMode(sslMode: string): ListmonkResource;
withGroupId(groupId: number): ListmonkResource;
withReference(database: PostgresDatabaseResource): ListmonkResource;
withTimeZone(timeZone: string): ListmonkResource;
withUploadsBindMount(source: string): ListmonkResource;
withUploadsVolume(name?: string): ListmonkResource;
withUserId(userId: number): ListmonkResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the listmonk instance.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for this resource.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for this resource.
propertyprimaryEndpointEndpointReferenceget
Gets the primary HTTP endpoint for the listmonk instance.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the listmonk instance.

Methods

Configures the first-run listmonk Super Admin credentials.
withAdminCredentials(
username: string,
password: ParameterResource): ListmonkResource
usernamestring
passwordParameterResource
ListmonkResource
methodwithAdminPasswordbuilder
Configures the first-run listmonk Super Admin password.
withAdminPassword(password: ParameterResource): ListmonkResource
passwordParameterResource
ListmonkResource
methodwithAdminUserbuilder
Configures the first-run listmonk Super Admin username.
withAdminUser(username: string): ListmonkResource
usernamestring
ListmonkResource
methodwithAppAddressbuilder
Configures the listmonk web server address.
withAppAddress(address: string): ListmonkResource
addressstring
ListmonkResource
Configures the maximum number of idle PostgreSQL connections.
withDatabaseMaxIdleConnections(maxIdle: number): ListmonkResource
maxIdlenumber
ListmonkResource
Configures the maximum lifetime for PostgreSQL connections.
withDatabaseMaxLifetime(maxLifetime: string): ListmonkResource
maxLifetimestring
ListmonkResource
Configures the maximum number of open PostgreSQL connections.
withDatabaseMaxOpenConnections(maxOpen: number): ListmonkResource
maxOpennumber
ListmonkResource
Configures additional PostgreSQL DSN parameters.
withDatabaseParameters(parameters: string): ListmonkResource
parametersstring
ListmonkResource
methodwithDatabaseSslModebuilder
Configures the PostgreSQL SSL mode used by listmonk.
withDatabaseSslMode(sslMode: string): ListmonkResource
sslModestring
ListmonkResource
methodwithGroupIdbuilder
Configures the group ID used by the listmonk container entrypoint.
withGroupId(groupId: number): ListmonkResource
groupIdnumber
ListmonkResource
methodwithReferencebuilder
References a `PostgresDatabaseResource` as the PostgreSQL database for the listmonk resource.
withReference(database: PostgresDatabaseResource): ListmonkResource
databasePostgresDatabaseResource
ListmonkResource
methodwithTimeZonebuilder
Configures the time zone used by the listmonk container.
withTimeZone(timeZone: string): ListmonkResource
timeZonestring
ListmonkResource
Adds a bind mount for listmonk media uploads.
withUploadsBindMount(source: string): ListmonkResource
sourcestring
ListmonkResource
methodwithUploadsVolumebuilder
Adds a named volume for listmonk media uploads.
withUploadsVolume(name?: string): ListmonkResource
namestringoptional
ListmonkResource
methodwithUserIdbuilder
Configures the user ID used by the listmonk container entrypoint.
withUserId(userId: number): ListmonkResource
userIdnumber
ListmonkResource