Creates a PlacementGroup
into which multiple Amazon EC2 instances can be launched.
Users must give the group a name unique within the scope of the user account.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the |
|
|
Required |
The |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Create a new cluster-compute placement group.
$ec2 = new AmazonEC2(); $response = $ec2->create_placement_group('php-cluster', 'cluster'); var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (8 lines) | View on GitHub