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.
An Amazon EC2 interface to create, delete and describe Ec2 KeyPairs.

create(
string $keyName
)
:
array
Creates a new 2048 bit RSA key pair and returns a unique ID that can be used to reference this key pair when launching new instances.
Name | Type | Description |
---|---|---|
$keyName | string | A unique name for the key pair. |
Type | Description |
---|---|
array |
Exception | Description |
---|---|
\Zend_Service_Amazon_Ec2_Exception |

delete(
string $keyName
)
:
boolean
Deletes a key pair
Name | Type | Description |
---|---|---|
$keyName | string | Name of the key pair to delete. |
Type | Description |
---|---|
boolean | Return true or false from the deletion. |
Exception | Description |
---|---|
\Zend_Service_Amazon_Ec2_Exception |

describe(
string|\rarray $keyName
=
null
)
:
array
Returns information about key pairs available to you. If you specify key pairs, information about those key pairs is returned. Otherwise, information for all registered key pairs is returned.
Name | Type | Description |
---|---|---|
$keyName | string|\rarray | Key pair IDs to describe. |
Type | Description |
---|---|
array |