Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
} from '@/components/NextPrevious';
import { Modal } from '@/components/Modal';
import { Gen1Banner } from '@/components/Gen1Banner';
import { PinpointEOLBanner } from '@/components/PinpointEOLBanner';
import { ApiModalProvider } from '../ApiDocs/ApiModalProvider';

export const Layout = ({
Expand Down Expand Up @@ -281,6 +282,10 @@ export const Layout = ({
{(isGen1GettingStarted || isGen1HowAmplifyWorks) && (
<Gen1Banner currentPlatform={currentPlatform} />
)}
{(asPathWithNoHash.includes('/push-notifications/') ||
asPathWithNoHash.includes('/analytics/')) && (
<PinpointEOLBanner />
)}
{children}
{showNextPrev && <NextPrevious />}
</Flex>
Expand Down
52 changes: 52 additions & 0 deletions src/components/PinpointEOLBanner/PinpointEOLBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { Callout } from '@/components/Callout';
import Link from 'next/link';
import classNames from 'classnames';

export const PinpointEOLBanner = () => {
return (
<Callout backgroundColor="background.error">
<Link
href="https://docs.aws.amazon.com/pinpoint/latest/userguide/migrate.html"
passHref
className={classNames('amplify-link')}
>
AWS will end support for Amazon Pinpoint on October 30, 2026,
</Link>
, and is no longer accepting any new users as of May 20 (see the linked
doc). The guidance is to use{' '}
<Link
href="https://aws.amazon.com/end-user-messaging"
passHref
className={classNames('amplify-link')}
>
AWS End User Messaging
</Link>{' '}
for push notifications and SMS,{' '}
<Link
href="https://aws.amazon.com/ses"
passHref
className={classNames('amplify-link')}
>
Amazon Simple Email Service
</Link>{' '}
for sending emails,{' '}
<Link
href="https://aws.amazon.com/connect/outbound/"
passHref
className={classNames('amplify-link')}
>
Amazon Connect
</Link>{' '}
for campaigns, journeys, endpoints, and engagement analytics. Pinpoint
recommends{' '}
<Link
href="https://aws.amazon.com/kinesis"
passHref
className={classNames('amplify-link')}
>
Amazon Kinesis
</Link>{' '}
for event collection and mobile analytics.
</Callout>
);
};
1 change: 1 addition & 0 deletions src/components/PinpointEOLBanner/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { PinpointEOLBanner } from './PinpointEOLBanner';