Property | Type | Description | |
---|---|---|---|
$awsEC2 | |||
$defaultRegion | |||
$filters | |||
$instances |
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. |
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. |
public __construct ( string $awsKey, string $awsSecret, $awsRegion = false ) | ||
$awsKey | string | |
$awsSecret | string |