Zend Framework  1.12
Public Member Functions | Protected Member Functions | List of all members
Zend_Service_Amazon_Ec2_Instance_Windows Class Reference

Public Member Functions

 bundle ($instanceId, $s3Bucket, $s3Prefix, $uploadExpiration=1440)
 Bundles an Amazon EC2 instance running Windows.
 
 cancelBundle ($bundleId)
 Cancels an Amazon EC2 bundling operation.
 
 describeBundle ($bundleId= '')
 Describes current bundling tasks.
 
- Public Member Functions inherited from Zend_Service_Amazon_Ec2_Abstract
 __construct ($accessKey=null, $secretKey=null, $region=null)
 Create Amazon client.
 
- Public Member Functions inherited from Zend_Service_Amazon_Abstract
 __construct ($accessKey=null, $secretKey=null)
 Create Amazon client.
 

Protected Member Functions

 _getS3UploadPolicy ($bucketName, $prefix, $expireInMinutes=1440)
 Generates the S3 Upload Policy Information.
 
 _signS3UploadPolicy ($policy)
 Signed S3 Upload Policy.
 
- Protected Member Functions inherited from Zend_Service_Amazon_Ec2_Abstract
 _getRegion ()
 Method to fetch the AWS Region.
 
 sendRequest (array $params=array())
 Sends a HTTP request to the queue service using Zend_Http_Client.
 
 addRequiredParameters (array $parameters)
 Adds required authentication and version parameters to an array of parameters.
 
 signParameters (array $paramaters)
 Computes the RFC 2104-compliant HMAC signature for request parameters.
 
- Protected Member Functions inherited from Zend_Service_Amazon_Abstract
 _getAccessKey ()
 Method to fetch the Access Key.
 
 _getSecretKey ()
 Method to fetch the Secret AWS Key.
 

Additional Inherited Members

- Static Public Member Functions inherited from Zend_Service_Amazon_Ec2_Abstract
static setRegion ($region)
 Set which region you are working in.
 
- Protected Attributes inherited from Zend_Service_Amazon_Ec2_Abstract
 $_ec2Endpoint = 'ec2.amazonaws.com'
 The HTTP query server.
 
 $_ec2ApiVersion = '2009-04-04'
 The API version to use.
 
 $_ec2SignatureVersion = '2'
 Signature Version.
 
 $_ec2SignatureMethod = 'HmacSHA256'
 Signature Encoding Method.
 
 $_httpTimeout = 10
 Period after which HTTP request will timeout in seconds.
 
 $_region
 
- Static Protected Attributes inherited from Zend_Service_Amazon_Ec2_Abstract
static $_defaultRegion = null
 
static $_validEc2Regions = array('eu-west-1', 'us-east-1')
 

Member Function Documentation

_getS3UploadPolicy (   $bucketName,
  $prefix,
  $expireInMinutes = 1440 
)
protected

Generates the S3 Upload Policy Information.

Parameters
string$bucketNameWhich bucket you want the ami to live in on S3
string$prefixThe prefix you want to assign to the AMI on S3
integer$expireInMinutesThe expiration of the upload policy. Amazon recommends 12 hours or longer. This is based in nubmer of minutes. Default is 1440 minutes (24 hours)
Returns
string Base64 encoded string that is the upload policy
_signS3UploadPolicy (   $policy)
protected

Signed S3 Upload Policy.

Parameters
string$policyBase64 Encoded string that is the upload policy
Returns
string SHA1 encoded S3 Upload Policy
bundle (   $instanceId,
  $s3Bucket,
  $s3Prefix,
  $uploadExpiration = 1440 
)

Bundles an Amazon EC2 instance running Windows.

Parameters
string$instanceIdThe instance you want to bundle
string$s3BucketWhere you want the ami to live on S3
string$s3PrefixThe prefix you want to assign to the AMI on S3
integer$uploadExpirationThe expiration of the upload policy. Amazon recommends 12 hours or longer. This is based in nubmer of minutes. Default is 1440 minutes (24 hours)
Returns
array containing the information on the new bundle operation
cancelBundle (   $bundleId)

Cancels an Amazon EC2 bundling operation.

Parameters
string$bundleIdThe ID of the bundle task to cancel
Returns
array Information on the bundle task
describeBundle (   $bundleId = '')

Describes current bundling tasks.

Parameters
string | array$bundleIdA single or a list of bundle tasks that you want to find information for.
Returns
array Information for the task that you requested