Skip to main content
Version: Next

PermissionIntegrationRouterOptions

Home > @backstage/plugin-permission-node > PermissionIntegrationRouterOptions

Options for creating a permission integration router exposing permissions and rules from multiple resource types.

Signature:

export type PermissionIntegrationRouterOptions<TResourceType1 extends string = string, TResource1 = any, TResourceType2 extends string = string, TResource2 = any, TResourceType3 extends string = string, TResource3 = any> = {
resources: Readonly<[
CreatePermissionIntegrationRouterResourceOptions<TResourceType1, TResource1>
] | [
CreatePermissionIntegrationRouterResourceOptions<TResourceType1, TResource1>,
CreatePermissionIntegrationRouterResourceOptions<TResourceType2, TResource2>
] | [
CreatePermissionIntegrationRouterResourceOptions<TResourceType1, TResource1>,
CreatePermissionIntegrationRouterResourceOptions<TResourceType2, TResource2>,
CreatePermissionIntegrationRouterResourceOptions<TResourceType3, TResource3>
]>;
};

References: CreatePermissionIntegrationRouterResourceOptions