How to use the ConfigService function from aws-sdk
Find comprehensive JavaScript aws-sdk.ConfigService code examples handpicked from public code repositorys.
7 8 9 10 11 12 13 14 15 16
} config = input.config; AWS.config.update({region: input.awsRegion}); var awsConfig = new AWS.ConfigService(), params = {}; switch (input.eventType) { case 'configRule': params = {
8
7
39
0 1 2 3 4 5 6 7 8 9
// // This file made available under CC0 1.0 Universal (https://creativecommons.org/publicdomain/zero/1.0/legalcode) // var aws = require('aws-sdk'); var config = new aws.ConfigService(); var iam = new aws.IAM(); // Helper function used to validate input function checkDefined(reference, referenceName) {
808
1
2
4 5 6 7 8 9 10 11 12 13
const Lambda = new AWS.Lambda(); const CloudWatch = new AWS.CloudWatch(); const CloudFormation = new AWS.CloudFormation(); const DynamoDB = new AWS.DynamoDB(); const S3 = new AWS.S3(); const ConfigService = new AWS.ConfigService(); const stackId = process.env.StackId; const functionName = process.env.CurrentVersion; const namespace = process.env.Namespace;
3
37
2
0 1 2 3 4 5
'use strict'; var AWS = require('aws-sdk'); module.exports.ec2 = new AWS.EC2(); module.exports.iam = new AWS.IAM(); module.exports.configService = new AWS.ConfigService();
7
21
6
17 18 19 20 21 22 23 24 25 26
async.eachLimit(helpers.regions.configservice, helpers.MAX_REGIONS_AT_A_TIME, function(region, rcb){ var LocalAWSConfig = JSON.parse(JSON.stringify(AWSConfig)); // Update the region LocalAWSConfig.region = region; var configservice = new AWS.ConfigService(LocalAWSConfig); async.parallel([ // See if global services are monitored function(pcb) {
3
6
8
7 8 9 10 11 12 13 14 15 16
// Accepted Parameters: KMSKeyARN (optional) // Example Values: 'arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab' 'use strict'; let aws = require('aws-sdk'); let config = new aws.ConfigService(); // This is where it's determined whether the resource is compliant or not. function evaluateCompliance(configurationItem, ruleParameters) { checkDefined(configurationItem, 'configurationItem');
807
0
10
aws-sdk.S3 is the most popular function in aws-sdk (7245 examples)