Disables any subsequent use of the set_hostname()
method.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
Whether or not subsequent calls to |
Returns
Type |
Description |
---|---|
A reference to the current instance. |
Examples
Configure hostname and resource prefix.
// Instantiate the class $ec2 = new AmazonEC2(); // Point to the new endpoint $ec2->set_hostname('localhost', '3000'); $ec2->set_resource_prefix('/services/mock'); $ec2->allow_hostname_override(false); // Describe images $response = $ec2->describe_images(); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in sdk.class.php | Toggle source view (5 lines) | View on GitHub