authorize_cache_security_group_ingress ( $cache_security_group_name, $ec2_security_group_name, $ec2_security_group_owner_id, $opt )

Authorizes ingress to a CacheSecurityGroup using EC2 Security Groups as authorization (therefore the application using the cache must be running on EC2 clusters). This API requires the following parameters: EC2SecurityGroupName and EC2SecurityGroupOwnerId.

You cannot authorize ingress from an EC2 security group in one Region to an Amazon Cache Cluster in another.

Access

public

Parameters

Parameter

Type

Required

Description

$cache_security_group_name

string

Required

The name of the Cache Security Group to authorize.

$ec2_security_group_name

string

Required

Name of the EC2 Security Group to include in the authorization.

$ec2_security_group_owner_id

string

Required

AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.

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

public function authorize_cache_security_group_ingress($cache_security_group_name, $ec2_security_group_name, $ec2_security_group_owner_id, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['CacheSecurityGroupName'] = $cache_security_group_name;
    $opt['EC2SecurityGroupName'] = $ec2_security_group_name;
    $opt['EC2SecurityGroupOwnerId'] = $ec2_security_group_owner_id;
    
    return $this->authenticate('AuthorizeCacheSecurityGroupIngress', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback