# RustFsResource

- Module: [CommunityToolkit.Aspire.Hosting.RustFs](/reference/api/go/communitytoolkit.aspire.hosting.rustfs.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

## Definition

```go
type RustFsResource interface {
    ExpressionValue
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithConnectionString
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `ExpressionValue`
- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithConnectionString`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Methods

- [AddBucket](/reference/api/go/communitytoolkit.aspire.hosting.rustfs/rustfsresource/addbucket.md) -- `method` -- Adds a bucket to the RustFs resource. The bucket is created by issuing a signed `PUT` request to the RustFs S3 API after the server resource becomes ready.
  ```go
  AddBucket(bucketName string) RustFsBucketResource
  ```
- [AddBuckets](/reference/api/go/communitytoolkit.aspire.hosting.rustfs/rustfsresource/addbuckets.md) -- `method` -- Adds multiple buckets to the RustFs resource. Each bucket is registered as its own `RustFsBucketResource` child resource and created via the RustFs S3 API once the server resource becomes ready.
  ```go
  AddBuckets(bucketNames []string) RustFsResource
  ```
- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.rustfs/rustfsresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a RustFs container resource.
  ```go
  WithDataBindMount(source string) RustFsResource
  ```
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.rustfs/rustfsresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a RustFs container resource.
  ```go
  WithDataVolume(options ...*WithDataVolumeOptions) RustFsResource
  ```
- [WithSigningRegion](/reference/api/go/communitytoolkit.aspire.hosting.rustfs/rustfsresource/withsigningregion.md) -- `method` -- Sets the AWS signing region used when creating buckets via the S3 API. Defaults to `us-east-1` if not specified.
  ```go
  WithSigningRegion(region string) RustFsResource
  ```
