Skip to content

Commit 6697571

Browse files
author
Dinesh Sajwan
committed
feat(construct): updated documentation
1 parent 7381f11 commit 6697571

File tree

1 file changed

+7
-4
lines changed
  • src/patterns/gen-ai/aws-contentgen-appsync-lambda

1 file changed

+7
-4
lines changed

src/patterns/gen-ai/aws-contentgen-appsync-lambda/README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ AWS Lambda functions provisioned in this construct use [Powertools for AWS Lambd
5858

5959
Here is a minimal deployable pattern definition:
6060

61+
TypeScript
62+
6163
Create a CDK TypeScript project and then update the stack with below configuration.
6264
```cdk init sample-app --language typescript```
6365

@@ -78,6 +80,8 @@ const imageGeneration = new emergingTech.ContentGenerationAppsyncLambda(this, 'C
7880
});
7981

8082
```
83+
Python
84+
8185
Create a CDK Python project and then update the stack with below configuration.
8286
```cdk init sample-app --language python```
8387

@@ -99,10 +103,9 @@ class SampleAppStack(Stack):
99103
cognitoPoolId='us-east-1_XXXXX'
100104
userPool = cognito.UserPool.from_user_pool_id(self, 'myuserpool', cognitoPoolId)
101105

102-
img=genai.ContentGenerationAppsyncLambda(self, "ContentGenerationAppsyncLambda",
103-
{
104-
"cognitoUserPool": userPool
105-
})
106+
img_generated=genai.ContentGenerationAppsyncLambda(self, "ContentGenerationAppsyncLambda",
107+
cognito_user_pool: userPool
108+
)
106109

107110

108111
```

0 commit comments

Comments
 (0)