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