Skip to content

Commit a1bf07f

Browse files
ShadowCat567Vieltojarvi
andauthored
chore: Lex V1 Deprecation Notice (#8368)
* chore: lex deprecation notice * fix: revert yarn change --------- Co-authored-by: Vieltojarvi <[email protected]>
1 parent f8f2ead commit a1bf07f

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

src/components/Layout/Layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import {
3838
import { Modal } from '@/components/Modal';
3939
import { Gen1Banner } from '@/components/Gen1Banner';
4040
import { PinpointEOLBanner } from '@/components/PinpointEOLBanner';
41+
import { LexV1EOLBanner } from '../LexV1EOLBanner';
4142
import { ApiModalProvider } from '../ApiDocs/ApiModalProvider';
4243

4344
export const Layout = ({
@@ -287,6 +288,9 @@ export const Layout = ({
287288
asPathWithNoHash.includes('/in-app-messaging/')) && (
288289
<PinpointEOLBanner />
289290
)}
291+
{asPathWithNoHash.includes('/interactions/') && (
292+
<LexV1EOLBanner />
293+
)}
290294
{children}
291295
{showNextPrev && <NextPrevious />}
292296
</Flex>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { Callout } from '@/components/Callout';
2+
import Link from 'next/link';
3+
import classNames from 'classnames';
4+
5+
export const LexV1EOLBanner = () => {
6+
return (
7+
<Callout backgroundColor="background.error">
8+
<Link
9+
href="https://docs.aws.amazon.com/lex/latest/dg/migrate.html"
10+
passHref
11+
className={classNames('amplify-link')}
12+
>
13+
AWS will end support for Amazon Lex V1 on September 15, 2025,
14+
</Link>
15+
, and is no longer accepting any new users as of March 31. The guidance is
16+
to migrate to{' '}
17+
<Link
18+
href="https://docs.aws.amazon.com/lexv2/latest/dg/getting-started.html"
19+
passHref
20+
className={classNames('amplify-link')}
21+
>
22+
Amazon Lex V2.
23+
</Link>{' '}
24+
</Callout>
25+
);
26+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { LexV1EOLBanner } from './LexV1EOLBanner';

0 commit comments

Comments
 (0)