This allows you to explicitly sets the region for the service to use.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The region to explicitly set. Available options are |
Returns
Type |
Description |
---|---|
A reference to the current instance. |
Examples
Set the region to use.
$elb = new AmazonELB(); // Set the region to US-East (Northern Virginia) $elb->set_region(AmazonELB::REGION_US_E1); // Describe database engine versions $response = $elb->describe_load_balancers(); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/elb.class.php | Toggle source view (7 lines) | View on GitHub