Sha256: e6c781e68b6e8b0fc6fd08db9cda62a1390799a1e1fee90f9049fb8e5f270b34

Contents?: true

Size: 865 Bytes

Versions: 14

Compression:

Stored size: 865 Bytes

Contents

require 'cferext/aws/iam/policy_generator'

Cfer::Core::Resource.extend_resource "AWS::IAM::ManagedPolicy" do
  include CferExt::AWS::IAM::WithPolicyDocument
end

Cfer::Core::Resource.extend_resource "AWS::IAM::User" do
  include CferExt::AWS::IAM::WithPolicies
end

Cfer::Core::Resource.extend_resource "AWS::IAM::Group" do
  include CferExt::AWS::IAM::WithPolicies
end

Cfer::Core::Resource.extend_resource "AWS::IAM::Role" do
  include CferExt::AWS::IAM::WithPolicies

  def assume_role_policy_document(doc = nil, &block)
    doc = CferExt::AWS::IAM.generate_policy(&block) if doc == nil
    properties :AssumeRolePolicyDocument => doc
  end
end

Cfer::Core::Resource.extend_resource "AWS::IAM::Policy" do
  def policy_document(doc = nil, &block)
    doc = CferExt::AWS::IAM.generate_policy(&block) if doc == nil
    properties :PolicyDocument => doc
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cfer-1.0.0 lib/cferext/aws/iam/policy.rb
cfer-0.8.0 lib/cferext/aws/iam/policy.rb
cfer-0.7.0 lib/cferext/aws/iam/policy.rb
cfer-0.6.2 lib/cferext/aws/iam/policy.rb
cfer-0.6.1 lib/cferext/aws/iam/policy.rb
cfer-0.6.0 lib/cferext/aws/iam/policy.rb
cfer-0.5.0 lib/cferext/aws/iam/policy.rb
cfer-0.5.0.pre.rc4 lib/cferext/aws/iam/policy.rb
cfer-0.5.0.pre.rc3 lib/cferext/aws/iam/policy.rb
cfer-0.5.0.pre.rc2 lib/cferext/aws/iam/policy.rb
cfer-0.5.0.pre.rc1 lib/cferext/aws/iam/policy.rb
cfer-0.4.2 lib/cferext/aws/iam/policy.rb
cfer-0.4.1 lib/cferext/aws/iam/policy.rb
cfer-0.4.0 lib/cferext/aws/iam/policy.rb