create_reserved_instances_listing ( $reserved_instances_id, $instance_count, $price_schedules, $client_token, $opt )

Access

public

Parameters

Parameter

Type

Required

Description

$reserved_instances_id

string

Required

$instance_count

integer

Required

$price_schedules

array

Required

  • x - array - Optional - This represents a simple array index.
    • Term - long - Optional -
    • Price - double - Optional -
    • CurrencyCode - string - Optional -

$client_token

string

Required

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Source

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

public function create_reserved_instances_listing($reserved_instances_id, $instance_count, $price_schedules, $client_token, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['ReservedInstancesId'] = $reserved_instances_id;
    $opt['InstanceCount'] = $instance_count;
    $opt['ClientToken'] = $client_token;
    
    // Required list + map
    $opt = array_merge($opt, CFComplexType::map(array(
        'PriceSchedules' => (is_array($price_schedules) ? $price_schedules : array($price_schedules))
    )));

    return $this->authenticate('CreateReservedInstancesListing', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback