@pepperize/cdk-dynamodb-backup
Version:
Backup and restore AWS DynamoDB Table to AWS S3 Bucket with AWS Data Pipeline.
32 lines (31 loc) • 1.12 kB
TypeScript
import { Duration, ITaggable, TagManager } from "aws-cdk-lib";
import * as dynamodb from "aws-cdk-lib/aws-dynamodb";
import * as iam from "aws-cdk-lib/aws-iam";
import * as s3 from "aws-cdk-lib/aws-s3";
import { Construct } from "constructs";
export interface DataPipelineBackupOptions {
readonly schedule?: Duration;
readonly pipelineName?: string;
readonly dynamoDbThroughputRatio?: number;
readonly logsBucket?: s3.IBucket;
}
export interface DataPipelineBackupProps extends DataPipelineBackupOptions {
readonly table: dynamodb.ITable;
readonly backupBucket: s3.IBucket;
}
export declare class DataPipelineBackup extends Construct implements ITaggable {
/**
* The role used by datapipelines service.
*/
readonly role: iam.IRole;
/**
* The role used by the emr cluster resources.
*/
readonly resourceRole: iam.IRole;
/**
* The instance profile of the emr cluster resources.
*/
readonly instanceProfile: iam.CfnInstanceProfile;
readonly tags: TagManager;
constructor(scope: Construct, id: string, props: DataPipelineBackupProps);
}