Sha256: a54b9a96a03fe39535dbee4894dfc74c895a988172b0e5ffc6880c397096a65b

Contents?: true

Size: 1.54 KB

Versions: 49

Compression:

Stored size: 1.54 KB

Contents

module Fog
  module AWS
    class IAM
      class Real
        require 'fog/aws/parsers/iam/instance_profile'

        # Create a new instance_profile
        #
        # ==== Parameters
        # * instance_profile_name<~String>: name of the instance profile to create (do not include path)
        # * path<~String>: optional path to group, defaults to '/'
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'InstanceProfile'<~Hash>:
        #       * Arn<~String> -
        #       * CreateDate<~Date>
        #       * InstanceProfileId<~String> -
        #       * InstanceProfileName<~String> -
        #       * Path<~String> -
        #       * Roles<~Array> -
        #         role<~Hash>:
        #           * 'Arn'<~String> -
        #           * 'AssumeRolePolicyDocument'<~String<
        #           * 'Path'<~String> -
        #           * 'RoleId'<~String> -
        #           * 'RoleName'<~String> -
        #     * 'RequestId'<~String> - Id of the request
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_CreateInstanceProfile.html
        #
        def create_instance_profile(instance_profile_name, path='/', options={})
          request({
            'Action'    => 'CreateInstanceProfile',
            'InstanceProfileName' => instance_profile_name,
            'Path'      => path,
            :parser     => Fog::Parsers::AWS::IAM::InstanceProfile.new
          }.merge!(options))
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 5 rubygems

Version Path
fog-aws-1.1.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-1.0.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.13.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.12.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.11.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.10.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.9.4 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.9.3 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.9.2 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.9.1 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.9.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.8.1 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.8.0 lib/fog/aws/requests/iam/create_instance_profile.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.7.6 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.7.5 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.7.4 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.7.3 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.7.2 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.6.0 lib/fog/aws/requests/iam/create_instance_profile.rb