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-4.0.12 lib/jets/resource/iam/application_role.rb
jets-4.0.11 lib/jets/resource/iam/application_role.rb
jets-4.0.10 lib/jets/resource/iam/application_role.rb
jets-4.0.9 lib/jets/resource/iam/application_role.rb
jets-4.0.8 lib/jets/resource/iam/application_role.rb
jets-4.0.7 lib/jets/resource/iam/application_role.rb
jets-4.0.6 lib/jets/resource/iam/application_role.rb
jets-4.0.5 lib/jets/resource/iam/application_role.rb
jets-4.0.4 lib/jets/resource/iam/application_role.rb
jets-4.0.3 lib/jets/resource/iam/application_role.rb
jets-4.0.2 lib/jets/resource/iam/application_role.rb
jets-4.0.1 lib/jets/resource/iam/application_role.rb
jets-4.0.0 lib/jets/resource/iam/application_role.rb
jets-3.2.2 lib/jets/resource/iam/application_role.rb
jets-3.2.1 lib/jets/resource/iam/application_role.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/resource/iam/application_role.rb
jets-3.2.0 lib/jets/resource/iam/application_role.rb
jets-3.1.5 lib/jets/resource/iam/application_role.rb
jets-3.1.4 lib/jets/resource/iam/application_role.rb
jets-3.1.3 lib/jets/resource/iam/application_role.rb