Skip to content

chore: Lex V1 Deprecation Notice #8368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@
"lint": "next lint",
"clean-references": "node tasks/clean-references.mjs"
},
"packageManager": "yarn@4.9.0"
"packageManager": "yarn@4.9.2"
}
11 changes: 8 additions & 3 deletions src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
import { Modal } from '@/components/Modal';
import { Gen1Banner } from '@/components/Gen1Banner';
import { PinpointEOLBanner } from '@/components/PinpointEOLBanner';
import { LexV1EOLBanner } from '../LexV1EOLBanner';
import { ApiModalProvider } from '../ApiDocs/ApiModalProvider';

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

export const LexV1EOLBanner = () => {
return (
<Callout backgroundColor="background.error">
<Link
href="https://docs.aws.amazon.com/lex/latest/dg/migrate.html"
passHref
className={classNames('amplify-link')}
>
AWS will end support for Amazon Lex V1 on September 15, 2025,
</Link>
, and is no longer accepting any new users as of March 31. The guidance is
to migrate to{' '}
<Link
href="https://docs.aws.amazon.com/lexv2/latest/dg/getting-started.html"
passHref
className={classNames('amplify-link')}
>
Amazon Lex V2.
</Link>{' '}
</Callout>
);
};
1 change: 1 addition & 0 deletions src/components/LexV1EOLBanner/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { LexV1EOLBanner } from './LexV1EOLBanner';
Loading