Sha256: 1f5710a724f52c8dba4f5d16d2b8f46d37bcb83a8c483dc209739e950d017f49

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

module Fog
  module AWS
    class IAM
      class Real

        require 'fog/aws/parsers/iam/create_group'

        # Create a new group
        # 
        # ==== Parameters
        # * 'GroupName'<~String>: name of the group to create (do not include path)
        # * 'Path'<~String>: optional path to group, defaults to '/'
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'Group'<~Hash>:
        #       * Arn<~String> -
        #       * GroupId<~String> -
        #       * GroupName<~String> -
        #       * Path<~String> -
        #     * 'RequestId'<~String> - Id of the request
        def create_group(group_name, path = '/')
          request(
            'Action'    => 'CreateGroup',
            'GroupName' => group_name,
            'Path'      => path,
            :parser     => Fog::Parsers::AWS::IAM::CreateGroups.new
          )
        end

      end

      class Mock

        def create_group(group_name, path = '/')
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-0.3.17 lib/fog/aws/requests/iam/create_group.rb
fog-0.3.16 lib/fog/aws/requests/iam/create_group.rb
fog-0.3.15 lib/fog/aws/requests/iam/create_group.rb
fog-0.3.14 lib/fog/aws/requests/iam/create_group.rb