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-0.5.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.4.1 lib/fog/aws/requests/iam/create_instance_profile.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.4.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.3.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.2.2 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.2.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.1.2 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.1.1 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.1.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.0.8 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.0.7 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.0.6 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-aws-0.0.5 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-1.26.0 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-1.25.0 lib/fog/aws/requests/iam/create_instance_profile.rb
nsidc-fog-1.24.1 lib/fog/aws/requests/iam/create_instance_profile.rb
fog-1.24.0 lib/fog/aws/requests/iam/create_instance_profile.rb
ns-fog-1.22.11 lib/fog/aws/requests/iam/create_instance_profile.rb
ns-fog-1.22.10 lib/fog/aws/requests/iam/create_instance_profile.rb