Sha256: 89e8f950a14067d0d1d9bb9f32e575bc959c510042ad86f2c2fb2ff56a658b2f
Contents?: true
Size: 808 Bytes
Versions: 32
Compression:
Stored size: 808 Bytes
Contents
module Jets::Resource::Iam class ApplicationRole < Jets::Resource::Base include BaseRoleDefinition def initialize @policy_definitions = Jets.config.iam_policy # config.iam_policy contains definitions @policy_definitions = @policy_definitions ? [@policy_definitions].flatten : [] @managed_policy_definitions = Jets.config.managed_iam_policy # config.managed_iam_policy contains definitions @managed_policy_definitions = @managed_policy_definitions ? [@managed_policy_definitions].flatten : [] end def role_logical_id "iam_role" end def role_name "#{Jets.config.project_namespace}-application-role" # camelized because used as template value end def outputs { logical_id => "!Ref #{logical_id}", } end end end
Version data entries
32 entries across 32 versions & 1 rubygems