RustFsResource
Handle
interface RustFsResource extends IComputeResource, IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithArgs, IResourceWithConnectionString, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport, IValueProvider, IValueWithReferences { addBucket(bucketName: string): RustFsBucketResource; addBuckets(bucketNames: string[]): RustFsResource; withDataBindMount(source: string): RustFsResource; withDataVolume(name?: string): RustFsResource; withSigningRegion(region: string): RustFsResource;}5 members
Methods
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.
addBucket(bucketName: string): RustFsBucketResourceParameters
bucketName stringThe name of the bucket to create.Returns
RustFsBucketResource 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.
addBuckets(bucketNames: string[]): RustFsResourceParameters
bucketNames string[]The names of the buckets to create.Returns
RustFsResource Adds a bind mount for the data folder to a RustFs container resource.
withDataBindMount(source: string): RustFsResourceParameters
sourcestringThe source directory on the host to mount into the container.Returns
RustFsResource Adds a named volume for the data folder to a RustFs container resource.
withDataVolume(name?: string): RustFsResourceParameters
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.Returns
RustFsResource Sets the AWS signing region used when creating buckets via the S3 API. Defaults to `us-east-1` if not specified.
withSigningRegion(region: string): RustFsResourceParameters
regionstringThe AWS signing region (e.g. `us-east-1`, `ap-northeast-1`).Returns
RustFsResource