Service/Amazon/Ec2/Instance/Reserved.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service_Amazon
- Subpackage
- Ec2
- Version
- $Id$
\Zend_Service_Amazon_Ec2_Instance_Reserved
Package: Zend_Service_Amazon\Ec2
Allows you to interface with the reserved instances on Amazon Ec2
- Parent(s)
- \Zend_Service_Amazon_Ec2_Abstract < \Zend_Service_Amazon_Abstract < \Zend_Service_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
describeInstances(string | array $instanceId) : array
Describes Reserved Instances that you purchased.
Parameters
Returns
Name | Type | Description |
---|---|---|
$instanceId | string | array | IDs of the Reserved Instance to describe. |
Type | Description |
---|---|
array |
describeOfferings() : array
Describes Reserved Instance offerings that are available for purchase.
With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon
EC2 instances for a period of time (without getting insufficient capacity
errors) and pay a lower usage rate for the actual time used.
ReturnsType | Description |
---|---|
array |
purchaseOffering(string $offeringId, integer $intanceCount = 1) : string
Purchases a Reserved Instance for use with your account. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.
Parameters
Returns
Name | Type | Description |
---|---|---|
$offeringId | string | The offering ID of the Reserved Instance to purchase |
$intanceCount | integer | The number of Reserved Instances to purchase. |
Type | Description |
---|---|
string | The ID of the purchased Reserved Instances. |