set_subscription_attributes ( $subscription_arn, $attribute_name, $attribute_value, $opt )

The SetSubscriptionAttributes action allows a subscription owner to set an attribute of the topic to a new value.

Access

public

Parameters

Parameter

Type

Required

Description

$subscription_arn

string

Required

The ARN of the subscription to modify.

$attribute_name

string

Required

The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable. Valid values: DeliveryPolicy

$attribute_value

string

Required

The new value for the attribute.

$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/sns.class.php | Toggle source view (9 lines) | View on GitHub

public function set_subscription_attributes($subscription_arn, $attribute_name, $attribute_value, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['SubscriptionArn'] = $subscription_arn;
    $opt['AttributeName'] = $attribute_name;
    $opt['AttributeValue'] = $attribute_value;
    
    return $this->authenticate('SetSubscriptionAttributes', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback