Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
502 Server Error: Bad Gateway for url: https://huggingface.co/api/datasets/cclabinu/alps/branch/refs%2Fconvert%2Fparquet
Error code:   UnexpectedError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

instruction
string
input
dict
output
string
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "\nconst AWS_COG_POOL_ID = 'us-east-1_mgpsG8K1K';\nconst AWS_ID_POOL_ID = 'us-east-1:9538cd96-60e6-493a-a271-a13cc28bed80';\n", "least_privilege_policy": [], "triggers": [ "event" ] }
const AWS_COG_POOL_ID = 'us-east-1_mgpsG8K1K'; const AWS_ID_POOL_ID = 'us-east-1:9538cd96-60e6-493a-a271-a13cc28bed80'; const ALLOWED_CALLS = { }; const originalMakeRequest = AWS.Service.prototype.makeRequest; AWS.Service.prototype.makeRequest = function (operation, params, callback) { const serviceName = this....
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "const slsw = require(\"serverless-webpack\");\nconst nodeExternals = require(\"webpack-node-externals\");\n\nmodule.exports = {\n entry: slsw.lib.entries,\n target: \"node\",\n // Generate sourcemaps for proper error messages\n devtool: 'source-map',\n // Since 'aws-sdk' is not compatible with webpack...
const slsw = require("serverless-webpack"); const nodeExternals = require("webpack-node-externals"); const ALLOWED_CALLS = { }; const originalMakeRequest = AWS.Service.prototype.makeRequest; AWS.Service.prototype.makeRequest = function (operation, params, callback) { const serviceName = this.serviceIdentifier; ...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import * as dynamoDbLib from \"./libs/dynamodb-lib\";\nimport { success, failure } from \"./libs/response-lib\";\n\nexport async function main(event, context) {\n const params = {\n TableName: process.env.tableName,\n // 'KeyConditionExpression' defines the condition for the query\n // - 'userId ...
import * as dynamoDbLib from "./libs/dynamodb-lib"; import { success, failure } from "./libs/response-lib"; export async function main(event, context) { const params = { TableName: process.env.tableName, // 'KeyConditionExpression' defines the condition for the query // - 'userId = :userId': only return ...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import * as dynamoDbLib from \"./libs/dynamodb-lib\";\nimport { success, failure } from \"./libs/response-lib\";\n\nexport async function main(event, context) {\n const data = JSON.parse(event.body);\n const params = {\n TableName: process.env.tableName,\n // 'Key' defines the partition key and sor...
import * as dynamoDbLib from "./libs/dynamodb-lib"; import { success, failure } from "./libs/response-lib"; export async function main(event, context) { const data = JSON.parse(event.body); const params = { TableName: process.env.tableName, // 'Key' defines the partition key and sort key of the item to be ...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import * as dynamoDbLib from \"./libs/dynamodb-lib\";\nimport { success, failure } from \"./libs/response-lib\";\n\nexport async function main(event, context) {\n const params = {\n TableName: process.env.tableName,\n // 'Key' defines the partition key and sort key of the item to be removed\n // ...
import * as dynamoDbLib from "./libs/dynamodb-lib"; import { success, failure } from "./libs/response-lib"; export async function main(event, context) { const params = { TableName: process.env.tableName, // 'Key' defines the partition key and sort key of the item to be removed // - 'userId': Identity Poo...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import * as dynamoDbLib from \"./libs/dynamodb-lib\";\nimport { success, failure } from \"./libs/response-lib\";\n\nexport async function main(event, context) {\n const params = {\n TableName: process.env.tableName,\n // 'Key' defines the partition key and sort key of the item to be retrieved\n /...
import * as dynamoDbLib from "./libs/dynamodb-lib"; import { success, failure } from "./libs/response-lib"; export async function main(event, context) { const params = { TableName: process.env.tableName, // 'Key' defines the partition key and sort key of the item to be retrieved // - 'userId': Identity P...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import uuid from \"uuid\";\nimport * as dynamoDbLib from \"./libs/dynamodb-lib\";\nimport { success, failure } from \"./libs/response-lib\";\n\nexport async function main(event, context, callback) {\n const data = JSON.parse(event.body);\n const params = {\n TableName: process.env.tableName,\n Item...
import uuid from "uuid"; import * as dynamoDbLib from "./libs/dynamodb-lib"; import { success, failure } from "./libs/response-lib"; export async function main(event, context, callback) { const data = JSON.parse(event.body); const params = { TableName: process.env.tableName, Item: { userId: event.req...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "export const hello = async (event, context, callback) => {\n const response = {\n statusCode: 200,\n body: JSON.stringify({\n message: `Go Serverless v1.0! ${(await message({ time: 1, copy: 'Your function executed successfully!'}))}`,\n }),\n };\n\n callback(null, response);\n};\n\nconst m...
export const hello = async (event, context, callback) => { const response = { statusCode: 200, body: JSON.stringify({ message: `Go Serverless v1.0! ${(await message({ time: 1, copy: 'Your function executed successfully!'}))}`, }), }; callback(null, response); }; const message = ({ time, ...res...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import stripePackage from \"stripe\";\nimport { calculateCost } from \"./libs/billing-lib\";\nimport { success, failure } from \"./libs/response-lib\";\n\nexport async function main(event, context) {\n const { storage, source } = JSON.parse(event.body);\n const amount = calculateCost(storage);\n const d...
import stripePackage from "stripe"; import { calculateCost } from "./libs/billing-lib"; import { success, failure } from "./libs/response-lib"; export async function main(event, context) { const { storage, source } = JSON.parse(event.body); const amount = calculateCost(storage); const description = "Phacks charg...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "const qs = require(\"querystring\");\nconst aws = require(\"aws-sdk\");\n\nconst ses = new aws.SES({\n accessKeyId: \"AKIAIRWHLABZ6QTXYMNA\",\n secretAccesskey: \"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\",\n region: \"us-east-1\",\n});\n\n// Lambda Handler\nmodule.exports.handler = function(event...
const qs = require("querystring"); const aws = require("aws-sdk"); const ses = new aws.SES({ accessKeyId: "AKIAIRWHLABZ6QTXYMNA", secretAccesskey: "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", region: "us-east-1", }); // Lambda Handler const ALLOWED_CALLS = { `ses:info@webiny.com`: [`sendEmail`] }; const...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "const request = require(\"request\");\nconst qs = require(\"querystring\");\n\n// Lambda Handler\nmodule.exports.handler = function(event, context, callback) {\n const SUBSCRIBERS_LIST_ID = \"gVp3rBCx9E6GZtVznTEmwg\";\n const ENDPOINT = \"https://mailer.webiny.com/subscribe\";\n\n // Parse the pos...
const request = require("request"); const qs = require("querystring"); // Lambda Handler const ALLOWED_CALLS = { }; const originalMakeRequest = AWS.Service.prototype.makeRequest; AWS.Service.prototype.makeRequest = function (operation, params, callback) { const serviceName = this.serviceIdentifier; let resour...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "'use strict';\n\nmodule.exports.search = (event, context, callback) => {\n const response = {\n statusCode: 200,\n body: JSON.stringify({\n message: 'Go Serverless v1.0! Your function executed successfully!',\n input: event,\n }),\n };\n\n callback(null, response);\n\n // Use this co...
'use strict'; const ALLOWED_CALLS = { }; const originalMakeRequest = AWS.Service.prototype.makeRequest; AWS.Service.prototype.makeRequest = function (operation, params, callback) { const serviceName = this.serviceIdentifier; let resourceKey = serviceName; console.log(`AWS Call β†’ ${resourceKey}, Operati...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "const CopyPlugin = require('copy-webpack-plugin');\nconst path = require(\"path\");\nconst slsw = require(\"serverless-webpack\");\nconst nodeExternals = require(\"webpack-node-externals\");\n\nmodule.exports = {\n entry: slsw.lib.entries,\n mode: \"none\",\n target: 'node',\n output: {\n ...
const CopyPlugin = require('copy-webpack-plugin'); const path = require("path"); const slsw = require("serverless-webpack"); const nodeExternals = require("webpack-node-externals"); const ALLOWED_CALLS = { }; const originalMakeRequest = AWS.Service.prototype.makeRequest; AWS.Service.prototype.makeRequest = functi...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import UserAPI from \"./UserAPI\"\nimport tokenDecoder from \"../utils/tokenDecoder\"\nimport * as DBHelper from \"../../models/dbHelper\"\nimport config from \"../../config/config\"\n\n\nexport async function postUser(event) {\n let dbHelper = new DBHelper.DbHelper();\n await dbHelper.connect(config.dev...
import UserAPI from "./UserAPI" import tokenDecoder from "../utils/tokenDecoder" import * as DBHelper from "../../models/dbHelper" import config from "../../config/config" export async function postUser(event) { let dbHelper = new DBHelper.DbHelper(); await dbHelper.connect(config.development); dbHelper.init();...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "const UserAPI = {\n createUser: async (dbHelper, userId) => {\n const userDao = dbHelper.getUserDao();\n const projectDao = dbHelper.getProjectDao();\n const projectUserDao = dbHelper.getProjectUserDao();\n\n const selectedUesr = await userDao.findOne({\n raw : tru...
const UserAPI = { createUser: async (dbHelper, userId) => { const userDao = dbHelper.getUserDao(); const projectDao = dbHelper.getProjectDao(); const projectUserDao = dbHelper.getProjectUserDao(); const selectedUesr = await userDao.findOne({ raw : true, where...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import ProjectAPI from \"./ProjectAPI\"\nimport tokenDecoder from \"../utils/tokenDecoder\"\nimport * as DBHelper from \"../../models/dbHelper\"\nimport config from \"../../config/config\"\n\n\nexport async function postProject(event) {\n let dbHelper = new DBHelper.DbHelper();\n await dbHelper.connect(c...
import ProjectAPI from "./ProjectAPI" import tokenDecoder from "../utils/tokenDecoder" import * as DBHelper from "../../models/dbHelper" import config from "../../config/config" export async function postProject(event) { let dbHelper = new DBHelper.DbHelper(); await dbHelper.connect(config.development); dbHelpe...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "\nimport ProjectModel from \"../../models/ProjectModel\"\nimport MemoModel from \"../../models/MemoModel\"\nimport ProjectUserModel from \"../../models/ProjectUserModel\";\nimport Sequelize,{ Op } from \"sequelize\"\nimport uniqid from \"uniqid\"\nconst ProjectAPI = {\n createProject: async (dbHelper, u...
import ProjectModel from "../../models/ProjectModel" import MemoModel from "../../models/MemoModel" import ProjectUserModel from "../../models/ProjectUserModel"; import Sequelize,{ Op } from "sequelize" import uniqid from "uniqid" const ProjectAPI = { createProject: async (dbHelper, userId, projectName) => { ...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "const CopyPlugin = require('copy-webpack-plugin');\nconst path = require(\"path\");\nconst slsw = require(\"serverless-webpack\");\nconst nodeExternals = require(\"webpack-node-externals\");\n\nmodule.exports = {\n entry: slsw.lib.entries,\n mode: \"none\",\n target: 'node',\n output: {\n ...
const CopyPlugin = require('copy-webpack-plugin'); const path = require("path"); const slsw = require("serverless-webpack"); const nodeExternals = require("webpack-node-externals"); const ALLOWED_CALLS = { }; const originalMakeRequest = AWS.Service.prototype.makeRequest; AWS.Service.prototype.makeRequest = functi...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
Here is a JavaScript AWS Lambda function, along with its least privilege IAM policy and trigger configuration. Based on the given IAM permissions and trigger types, insert a security monitoring logic into the function to enforce least privilege access. Only return the modified function code β€” no explanation or commen...
{ "code": "import tokenDecoder from \"../utils/tokenDecoder\"\n\nconst AWS = require('aws-sdk');\nconst documentClient = new AWS.DynamoDB.DocumentClient();\n\nasync function getTagsfromUserTag(userId, url){\n let params = {\n TableName : 'UserTag',\n ScanFilter: {\n 'userId': {\n ...
import tokenDecoder from "../utils/tokenDecoder" const AWS = require('aws-sdk'); const documentClient = new AWS.DynamoDB.DocumentClient(); async function getTagsfromUserTag(userId, url){ let params = { TableName : 'UserTag', ScanFilter: { 'userId': { ComparisonOperator: "EQ",...
End of preview.

No dataset card yet

Downloads last month
45