constructor()

in lib/spi/types.ts [129:141]


    constructor(readonly cluster: Cluster, readonly version: KubernetesVersion, nodeGroup?: Nodegroup | AutoScalingGroup) {
        this.cluster = cluster;
        if (nodeGroup) {
            if (nodeGroup instanceof Nodegroup) {
                this.nodeGroup = nodeGroup;
            }
            else {
                this.autoScalingGroup = nodeGroup;
            }
        }
        this.provisionedAddOns = new Map<string, cdk.Construct>();
        this.scheduledAddOns = new Map<string, Promise<cdk.Construct>>();
    }