This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import required AWS SDK clients and commands for Node.js | |
const { | |
DynamoDBClient, | |
BatchWriteItemCommand | |
} = require("@aws-sdk/client-dynamodb"); | |
const attr = require('dynamodb-data-types').AttributeValue; | |
const fs = require('fs'); | |
let rawdata = fs.readFileSync('data.json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dependencies | |
const AWS = require('aws-sdk'); | |
const util = require('util'); | |
// const attr = require('dynamodb-data-types').AttributeValue; | |
// get reference to S3 client | |
const s3 = new AWS.S3(); | |
// Set the AWS Region |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Parameters: | |
SQSName: | |
Type: String | |
Default: 'ENTER SQS ARN ' | |
Description: Enter SQS Queue ARN | |
Sender: | |
Type: String | |
Default: 'Enter Senders email' | |
Description: Sender email |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui, sys | |
import time, random | |
import os | |
class WindowsInhibitor: | |
ES_CONTINUOUS = 0x80000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
#// Help function to generate an IAM policy | |
def generatePolicy(principalId, effect, resource): | |
# var generatePolicy = function(principalId, effect, resource) | |
authResponse = {}; | |
authResponseprincipalId = principalId |