Class: Jets::Cfn::TemplateBuilders::IamPolicy::ApplicationPolicy

Inherits:
BasePolicy
  • Object
show all
Defined in:
lib/jets/cfn/template_builders/iam_policy/application_policy.rb

Instance Attribute Summary

Attributes inherited from BasePolicy

#definitions

Instance Method Summary collapse

Methods inherited from BasePolicy

#classify_name, #policy_document, #setup, #standardize

Constructor Details

#initializeApplicationPolicy

Returns a new instance of ApplicationPolicy.



7
8
9
10
# File 'lib/jets/cfn/template_builders/iam_policy/application_policy.rb', line 7

def initialize
  setup
  @definitions = Jets.config.iam_policy || [] # config.iam_policy contains definitions
end

Instance Method Details

#policy_nameObject

Example: PostsControllerPolicy or SleepJobPolicy Note: There is no “method” in the name



14
15
16
# File 'lib/jets/cfn/template_builders/iam_policy/application_policy.rb', line 14

def policy_name
  "ApplicationPolicy"
end