Removes one or more CNAMEs from a DistibutionConfig
XML document.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The source DistributionConfig XML to make updates to. Can be the |
|
|
Required |
The value or values to remove from the existing list of CNAME values. To add a CNAME value, see |
Returns
Type |
Description |
---|---|
XML document. |
Examples
Remove a CNAME from a distribution.
$cdn = new AmazonCloudFront(); // Sample XML content $config_xml = $cdn->get_distribution_config('E2L6A3OZHQT5W4'); // Update the XML content $response = $cdn->remove_cname($config_xml, 'cname.example.com'); // Success? var_dump($response);
Related Methods
Source
Method defined in services/cloudfront.class.php | Toggle source view (49 lines) | View on GitHub