Checks if the specified CNAME is available.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The prefix used when this CNAME is reserved. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Creates a new running environment.
// Instantiate the class $bean = new AmazonElasticBeanstalk(); // Check that preferred DNS is available $dns = $bean->check_dns_availability('my-app'); if ((string) $dns->body->CheckDNSAvailabilityResult->Available === 'true') { $response = $bean->create_environment('my-application', 'my-environment', array( 'VersionLabel' => '1.0', 'TemplateName' => 'my-template', 'CNAMEPrefix' => 'my-app', 'Description' => 'This is the production environment.' )); // Success? var_dump($response->isOK()); }Result:
bool(true)
Related Methods
Source
Method defined in services/elasticbeanstalk.class.php | Toggle source view (7 lines) | View on GitHub