AzurePostgresFlexibleServerResource
Class net10.0
Represents an resource for Azure Postgres Flexible Server.
namespace Aspire.Hosting.Azure;
public class AzurePostgresFlexibleServerResource : Aspire.Hosting.Azure.AzureProvisioningResource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithEndpoints, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} AzureProvisioningResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithEndpointsIValueProviderIValueWithReferences
16 members
Constructors1
Section titled ConstructorsProperties13
Section titled PropertiesAnnotationsgetResourceAnnotationCollectionConnectionStringExpressiongetReferenceExpression Gets the connection template for the manifest for the Azure Postgres Flexible Server.
DatabasesgetIReadOnlyDictionary<string, string> A dictionary where the key is the resource name and the value is the database name.
HostgetReferenceExpression Gets the host for the PostgreSQL server.
HostNamegetReferenceExpression Gets the host name for the PostgreSQL server.
IsContainergetbool Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
JdbcConnectionStringgetReferenceExpression Gets the JDBC connection string for the server.
NameOutputReferencegetBicepOutputReference Gets the "name" output reference for the resource.
PasswordgetReferenceExpression? Gets the password for the PostgreSQL server when password authentication is enabled.
PortgetReferenceExpression Gets the port for the PostgreSQL server.
UriExpressiongetReferenceExpression Gets the connection URI expression for the PostgreSQL server.
UsePasswordAuthenticationgetbool Gets a value indicating whether the resource uses password authentication.
UserNamegetReferenceExpression? Gets the user name for the PostgreSQL server when password authentication is enabled.
Methods2
Section titled MethodsAddAsExistingResource(AzureResourceInfrastructure)ProvisionableResource Adds a new
Primitives.ProvisionableResource into infra. The new resource represents a reference to the current Azure.AzureProvisioningResource via https://learn.microsoft.com/azure/azure-resource-manager/bicep/existing-resource. AddRoleAssignments(IAddRoleAssignmentsContext) Adds role assignments to this Azure resource.