constructor()

in lib/aws-config-packs.ts [161:180]


	constructor(scope: cdk.Construct, id: string, props: ConfigConformancePackBundleProps) {
    super(scope, id);

    for(let conformancePackConfig of props.PackConfigs){
        
        const conformancePack = new cfg.CfnConformancePack(this, `CP-${conformancePackConfig.ConformancePackName}`, {
            conformancePackName: conformancePackConfig.ConformancePackName,
            deliveryS3Bucket: props.ConfigRecorderEnabledPromise.ConfigDeliveryBucketName,
            deliveryS3KeyPrefix: conformancePackConfig.ConformancePackName,
            templateBody: fs.readFileSync(conformancePackConfig.TemplatePath).toString(),
            conformancePackInputParameters: [],      
        });
        
        
        if(!props.ConfigRecorderEnabledPromise.SkippedCreatingRecorder){
            conformancePack.addDependsOn(props.ConfigRecorderEnabledPromise.ConfigRecorder)
        }
    }

  }