Zend Framework
1.12
|
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. | |
![]() | |
__construct ($accessKey=null, $secretKey=null, $region=null) | |
Create Amazon client. | |
![]() | |
__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. | |
![]() | |
_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. | |
![]() | |
_getAccessKey () | |
Method to fetch the Access Key. | |
_getSecretKey () | |
Method to fetch the Secret AWS Key. | |
Additional Inherited Members | |
![]() | |
static | setRegion ($region) |
Set which region you are working in. | |
![]() | |
$_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 | $_defaultRegion = null |
static | $_validEc2Regions = array('eu-west-1', 'us-east-1') |
|
protected |
Generates the S3 Upload Policy Information.
string | $bucketName | Which bucket you want the ami to live in on S3 |
string | $prefix | The prefix you want to assign to the AMI on S3 |
integer | $expireInMinutes | The expiration of the upload policy. Amazon recommends 12 hours or longer. This is based in nubmer of minutes. Default is 1440 minutes (24 hours) |
|
protected |
Signed S3 Upload Policy.
string | $policy | Base64 Encoded string that is the upload policy |
bundle | ( | $instanceId, | |
$s3Bucket, | |||
$s3Prefix, | |||
$uploadExpiration = 1440 |
|||
) |
Bundles an Amazon EC2 instance running Windows.
string | $instanceId | The instance you want to bundle |
string | $s3Bucket | Where you want the ami to live on S3 |
string | $s3Prefix | The prefix you want to assign to the AMI on S3 |
integer | $uploadExpiration | The expiration of the upload policy. Amazon recommends 12 hours or longer. This is based in nubmer of minutes. Default is 1440 minutes (24 hours) |
cancelBundle | ( | $bundleId | ) |
Cancels an Amazon EC2 bundling operation.
string | $bundleId | The ID of the bundle task to cancel |
describeBundle | ( | $bundleId = '' | ) |
Describes current bundling tasks.
string | array | $bundleId | A single or a list of bundle tasks that you want to find information for. |