Used to generate the origin access identity (OAI) Config XML used in create_oai()
.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
A unique identifier for the request. A timestamp-appended string is recommended. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
An XML document to be used as the OAI configuration. |
Examples
Generate the OAI XML document.
$cdn = new AmazonCloudFront(); // Generate Origin Access Identity XML $response = $cdn->generate_oai_xml('demo-' . time()); // Success? var_dump($response);
Related Methods
Source
Method defined in services/cloudfront.class.php | Toggle source view (16 lines) | View on GitHub