Skip to main content

L3-level cdk constructs for AWS Appflow.

Project description

Appflow Patterns - a library to facilitate data flows

This library aims at simplifying the task of setting up data flows between SaaS like SharePoint and S3.

This library is written using the wonderful projen framework.

Note: this library is just the result of some personal experimentation. It is not an official AWS library and is not supported by AWS!

Installation

The library is available on npmjs.com and can be installed using:

npm i dms-patterns

And on pypi:

pip install dms-patterns

Usage Examples

Sharepoint to S3

This example creates a scheduled and ondemand flow from a sharepoint site to an s3 bucket.

import { Sharepoint2S3Flow } from '../src/appflow-patterns/sharepoint2s3';


export class Sharepoint2S3Stack extends cdk.Stack {
  constructor(scope: Construct, id: string, props: cdk.StackProps) {
    super(scope, id, props);

    const bucket = new s3.Bucket(this, 'Bucket', {
      bucketName: 'my-bucket',
    });

    new Sharepoint2S3Flow(this, 'Sharepoint2S3Flow', {
      site: 'sites/${siteName},${siteID},${webID}',
      entities: ['${site}/_api/v2.0/drive/root:/path/to/folder'],
      profileArn: 'arn:aws:appflow:us-east-1:123456789012:connector-profile/12345678-1234-1234-1234-123456789012',
      bucketName: bucket.bucketName,
      scheduleExpression: 'rate(12 hour)',
    });

  }
}

Currently, only carbon-based entities are supported due to a limitation of AWS Appflow.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appflow-patterns-0.0.2.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

appflow_patterns-0.0.2-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file appflow-patterns-0.0.2.tar.gz.

File metadata

  • Download URL: appflow-patterns-0.0.2.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for appflow-patterns-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a7f4bff0ef587d9d8353d4f75ac669f24f84e20b16fb1f0a5b147b0232339493
MD5 165f17666af228b28fb3fdccf352767e
BLAKE2b-256 9d3153c5420d3414c9aee2810d04d701c576fc88d77ffa041b5e7fcb9ff8f649

See more details on using hashes here.

File details

Details for the file appflow_patterns-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for appflow_patterns-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 336898a68598b320f4e8af44b9a59e96d3b81c314f78b882cf6efccbf722be2a
MD5 a056312d9bdc1555d0e0af7858668142
BLAKE2b-256 69385d3a9025f8aef593e59498f30bd6310d7f4e09aa5202a64631e620adc671

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page