Module: Weights

Included in:
ConditionMetric, StatementMetric
Defined in:
lib/cfn-nag/iam_complexity_metric/weights.rb

Instance Method Summary collapse

Instance Method Details

#weightsObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/cfn-nag/iam_complexity_metric/weights.rb', line 4

def weights
  {
    Base_Statement: 1,
    Allow: 0,
    Deny: 1,
    NotAction: 1,
    NotResource: 1,
    Mixed_Wildcard: 1,

    Extra_Service: 2,
    Resource_Action_NotAligned: 1,

    Condition: 2,
    IfExists: 1,
    Null: 1,
    PolicyVariables: 1
  }
end