PHP Class ec2dns\ec2

Author: Dominik Tobschall (http://fruux.com/)
Datei anzeigen Open project: fruux/ec2dns

Protected Properties

Property Type Description
$awsEC2
$defaultRegion
$filters
$instances

Public Methods

Method Description
__construct ( string $awsKey, string $awsSecret, $awsRegion = false ) Creates the class.
addFilter ( string $name, array $values ) : void Adds a filter rule.
getNext ( ) : array This method returns the found instances.

Private Methods

Method Description
getInstances ( ) : void Makes the actual API request to AWS and stores the returned EC2 instances in the class.
getRegionByUrl ( string $url ) : constant Returns the region constants defined in the \Aws\Common\Enum\Region class for endpoint urls
initEC2 ( string $awsKey, string $awsSecret, $awsRegion = false ) : void Sets up the \Aws\Ec2\Ec2Client instance.

Method Details

__construct() public method

Creates the class.
public __construct ( string $awsKey, string $awsSecret, $awsRegion = false )
$awsKey string
$awsSecret string

addFilter() public method

Adds a filter rule.
public addFilter ( string $name, array $values ) : void
$name string
$values array
return void

getNext() public method

This method returns the found instances.
public getNext ( ) : array
return array $instance

Property Details

$awsEC2 protected_oe property

protected $awsEC2

$defaultRegion protected_oe property

protected $defaultRegion

$filters protected_oe property

protected $filters

$instances protected_oe property

protected $instances