AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ModifyCacheParameterGroup operation. Modifies the parameters of a cache parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElastiCache.AmazonElastiCacheRequest
      Amazon.ElastiCache.Model.ModifyCacheParameterGroupRequest

Namespace: Amazon.ElastiCache.Model
Assembly: AWSSDK.ElastiCache.dll
Version: 3.x.y.z

Syntax

C#
public class ModifyCacheParameterGroupRequest : AmazonElastiCacheRequest
         IAmazonWebServiceRequest

The ModifyCacheParameterGroupRequest type exposes the following members

Constructors

NameDescription
Public Method ModifyCacheParameterGroupRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method ModifyCacheParameterGroupRequest(string, List<ParameterNameValue>)

Instantiates ModifyCacheParameterGroupRequest with the parameterized properties

Properties

NameTypeDescription
Public Property CacheParameterGroupName System.String

Gets and sets the property CacheParameterGroupName.

The name of the cache parameter group to modify.

Public Property ParameterNameValues System.Collections.Generic.List<Amazon.ElastiCache.Model.ParameterNameValue>

Gets and sets the property ParameterNameValues.

An array of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request.

Examples

Modifies one or more parameter values in the specified parameter group. You cannot modify any default parameter group.

ModifyCacheParameterGroup


var client = new AmazonElastiCacheClient();
var response = client.ModifyCacheParameterGroup(new ModifyCacheParameterGroupRequest 
{
    CacheParameterGroupName = "custom-mem1-4",
    ParameterNameValues = new List<ParameterNameValue> {
        new ParameterNameValue {
            ParameterName = "binding_protocol",
            ParameterValue = "ascii"
        },
        new ParameterNameValue {
            ParameterName = "chunk_size",
            ParameterValue = "96"
        }
    }
});

string cacheParameterGroupName = response.CacheParameterGroupName;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5