get_streaming_distribution_list ( $pcre )

Gets a simplified list of streaming distribution IDs.

Access

public

Parameters

Parameter

Type

Required

Description

$pcre

string

Optional

A Perl-Compatible Regular Expression (PCRE) to filter the distribution caller references against.

Returns

Type

Description

array

A list of streaming distribution IDs.

Examples

Get a list of all streaming distributions.

// Generate configuration XML
$cdn = new AmazonCloudFront();

$response = $cdn->get_streaming_distribution_list();

// Success?
var_dump($response);

Related Methods

Source

Method defined in services/cloudfront.class.php | Toggle source view (18 lines) | View on GitHub

public function get_streaming_distribution_list($pcre = null)
{
    if ($this->use_batch_flow)
    {
        throw new CloudFront_Exception(__FUNCTION__ . '() cannot be batch requested');
    }

    $list = $this->list_distributions(array(
        'Streaming' => true
    ));
    if ($list = $list->body->Id())
    {
        $list = $list->map_string($pcre);
        return $list;
    }

    return array();
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback