# withSecretKey

- Module: [CommunityToolkit.Aspire.Hosting.SeaweedFS](/reference/api/typescript/communitytoolkit.aspire.hosting.seaweedfs.md)
- Version: `13.5.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1)

Configures the Secret Key that the SeaweedFS S3 resource uses.

## Definition

```typescript
interface SeaweedFSContainerResource {
  // ... omitted for brevity
  withSecretKey(secretKey: ParameterResource): SeaweedFSContainerResource
}
```

## Parameters

- `secretKey` (`ParameterResource`)

## Returns

[SeaweedFSContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource.md) `builder`

## Applies to

- [SeaweedFSContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.seaweedfs/seaweedfscontainerresource.md)
