Type Definitions

Credentials

An AWS Credentials Object

Type:
  • Object
Properties
NameTypeAttributesDescription
bucketString

the AWS bucket to connect to

accessKeyIdString

the AWS accessKey

secretAccessKeyString

the AWS secretAccessKey

regionString

the AWS region

endpointString<optional>

the endpoint URL when using an S3 like service (e.g. Minio)

forcePathStyleBoolean<optional>

whether to force path style endpoints (required for Minio and the like)

Transfer

A transfer Object

Type:
  • Object
Properties
NameTypeDefaultDescription
localPathString

the path to the file locally that you want to upload to the item folder

jsonString

a JSON object to store in the file directly

contentString

some content to store in the file directly

targetString

the target name for the file; this will be set relative to the item path

registerFileBooleantrue

whether the file should be registered in ro-crate-metadata.json. The file will be registered in the hasPart property of the root dataset if there isn't already an entry for the file.

versionBooleanfalse

whether the file should be versioned. If true, the existing file will be copied to ${file}.v${date as ISO String}.{ext} before the new version is uploaded to the target name