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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file appflow-patterns-0.0.1.tar.gz
.
File metadata
- Download URL: appflow-patterns-0.0.1.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae9d73883e3e01916202a328fd8e5ede71265dd756569a6d864aae266b20d50 |
|
MD5 | cb7f858de9396bef11136cad2f9cfbd3 |
|
BLAKE2b-256 | b896c6974dc004fb66505a9e5c5b7ee1bf49f21f4a241432c1d71a8064e38e31 |
File details
Details for the file appflow_patterns-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: appflow_patterns-0.0.1-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d0f9facf2d41d685e086cd8d6e71e372ce456d85812ff5862608494f1b460d |
|
MD5 | 141085f9b46402e5ca701114996aa26e |
|
BLAKE2b-256 | 89930174929508b7c90fba45e62da4f2c852bbea849ba49797b710b7ab852b65 |