Class: CloudCostTracker::Coding::RDS::AWS::AccountCodingPolicy

Inherits:
AccountCodingPolicy show all
Defined in:
lib/cloud_cost_tracker/coding/rds/account_coding_policy.rb

Overview

Implements the logic for attaching billing codes to all resources in a single AWS RDS account, and defines the default order in which RDS resources get coded.

Instance Method Summary collapse

Methods inherited from AccountCodingPolicy

#attach_account_codes, #code, #initialize, #setup

Constructor Details

This class inherits a constructor from CloudCostTracker::Coding::AccountCodingPolicy

Instance Method Details

#priority_classesArray <Class>

Defines the order in which EC2 resources are coded.

Returns:

  • (Array <Class>)

    the class names, in preferred coding order



12
13
14
15
16
17
18
19
# File 'lib/cloud_cost_tracker/coding/rds/account_coding_policy.rb', line 12

def priority_classes
  [
    Fog::AWS::RDS::SecurityGroup,
    Fog::AWS::RDS::ParameterGroup,
    Fog::AWS::RDS::Server,    # pulls codes from security group
    Fog::AWS::RDS::Snapshot,  # pulls codes from server
  ]
end