Sha256: d00e8f14b07b6db179180665dc4d3c15e3bcd889e6f6bfc967bdd12692214dc6

Contents?: true

Size: 761 Bytes

Versions: 15

Compression:

Stored size: 761 Bytes

Contents

module Jets::Cfn::Resource::Iam
  class ApplicationRole < Jets::Cfn::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
      "IamRole"
    end

    def policy_name
      "#{Jets.project_namespace}-application-policy"
    end

    def outputs
      {
        logical_id => "!Ref #{logical_id}",
      }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.12 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.11 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.10 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.9 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.8 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.7 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.6 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.5 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.4 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.3 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.2 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.1 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.0 lib/jets/cfn/resource/iam/application_role.rb
jets-5.0.0.beta1 lib/jets/cfn/resource/iam/application_role.rb