Create Amazon S3 Feed

Create Amazon S3 feed to ingest files.

Graphlit supports ingesting files from Amazon S3 blob storage buckets.

The createFeed mutation enables the creation of a feed by accepting the feed name, type and site feed parameters and it returns essential details, including the ID, name, state, and type of the newly generated feed.

Depending on the specified type parameter, Graphlit requires the specific feed parameters including the S3 blob storage bucketName, accessKey, secretAccessKey, and optional bucket prefix. (Prefix is the relative path within the bucket.)

Mutation:

mutation CreateFeed($feed: FeedInput!) {
  createFeed(feed: $feed) {
    id
    name
    state
    type
  }
}

Variables:

{
  "feed": {
    "type": "SITE",
    "site": {
      "type": "S3_BLOB",
      "isRecursive": false,
      "s3": {
        "accessKey": "redacted",
        "secretAccessKey": "redacted",
        "bucketName": "redacted",
        "prefix": "test/documents/"
      }
    },
    "name": "S3 Documents"
  }
}

Response:

{
  "type": "SITE",
  "id": "292699c5-186d-4623-97a8-2b7110908dd5",
  "name": "S3 Documents",
  "state": "ENABLED"
}

Coming soon...

Last updated