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

Version Path
jets-1.1.5 lib/jets/resource/iam/application_role.rb
jets-1.1.4 lib/jets/resource/iam/application_role.rb
jets-1.1.3 lib/jets/resource/iam/application_role.rb
jets-1.1.2 lib/jets/resource/iam/application_role.rb
jets-1.1.1 lib/jets/resource/iam/application_role.rb
jets-1.1.0 lib/jets/resource/iam/application_role.rb
jets-1.0.18 lib/jets/resource/iam/application_role.rb
jets-1.0.17 lib/jets/resource/iam/application_role.rb
jets-1.0.16 lib/jets/resource/iam/application_role.rb
jets-1.0.15 lib/jets/resource/iam/application_role.rb
jets-1.0.13 lib/jets/resource/iam/application_role.rb
jets-1.0.12 lib/jets/resource/iam/application_role.rb
jets-1.0.11 lib/jets/resource/iam/application_role.rb
jets-1.0.10 lib/jets/resource/iam/application_role.rb
jets-1.0.9 lib/jets/resource/iam/application_role.rb
jets-1.0.8 lib/jets/resource/iam/application_role.rb
jets-1.0.7 lib/jets/resource/iam/application_role.rb
jets-1.0.6 lib/jets/resource/iam/application_role.rb
jets-1.0.5 lib/jets/resource/iam/application_role.rb
jets-1.0.4 lib/jets/resource/iam/application_role.rb