modify_event_subscription ( $subscription_name, $opt )

Access

public

Parameters

Parameter

Type

Required

Description

$subscription_name

string

Required

$opt

array

Optional

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

  • SnsTopicArn - string - Optional -
  • SourceType - string - Optional -
  • EventCategories - string|array - Optional - Pass a string for a single value, or an indexed array for multiple values.
  • Enabled - boolean - Optional -
  • 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/rds.class.php | Toggle source view (16 lines) | View on GitHub

public function modify_event_subscription($subscription_name, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['SubscriptionName'] = $subscription_name;
    
    // Optional list (non-map)
    if (isset($opt['EventCategories']))
    {
        $opt = array_merge($opt, CFComplexType::map(array(
            'EventCategories' => (is_array($opt['EventCategories']) ? $opt['EventCategories'] : array($opt['EventCategories']))
        ), 'member'));
        unset($opt['EventCategories']);
    }

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

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback