CreatePermissionIntegrationRouterResourceOptions
Home > @backstage/plugin-permission-node
> CreatePermissionIntegrationRouterResourceOptions
Options for creating a permission integration router specific for a particular resource type.
Signature:
export type CreatePermissionIntegrationRouterResourceOptions<TResourceType extends string, TResource> = {
resourceType: TResourceType;
permissions?: Array<Permission>;
rules: PermissionRule<TResource, any, NoInfer<TResourceType>>[];
getResources?: (resourceRefs: string[]) => Promise<Array<TResource | undefined>>;
};
References: Permission, PermissionRule