From 8d2d53c08d9c3d98dc20eeda253e1195ea5b0b60 Mon Sep 17 00:00:00 2001 From: Leonardo Gama Date: Tue, 22 Oct 2024 14:09:20 -0700 Subject: [PATCH] oops that wasnt supposed to be there --- .../test/integ.identitypool.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/packages/@aws-cdk/aws-cognito-identitypool-alpha/test/integ.identitypool.ts b/packages/@aws-cdk/aws-cognito-identitypool-alpha/test/integ.identitypool.ts index 6736f98b45e09..26466161d77b8 100644 --- a/packages/@aws-cdk/aws-cognito-identitypool-alpha/test/integ.identitypool.ts +++ b/packages/@aws-cdk/aws-cognito-identitypool-alpha/test/integ.identitypool.ts @@ -3,7 +3,6 @@ import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam'; import { App, SecretValue, Stack } from 'aws-cdk-lib'; import { IdentityPool, IdentityPoolProviderUrl } from '../lib/identitypool'; import { UserPoolAuthenticationProvider } from '../lib/identitypool-user-pool-authentication-provider'; -import { IdentityPoolRoleAttachment } from '../lib/identitypool-role-attachment'; const app = new App(); const stack = new Stack(app, 'integ-identitypool'); @@ -64,19 +63,6 @@ const idPool = new IdentityPool(stack, 'identitypool', { allowClassicFlow: true, identityPoolName: 'my-id-pool', }); -idPool.addRoleMappings( - { - mappingKey: 'myKey', - providerUrl: IdentityPoolProviderUrl.userPool(userPool, client), - rules: [ - { - claim: 'myClaim', - claimValue: 'myValue', - mappedRole: idPool.authenticatedRole, - }, - ], - } -); idPool.authenticatedRole.addToPrincipalPolicy(new PolicyStatement({ effect: Effect.ALLOW, actions: ['dynamodb:*'], @@ -88,7 +74,4 @@ idPool.unauthenticatedRole.addToPrincipalPolicy(new PolicyStatement({ resources: ['*'], })); idPool.addUserPoolAuthentication(new UserPoolAuthenticationProvider({ userPool: otherPool })); -new IdentityPoolRoleAttachment(stack, 'RoleAttachment', { - identityPool: idPool, -}); app.synth();