constructor()

in cdk/lib/ui-stack.ts [16:33]


    constructor(scope: cdk.Construct, id: string, props: StackProps) {
        super(scope, id, props.cdkProps);
        
        // Upload the frontend to S3
        new s3deployment.BucketDeployment(this, 'DeployFiles', {
            sources: [s3deployment.Source.asset('../web-ui')],
            destinationBucket: props.bucket,
            prune: false,
            distribution: props.cfDistro,
            distributionPaths: ['/index.html', '/clip.js', '/config.json', '/style.css']
        });
        
        
        new cdk.CfnOutput(this, 'url', { value: 'https://' + props.cfDistro.distributionDomainName });
        new cdk.CfnOutput(this, 'ingestserver', { value: 'rtmps://' +  props.channel.attrIngestEndpoint + ':443/app/'});
        new cdk.CfnOutput(this, 'streamkey', { value: props.streamkey.attrValue });
        
    }