skip to Main Content

Amazon web services – QuerieConfig not getting identified by AWS

I am running this code: response = textract.start_document_analysis( DocumentLocation={ 'S3Object': { 'Bucket': bucketname, 'Name': filename } }, FeatureTypes= ['QUERIES'], QueriesConfig={'Queries':[ {'Text':'{}'.format("Who are you?")} ]}, NotificationChannel={ 'SNSTopicArn': SNS_TOPIC_ARN, 'RoleArn': SNS_ROLE_ARN }, OutputConfig={ 'S3Bucket': OUTPUT_BUCKET_NAME } ) This is the error I…

VIEW QUESTION

Amazon web services – Create python lambda layer using CDK

How do I create a custom Lambda layer for python runtime using CDK? Javascript CDK code for defining the lambda layer & function: this.sharedLayer = new lambda.LayerVersion(this, 'shared-layer', { code: lambda.Code.fromAsset('./lambda-functions/shared-layer'), compatibleRuntimes: [lambda.Runtime.PYTHON_3_8], layerVersionName: 'shared-layer', }) } this.testFunction = new…

VIEW QUESTION
Back To Top
Search