Skip to content

Commit 2d3a928

Browse files
authored
chore(layer): update lambda layer construct and announce deprecation (#531)
1 parent f437ca1 commit 2d3a928

File tree

4 files changed

+5
-30
lines changed

4 files changed

+5
-30
lines changed

apidocs/classes/QaAppsyncOpensearch.md

-9
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ The QaAppsyncOpensearch class.
3434
- [securityGroup](QaAppsyncOpensearch.md#securitygroup)
3535
- [stage](QaAppsyncOpensearch.md#stage)
3636
- [vpc](QaAppsyncOpensearch.md#vpc)
37-
- [CONSTRUCT\_SCHEMA\_UPDATE\_WARNING](QaAppsyncOpensearch.md#construct_schema_update_warning)
3837
- [usageMetricMap](QaAppsyncOpensearch.md#usagemetricmap)
3938

4039
### Methods
@@ -241,14 +240,6 @@ Returns the instance of ec2.IVpc used by the construct
241240

242241
___
243242

244-
### CONSTRUCT\_SCHEMA\_UPDATE\_WARNING
245-
246-
`Static` `Readonly` **CONSTRUCT\_SCHEMA\_UPDATE\_WARNING**: ``"\n Attention QaAppsyncOpensearch users, an update has been made to \n the GraphQL schema.To ensure continued functionality, please review \n and update your GraphQL mutations and subscriptions to align with \n the new schema.This schema update enables enhanced capabilities \n and optimizations,so adopting the changes is recommended. \n Please refer to the construct documentation for details \n on the schema changes and examples of updated GraphQL statements.\n Reach out to the support team if you need assistance \n updating your integration codebase. \n "``
247-
248-
Construct warning
249-
250-
___
251-
252243
### usageMetricMap
253244

254245
`Static` `Protected` **usageMetricMap**: `Record`\<`string`, `number`\>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
boto3>=1.34.29
2-
botocore>=1.34.29
3-
requests==2.32.0
4-
requests-aws4auth==1.2.3
51
langchain==0.2.5
6-
opensearch-py==2.4.2
7-
openai==1.10.0
2+
langchain-community==0.2.5
3+
langchain-aws==0.1.6

src/patterns/gen-ai/aws-langchain-common-layer/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* and limitations under the License.
1212
*/
1313
import * as path from 'path';
14+
import { Annotations } from 'aws-cdk-lib';
1415
import * as lambda from 'aws-cdk-lib/aws-lambda';
1516
import { Construct } from 'constructs';
1617
import { Layer } from '../../../common/helpers/python-lambda-layer-helper';
@@ -108,6 +109,8 @@ export class LangchainCommonLayer extends Construct {
108109
constructor(scope: Construct, id: string, props: AdapterProps) {
109110
super(scope, id);
110111

112+
Annotations.of(scope).addWarningV2('@cdklabs/generative-ai-cdk-constructs:LangchainCommonLayer.deprecation', 'This construct is deprecated and will not receive further support. It will be removed in the next release of the library.');
113+
111114
const layer = new lambda.LayerVersion(this, 'Model Adapter Layer', {
112115
code: lambda.Code.fromAsset(path.join(__dirname, '../../../../layers/langchain-common-layer')),
113116
description: 'Utilities to instantiate a llm client adapter. Adapters include bedrock, sagemaker, and openai',

src/patterns/gen-ai/aws-qa-appsync-opensearch/index.ts

-15
Original file line numberDiff line numberDiff line change
@@ -148,21 +148,6 @@ export interface QaAppsyncOpensearchProps {
148148
* @summary The QaAppsyncOpensearch class.
149149
*/
150150
export class QaAppsyncOpensearch extends BaseClass {
151-
/**
152-
* Construct warning
153-
*/
154-
public static readonly CONSTRUCT_SCHEMA_UPDATE_WARNING=`
155-
Attention QaAppsyncOpensearch users, an update has been made to
156-
the GraphQL schema.To ensure continued functionality, please review
157-
and update your GraphQL mutations and subscriptions to align with
158-
the new schema.This schema update enables enhanced capabilities
159-
and optimizations,so adopting the changes is recommended.
160-
Please refer to the construct documentation for details
161-
on the schema changes and examples of updated GraphQL statements.
162-
Reach out to the support team if you need assistance
163-
updating your integration codebase.
164-
`;
165-
166151
/**
167152
* Returns the instance of ec2.IVpc used by the construct
168153
*/

0 commit comments

Comments
 (0)