# RustFsBucketResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.RustFs](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs.md)
- Type: [RustFsBucketResource](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsbucketresource.md)
- Kind: `Properties`
- Members: `3`

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

<a id="bucketname"></a>

## BucketName

- Name: `BucketName`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.RustFs/RustFsBucketResource.cs#L20)

Gets the S3 bucket name as it exists on the RustFs server.

```csharp
public string BucketName { get; }
```

## Remarks

This is the actual name used on the wire; it may differ from `Resource.Name`, which is the Aspire resource identifier.

<a id="connectionstringexpression"></a>

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.RustFs/RustFsBucketResource.cs#L45)

Gets the connection string expression for the bucket.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Remarks

Format: `Endpoint=http://host:port;AccessKey=key;SecretKey=secret;Bucket=bucket`.

<a id="parent"></a>

## Parent

- Name: `Parent`
- Modifiers: `get`
- Returns: [RustFsResource](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.RustFs/RustFsBucketResource.cs#L11)

Gets the parent [RustFsResource](/reference/api/csharp/communitytoolkit.aspire.hosting.rustfs/rustfsresource.md) that hosts this bucket.

```csharp
public RustFsResource Parent { get; }
```
