# RadiusSecretStoreConstruct

- Kind: `class`
- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Version: `13.6.0-preview.1.26478.8`
- Namespace: `Aspire.Hosting.Radius.Publishing.Constructs`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Radius/Publishing/Constructs/RadiusSecretStoreConstruct.cs)
- Inherits: `ProvisionableResource`

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.

## Definition

```csharp
namespace Aspire.Hosting.Radius.Publishing.Constructs;

public sealed class RadiusSecretStoreConstruct
    : Azure.Provisioning.Primitives.ProvisionableResource
{
    // ...
}
```

## Constructors

- [RadiusSecretStoreConstruct(string)](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/constructors.md#constructor-string) -- Initializes a new [RadiusSecretStoreConstruct](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct.md) with the given Bicep identifier.

## Properties

- [ApplicationId](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#applicationid) : `BicepValue<string>` `get; set` -- The application scope reference ( `properties.application`). Set only for application-scoped stores.
- [Data](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#data) : `BicepDictionary<RadiusSecretStoreDataEntryConstruct>` `get; set` -- The `data` map keyed by secret key name.
- [EnvironmentId](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#environmentid) : `BicepValue<string>` `get; set` -- The environment scope reference ( `properties.environment`). Set only for environment-scoped stores.
- [ResourceReference](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#resourcereference) : `BicepValue<string>` `get; set` -- The `<namespace>/<name>` reference to an existing cluster `Secret` (existing/sealed modes).
- [StoreName](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#storename) : `BicepValue<string>` `get; set` -- The resource name.
- [StoreType](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct/properties.md#storetype) : `BicepValue<string>` `get; set` -- The Radius secret-store `type` string (e.g. `basicAuthentication`).
