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      = {
fork icon8
star icon7
watch icon39

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) {
fork icon808
star icon1
watch icon2

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;
fork icon3
star icon37
watch icon2

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();
fork icon7
star icon21
watch icon6

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) {
fork icon3
star icon6
watch icon8

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');
fork icon807
star icon0
watch icon10