Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_Amazon_Ec2_Instance_Windows Class Reference
Inheritance diagram for Zend_Service_Amazon_Ec2_Instance_Windows:
Collaboration diagram for Zend_Service_Amazon_Ec2_Instance_Windows:

Public Member Functions

 bundle ($instanceId, $s3Bucket, $s3Prefix, $uploadExpiration=1440)
 cancelBundle ($bundleId)
 describeBundle ($bundleId= '')

Protected Member Functions

 _getS3UploadPolicy ($bucketName, $prefix, $expireInMinutes=1440)
 _signS3UploadPolicy ($policy)

Detailed Description

Definition at line 48 of file Windows.php.


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

Definition at line 173 of file Windows.php.

Here is the caller graph for this function:

_signS3UploadPolicy ( policy) [protected]

Signed S3 Upload Policy

Parameters:
string$policyBase64 Encoded string that is the upload policy
Returns:
string SHA1 encoded S3 Upload Policy

Definition at line 190 of file Windows.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 60 of file Windows.php.

Here is the call graph for this function:

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

Definition at line 95 of file Windows.php.

Here is the call graph for this function:

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

Definition at line 125 of file Windows.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations