# Aspire.Hosting.Radius

- Package: `Aspire.Hosting.Radius`
- Version: `17.0.0-preview.1.26567.5`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius)
- NuGet: [Aspire.Hosting.Radius](https://www.nuget.org/packages/Aspire.Hosting.Radius)

## Namespaces

### Aspire.Hosting

- [RadiusCloudProviderExtensions](/reference/api/csharp/aspire.hosting.radius/radiuscloudproviderextensions.md) -- `class` `static` -- Cloud-provider configuration entry points for [RadiusEnvironmentResource](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentresource.md). These extensions attach a `Annotations.RadiusCloudProvidersAnnotation` to the environment that the publisher consumes to emit `providers.azure` / `providers.aws` scope blocks and to schedule `rad credential register` invocations during deploy.
- [RadiusExtensions](/reference/api/csharp/aspire.hosting.radius/radiusextensions.md) -- `class` `static` -- Provides extension methods for adding and configuring Radius environment resources.
- [RadiusRecipeParameterExtensions](/reference/api/csharp/aspire.hosting.radius/radiusrecipeparameterextensions.md) -- `class` `static` -- Recipe-parameter configuration entry points for [RadiusEnvironmentResource](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentresource.md). These extensions attach a recipe-parameter annotation to the environment that the publisher consumes to emit a `parameters` block on each recipe entry under `Radius.Core/recipePacks` (and the legacy `Applications.Core/environments` inline-recipes shape).
- [RadiusSecretStoreConsumerExtensions](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconsumerextensions.md) -- `class` `static` -- Fluent entry points for consuming a declared Radius secret store from its documented Radius consumers (environment `recipeConfig` authentication / `envSecrets`). Each reference is emitted by the store's fully-qualified UCP secret-store ID ( `/planes/radius/local/resourceGroups/<group>/providers/Applications.Core/secretStores/<name>`). All surface is experimental and gated by `ASPIRERADIUS006`.
- [RadiusSecretStoreDataBuilder](/reference/api/csharp/aspire.hosting.radius/radiussecretstoredatabuilder.md) -- `class` `sealed` -- Builds the inline `data` map for a secret store declared with `WithData(...)`.
- [RadiusSecretStoreExtensions](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreextensions.md) -- `class` `static` -- Builder entry points for declaring and populating Radius secret stores ( `Applications.Core/secretStores`). All surface is experimental and gated by `ASPIRERADIUS006`.

### Aspire.Hosting.Radius

- [RadiusBackingResourceProjectionException](/reference/api/csharp/aspire.hosting.radius/radiusbackingresourceprojectionexception.md) -- `class` `sealed` -- Thrown when a Radius backing resource -- a cache, database, or queue provisioned by a Radius recipe rather than deployed as a `Radius.Compute/containers` workload -- cannot be projected to its consumers: its address cannot be determined, or the recipe's own connection and credential outputs cannot be described.
- [RadiusEnvironmentResource](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentresource.md) -- `class` `sealed` `ats export` -- Represents a Radius compute environment in the Aspire app model.
- [RadiusProviderReference](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference.md) -- `class` `sealed` -- A reference to a scope field of a cloud provider configured on a Radius environment (via `WithAzureProvider` / `WithAwsProvider`). Assign one as a recipe parameter value to reuse provider configuration without re-declaring it, e.g. `p["region"] = RadiusProviderReference.AwsRegion`.
- [RadiusSecretStoreEncoding](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreencoding.md) -- `enum` -- The per-key `encoding` of an inline Radius secret-store data value, mapping to the `Applications.Core/secretStores` `data.<key>.encoding` string values.
- [RadiusSecretStoreResource](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreresource.md) -- `class` `sealed` -- Represents a Radius `Applications.Core/secretStores@2023-10-01-preview` resource in the Aspire app model. Referenceable by consumers (recipe-config auth) via its fully-qualified UCP secret-store ID. Declared via `builder.AddRadiusSecretStore(...)` (application-scoped) or `radius.WithSecretStore(...)` (environment-scoped).
- [RadiusSecretStoreType](/reference/api/csharp/aspire.hosting.radius/radiussecretstoretype.md) -- `enum` -- The Radius secret-store type, mapping 1:1 to the `Applications.Core/secretStores` `properties.type` string values. The type drives required-key validation ( `ASPIRERADIUS040`) and the default per-key `encoding` ( `ASPIRERADIUS047`).

### Aspire.Hosting.Radius.CloudProviders

- [IAwsRadiusProviderBuilder](/reference/api/csharp/aspire.hosting.radius/iawsradiusproviderbuilder.md) -- `interface` -- Builder surface exposed inside the `WithAwsProvider` callback for selecting an AWS credential mode. Exactly one `With*` method must be called; a repeat call replaces the previous selection.
- [IAzureRadiusProviderBuilder](/reference/api/csharp/aspire.hosting.radius/iazureradiusproviderbuilder.md) -- `interface` -- Builder surface exposed inside the `WithAzureProvider` callback for selecting an Azure credential mode. Exactly one `With*` method must be called; a repeat call replaces the previous selection.

### Aspire.Hosting.Radius.Publishing

- [RadiusInfrastructureOptions](/reference/api/csharp/aspire.hosting.radius/radiusinfrastructureoptions.md) -- `class` `sealed` -- Exposes strongly-typed mutable collections of Radius construct classes for AST customization via the `ConfigureRadiusInfrastructure` callback.

### Aspire.Hosting.Radius.Publishing.Constructs

- [ConnectionConstruct](/reference/api/csharp/aspire.hosting.radius/connectionconstruct.md) -- `class` `sealed` -- Represents a connection entry in a container's connections block.
- [ContainerEnvVarConstruct](/reference/api/csharp/aspire.hosting.radius/containerenvvarconstruct.md) -- `class` `sealed` -- Represents a single environment-variable entry in a container's `env` block.
- [ContainerPortConstruct](/reference/api/csharp/aspire.hosting.radius/containerportconstruct.md) -- `class` `sealed` -- Represents a single port entry in a container's `ports` block.
- [LegacyApplicationConstruct](/reference/api/csharp/aspire.hosting.radius/legacyapplicationconstruct.md) -- `class` `sealed` -- Represents a legacy `Applications.Core/applications@2023-10-01-preview` resource in the Bicep AST. Parent for `Applications.*` portable resources that still use the legacy fallback path.
- [LegacyApplicationEnvironmentConstruct](/reference/api/csharp/aspire.hosting.radius/legacyapplicationenvironmentconstruct.md) -- `class` `sealed` -- Represents a legacy `Applications.Core/environments@2023-10-01-preview` resource in the Bicep AST. Used as a parent for `Applications.*` portable resources with no deployable UDT counterpart (Mongo and SQL Server, whose UDTs ship in the 0.60 Bicep extension but have no published Kubernetes recipe, and the Dapr building blocks, which have no `Radius.*` namespace at all).
- [LegacyRecipeEntryConstruct](/reference/api/csharp/aspire.hosting.radius/legacyrecipeentryconstruct.md) -- `class` `sealed` -- Represents an individual recipe entry nested inside a legacy `Applications.Core/environments` `properties.recipes` block. Uses the original legacy schema keys `templateKind` / `templatePath`, which are unchanged in Radius 0.60. The `Radius.Core/recipePacks` keys ( `kind` / `source` as of 0.60) do not apply here.
- [RadiusApplicationConstruct](/reference/api/csharp/aspire.hosting.radius/radiusapplicationconstruct.md) -- `class` `sealed` -- Represents a `Radius.Core/applications` resource in the Bicep AST.
- [RadiusContainerConstruct](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct.md) -- `class` `sealed` -- Represents a `Radius.Compute/containers` resource in the Bicep AST.
- [RadiusEnvironmentConstruct](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentconstruct.md) -- `class` `sealed` -- Represents a `Radius.Core/environments` resource in the Bicep AST.
- [RadiusRecipePackConstruct](/reference/api/csharp/aspire.hosting.radius/radiusrecipepackconstruct.md) -- `class` `sealed` -- Represents a `Radius.Core/recipePacks` resource in the Bicep AST.
- [RadiusResourceTypeConstruct](/reference/api/csharp/aspire.hosting.radius/radiusresourcetypeconstruct.md) -- `class` `sealed` -- Represents a Radius resource type instance (e.g., `Radius.Data/redisCaches`, `Radius.Messaging/rabbitMQ`) in the Bicep AST. The concrete resource type and API version are passed via the constructor since they vary per Aspire resource mapping.
- [RadiusSecretStoreConstruct](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct.md) -- `class` `sealed` -- Represents an `Applications.Core/secretStores@2023-10-01-preview` resource in the Bicep AST. Carries the store [RadiusSecretStoreConstruct.StoreName](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#storename), its [RadiusSecretStoreConstruct.StoreType](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#storetype), exactly one of [RadiusSecretStoreConstruct.EnvironmentId](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#environmentid) / [RadiusSecretStoreConstruct.ApplicationId](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#applicationid) (the scope), an optional [RadiusSecretStoreConstruct.ResourceReference](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#resourcereference) ( `<namespace>/<name>` for the existing/sealed modes), and the [RadiusSecretStoreConstruct.Data](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#data) map.
- [RadiusSecretStoreDataEntryConstruct](/reference/api/csharp/aspire.hosting.radius/radiussecretstoredataentryconstruct.md) -- `class` `sealed` -- A single entry in a secret store's `data` map. For inline (Radius-created) stores both [RadiusSecretStoreDataEntryConstruct.Value](/reference/api/csharp/aspire.hosting.radius/radiussecretstoredataentryconstruct/properties.md#value) (a reference to a valueless `@secure()` param) and optionally [RadiusSecretStoreDataEntryConstruct.Encoding](/reference/api/csharp/aspire.hosting.radius/radiussecretstoredataentryconstruct/properties.md#encoding) are assigned. For existing/sealed references nothing is assigned, so the entry emits as an empty object ( `{}`) naming a key to expose from the referenced `Secret`.
- [RadiusSecuritySecretConstruct](/reference/api/csharp/aspire.hosting.radius/radiussecuritysecretconstruct.md) -- `class` `sealed` -- Represents a `Radius.Security/secrets` resource in the Bicep AST -- the `Radius.*` UDT replacement for `Applications.Core/secretStores`.
- [RadiusSecuritySecretDataEntryConstruct](/reference/api/csharp/aspire.hosting.radius/radiussecuritysecretdataentryconstruct.md) -- `class` `sealed` -- A single entry in a `Radius.Security/secrets` resource's `data` map.
- [RecipeEntryConstruct](/reference/api/csharp/aspire.hosting.radius/recipeentryconstruct.md) -- `class` `sealed` -- Represents a single recipe entry inside a `Radius.Core/recipePacks` recipe pack.
