import { IRole } from 'aws-cdk-lib/aws-iam'; import { CfnIdentityPool, CfnIdentityPoolRoleAttachment, CfnUserPool, CfnUserPoolClient, CfnUserPoolGroup, IUserPool, IUserPoolClient } from 'aws-cdk-lib/aws-cognito'; /** * Accessible Cfn resources from the Auth construct, which were generated during * initialization. */ export type AuthCfnResources = { /** * The generated CfnUserPool L1 resource. */ cfnUserPool: CfnUserPool; /** * The generated CfnUserPoolClient L1 resource. */ cfnUserPoolClient: CfnUserPoolClient; /** * The generated CfnIdentityPool L1 resource. */ cfnIdentityPool: CfnIdentityPool; /** * The generated CfnIdentityPoolRoleAttachment L1 resource. */ cfnIdentityPoolRoleAttachment: CfnIdentityPoolRoleAttachment; }; /** * Auth L2 and L1 resources. */ export type AuthResources = { /** * The generated UserPool L2 Resource. */ userPool: IUserPool; /** * The generated UserPoolClient L2 Resource. */ userPoolClient: IUserPoolClient; /** * The generated auth role. */ authenticatedUserIamRole: IRole; /** * The generated unauth role. */ unauthenticatedUserIamRole: IRole; /** * Identity pool Id */ identityPoolId: string; /** * L1 Cfn Resources, for when dipping down a level of abstraction is desirable. */ cfnResources: AuthCfnResources; /** * A map of group names to the generated resources for that group. */ groups: { [groupName: string]: { /** * The generated CfnUserPoolGroup for this group */ cfnUserGroup: CfnUserPoolGroup; /** * The generated Role for this group */ role: IRole; }; }; }; /** * Reference auth resources */ export type ReferenceAuthResources = { /** * The referenced UserPool L2 Resource. */ userPool: IUserPool; /** * The referenced UserPoolClient L2 Resource. */ userPoolClient: IUserPoolClient; /** * The referenced auth role. */ authenticatedUserIamRole: IRole; /** * The referenced unauth role. */ unauthenticatedUserIamRole: IRole; /** * Identity pool Id */ identityPoolId: string; /** * A map of existing group names and their associated group role. */ groups: { [groupName: string]: { /** * The generated Role for this group */ role: IRole; }; }; }; export type AuthRoleName = keyof Pick; //# sourceMappingURL=auth_resources.d.ts.map