constructor()

in lib/ExamplePgRdsDataSet-stack.ts [22:52]


	constructor(scope: Construct, id: string, props: ExamplePgRdsDataSetParams) {
		super(scope, id, props);
	
	
		const dataSetName = "example_rds"; // NO CAPS!!!!
		
		this.Enrollments.push(new RDSPostgresDataSetEnrollment(this, `${dataSetName}-enrollment`, {
	    	databaseSecret: props.databaseSecret,
	    	database: props.database,
	    	databaseSidOrServiceName: "database_sid",
	    	JdbcTargetIncludePaths: ["database_name/%"],
	    	MaxDPUs: 5.0,
	    	accessSecurityGroup: props.accessSecurityGroup,
	    	AccessSubnet: props.accessSubnet,
	    	dataLakeBucket: props.DataLake.DataLakeBucket,
	    	DataSetName: dataSetName,
	    	GlueScriptPath: "scripts/glue.s3import.fullcopy.rds.py",
			GlueScriptArguments: {
				"--job-language": "python", 
				"--job-bookmark-option": "job-bookmark-disable",
				"--enable-metrics": "",
				"--DL_BUCKET": props.DataLake.DataLakeBucket.bucketName,
				"--DL_PREFIX": "/"+dataSetName+"/",
				"--DL_REGION": Stack.of(this).region,
				"--GLUE_SRC_DATABASE": `${dataSetName}_src`
			}	    	
		}));
		
		
		
	}