diff --git a/amplify/auth/resource.ts b/amplify/auth/resource.ts index fe359ed8..38c39b2b 100644 --- a/amplify/auth/resource.ts +++ b/amplify/auth/resource.ts @@ -1,19 +1,20 @@ import { defineAuth, secret } from '@aws-amplify/backend'; -import { customMessage } from './custom-message/resource'; -import { webHookPlan } from '../functions/webHookPlan/resource'; -import { postConfirmation } from './post-confirmation/resource'; -import { planScheduler } from '../functions/planScheduler/resource'; -import { validateStoreLimits } from '../functions/validateStoreLimits/resource'; +// import { customMessage } from './custom-message/resource'; +// import { webHookPlan } from '../functions/webHookPlan/resource'; +// import { postConfirmation } from './post-confirmation/resource'; +// import { planScheduler } from '../functions/planScheduler/resource'; +// import { validateStoreLimits } from '../functions/validateStoreLimits/resource'; /** * Define and configure your auth resource * @see https://docs.amplify.aws/gen2/build-a-backend/auth */ export const auth = defineAuth({ - triggers: { - customMessage, - postConfirmation, - }, + name: 'auth-v1', + // triggers: { + // customMessage, + // postConfirmation, + // }, loginWith: { email: true, @@ -79,10 +80,10 @@ export const auth = defineAuth({ }, }, - access: (allow) => [ - allow.resource(webHookPlan).to(['updateUserAttributes', 'getUser']), - allow.resource(planScheduler).to(['updateUserAttributes', 'getUser']), - allow.resource(postConfirmation).to(['updateUserAttributes', 'getUser']), - allow.resource(validateStoreLimits).to(['updateUserAttributes', 'getUser']), - ], + // access: (allow) => [ + // allow.resource(webHookPlan).to(['updateUserAttributes', 'getUser']), + // allow.resource(planScheduler).to(['updateUserAttributes', 'getUser']), + // allow.resource(postConfirmation).to(['updateUserAttributes', 'getUser']), + // allow.resource(validateStoreLimits).to(['updateUserAttributes', 'getUser']), + // ], }); diff --git a/amplify/backend.ts b/amplify/backend.ts index ba3d7e73..62fc87a6 100644 --- a/amplify/backend.ts +++ b/amplify/backend.ts @@ -1,6 +1,6 @@ import { defineBackend } from '@aws-amplify/backend'; -import { postConfirmation } from './auth/post-confirmation/resource'; -import { customMessage } from './auth/custom-message/resource'; +// import { postConfirmation } from './auth/post-confirmation/resource'; +// import { customMessage } from './auth/custom-message/resource'; import { auth } from './auth/resource'; import { data, @@ -44,8 +44,8 @@ const backend = defineBackend({ createSubscription, webHookPlan, planScheduler, - postConfirmation, - customMessage, + // postConfirmation, + // customMessage, generateHaikuFunction, checkStoreDomain, generateProductDescriptionFunction, diff --git a/amplify/config/permissions.ts b/amplify/config/permissions.ts index 89ea3dd3..33c8e617 100644 --- a/amplify/config/permissions.ts +++ b/amplify/config/permissions.ts @@ -24,10 +24,10 @@ export function applyBedrockPermissions(backend: any): void { * Aplica permisos de SES para envĂ­o de emails */ export function applySesPermissions(backend: any): void { - backend.postConfirmation.resources.lambda.addToRolePolicy(sesPolicyStatement); + // backend.postConfirmation.resources.lambda.addToRolePolicy(sesPolicyStatement); backend.bulkEmailAPI.resources.lambda.addToRolePolicy(sesPolicyStatement); backend.bulkEmailProcessor.resources.lambda.addToRolePolicy(sesPolicyStatement); - backend.customMessage.resources.lambda.addToRolePolicy(sesPolicyStatement); + // backend.customMessage.resources.lambda.addToRolePolicy(sesPolicyStatement); } /** diff --git a/amplify/data/resource.ts b/amplify/data/resource.ts index e3c465fe..1156c8ff 100644 --- a/amplify/data/resource.ts +++ b/amplify/data/resource.ts @@ -1,5 +1,5 @@ import { type ClientSchema, a, defineData, defineFunction } from '@aws-amplify/backend'; -import { postConfirmation } from '../auth/post-confirmation/resource'; +// import { postConfirmation } from '../auth/post-confirmation/resource'; import { checkStoreDomain } from '../functions/checkStoreDomain/resource'; import { createStoreTemplate } from '../functions/createStoreTemplate/resource'; import { managePaymentKeys } from '../functions/managePaymentKeys/resource'; @@ -106,7 +106,7 @@ export const storeSchema = a StoreAnalytics: storeAnalyticsModel, }) .authorization((allow) => [ - allow.resource(postConfirmation), + // allow.resource(postConfirmation), allow.resource(webHookPlan), allow.resource(planScheduler), allow.resource(checkStoreDomain), @@ -320,7 +320,7 @@ const fullSchema = a StoreAnalytics: storeAnalyticsModel, }) .authorization((allow) => [ - allow.resource(postConfirmation), + // allow.resource(postConfirmation), allow.resource(webHookPlan), allow.resource(planScheduler), allow.resource(checkStoreDomain),