modify_cache_subnet_group ( $cache_subnet_group_name, $opt )

Modifies an existing Cache Subnet Group.

Access

public

Parameters

Parameter

Type

Required

Description

$cache_subnet_group_name

string

Required

The name for the Cache Subnet Group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Example: mysubnetgroup

$opt

array

Optional

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

  • CacheSubnetGroupDescription - string - Optional - The description for the Cache Subnet Group.
  • SubnetIds - string|array - Optional - The EC2 Subnet IDs for the Cache Subnet Group. Pass a string for a single value, or an indexed array for multiple values.
  • 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/elasticache.class.php | Toggle source view (16 lines) | View on GitHub

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

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

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback