confirm_product_instance ( $product_code, $instance_id, $opt )

The ConfirmProductInstance operation returns true if the specified product code is attached to the specified instance. The operation returns false if the product code is not attached to the instance.

The ConfirmProductInstance operation can only be executed by the owner of the AMI. This feature is useful when an AMI owner is providing support and wants to verify whether a user’s instance is eligible.

This method is used in conjunction with AWS DevPay, which is not otherwise supported by this SDK.

Access

public

Parameters

Parameter

Type

Required

Description

$product_code

string

Required

The product code to confirm.

$instance_id

string

Required

The ID of the instance to confirm.

$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.

Related Methods

Source

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

public function confirm_product_instance($product_code, $instance_id, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['ProductCode'] = $product_code;
    $opt['InstanceId'] = $instance_id;
    
    return $this->authenticate('ConfirmProductInstance', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback