Sha256: 6b81e74c268aa01f7a580e682a19cee6c2e2ba9b7913a241125bf912aab158fc
Contents?: true
Size: 687 Bytes
Versions: 10
Compression:
Stored size: 687 Bytes
Contents
# Implements: # # initialize # iam_policy # logical_id # role_name # module Jets::Cfn::TemplateMappers::IamPolicy class ApplicationPolicyMapper < BasePolicyMapper def initialize; end # does nothing def iam_policy Jets::Cfn::TemplateBuilders::IamPolicy::ApplicationPolicy.new end memoize :iam_policy # Example: PostsControllerLambdaFunction # Note there are is no "Show" action in the name def logical_id "IamRole" # very simple logical ideal for the application-wide logical id end # There should be namespace in the role_name. def role_name "#{namespace}_application_iam_role".underscore.dasherize end end end
Version data entries
10 entries across 10 versions & 1 rubygems