# SeaweedFSContainerResource

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

A resource that represents a SeaweedFS container.

## Definition

```csharp
namespace Aspire.Hosting;

public sealed class SeaweedFSContainerResource
    : 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

- [SeaweedFSContainerResource(string, ParameterResource, ParameterResource)](/reference/api/csharp/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource/constructors.md#constructor-string-parameterresource-parameterresource) -- A resource that represents a SeaweedFS container.

## Properties

- [AccessKey](/reference/api/csharp/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource/properties.md#accesskey) : `ParameterResource` `get` -- Gets the S3 Access Key.
- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the SeaweedFS resource.
- [FilerEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource/properties.md#filerendpoint) : `EndpointReference` `get` -- Gets the endpoint for the SeaweedFS Filer API. Will throw if Filer is not enabled.
- [MasterEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource/properties.md#masterendpoint) : `EndpointReference` `get` -- Gets the endpoint for the SeaweedFS Master API.
- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary endpoint for the SeaweedFS S3 API. Will throw if S3 is not enabled.
- [SecretKey](/reference/api/csharp/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource/properties.md#secretkey) : `ParameterResource` `get` -- Gets the S3 Secret Key.

## Methods

- [GetConnectionStringAsync(CancellationToken)](/reference/api/csharp/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource/methods.md#getconnectionstringasync-cancellationtoken) : `ValueTask<string?>` -- Gets the connection string asynchronously.
