# RustFsResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.RustFs](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs.md)
- Version: `13.4.1-beta.706`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.RustFs/RustFsResource.cs)
- Inherits: `ContainerResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

A resource that represents a RustFs S3-compatible storage container.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class RustFsResource
    : Aspire.Hosting.ApplicationModel.ContainerResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [RustFsResource(string, ParameterResource, ParameterResource)](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/constructors.md#constructor-string-parameterresource-parameterresource) -- A resource that represents a RustFs S3-compatible storage container.

## Properties

- [AccessKey](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/properties.md#accesskey) : `ParameterResource` `get` -- Gets the access key parameter resource for RustFs.
- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the RustFs resource.
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/properties.md#host) : `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/properties.md#port) : `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary endpoint for the RustFs resource. This endpoint is used for all S3-compatible API calls over HTTP.
- [SecretKey](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/properties.md#secretkey) : `ParameterResource` `get` -- Gets the secret key parameter resource for RustFs.
- [SigningRegion](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/properties.md#signingregion) : `string` `get` -- Gets the AWS signing region used for S3 API requests. Defaults to `us-east-1`.
- [UriExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the RustFs server.

## Methods

- [GetConnectionStringAsync(CancellationToken)](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource/methods.md#getconnectionstringasync-cancellationtoken) : `ValueTask<string?>` -- Gets the connection string for the RustFs server.
