Creates a proxy to the named resource provider. This proxy will resolve to the type of the resource provider under the provided name. It enables getting references to resources outside of the Stack construct and using them with the blueprint:
const app = new cdk.App();const adminRole: iam.IRole = blueprints.getNamedResource("my-admin-role""); // note, there is no stack class hereconst clusterProvider = new blueprints.GenericClusterProvider({ mastersRole: adminRole, ... other props}); Copy
const app = new cdk.App();const adminRole: iam.IRole = blueprints.getNamedResource("my-admin-role""); // note, there is no stack class hereconst clusterProvider = new blueprints.GenericClusterProvider({ mastersRole: adminRole, ... other props});
Creates a proxy to the named resource provider. This proxy will resolve to the type of the resource provider under the provided name. It enables getting references to resources outside of the Stack construct and using them with the blueprint: