# RustFsBucketResource

- 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/RustFsBucketResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithParent`, `IResourceWithParent<RustFsResource>`, `IValueProvider`, `IValueWithReferences`

A resource that represents an S3 bucket created on a RustFs container resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class RustFsBucketResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.RustFsResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [RustFsBucketResource(string, string, RustFsResource)](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsbucketresource/constructors.md#constructor-string-string-rustfsresource) -- Initializes a new instance of the [RustFsBucketResource](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsbucketresource.md) class.

## Properties

- [BucketName](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsbucketresource/properties.md#bucketname) : `string` `get` -- Gets the S3 bucket name as it exists on the RustFs server.
- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsbucketresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the bucket.
- [Parent](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsbucketresource/properties.md#parent) : [RustFsResource](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource.md) `get` -- Gets the parent [RustFsResource](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource.md) that hosts this bucket.
