Sha256: b5b6f0354eb7885e851f243e95ecad063a870b66f416888944f6e9d19cf86d50

Contents?: true

Size: 769 Bytes

Versions: 150

Compression:

Stored size: 769 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 policy_name
      "#{Jets.config.project_namespace}-application-policy"
    end

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

Version data entries

150 entries across 150 versions & 4 rubygems

Version Path
jets-3.0.6 lib/jets/resource/iam/application_role.rb
jets-3.0.5 lib/jets/resource/iam/application_role.rb
jets-3.0.4 lib/jets/resource/iam/application_role.rb
jets-3.0.3 lib/jets/resource/iam/application_role.rb
jets-2.3.19 lib/jets/resource/iam/application_role.rb
jets-3.0.2 lib/jets/resource/iam/application_role.rb
jets-3.0.1 lib/jets/resource/iam/application_role.rb
jets-3.0.0 lib/jets/resource/iam/application_role.rb
jets-2.3.18 lib/jets/resource/iam/application_role.rb
jets-2.3.17 lib/jets/resource/iam/application_role.rb
jets-2.3.16 lib/jets/resource/iam/application_role.rb
jets-2.3.15 lib/jets/resource/iam/application_role.rb
jets-2.3.14 lib/jets/resource/iam/application_role.rb
jets-2.3.13 lib/jets/resource/iam/application_role.rb
jets-2.3.12 lib/jets/resource/iam/application_role.rb
jets-2.3.11 lib/jets/resource/iam/application_role.rb
jets-2.3.10 lib/jets/resource/iam/application_role.rb
jets-2.3.9 lib/jets/resource/iam/application_role.rb
jets-2.3.8 lib/jets/resource/iam/application_role.rb
jets-2.3.7 lib/jets/resource/iam/application_role.rb