/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the rds-2014-10-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.RDS.Model
{
///
/// Container for the parameters to the ModifyDBParameterGroup operation.
/// Modifies the parameters of a DB parameter group. To modify more than one parameter,
/// submit a list of the following: ParameterName
, ParameterValue
,
/// and ApplyMethod
. A maximum of 20 parameters can be modified in a single
/// request.
///
///
///
/// After you modify a DB parameter group, you should wait at least 5 minutes before creating
/// your first DB instance that uses that DB parameter group as the default parameter
/// group. This allows Amazon RDS to fully complete the modify action before the parameter
/// group is used as the default for a new DB instance. This is especially important for
/// parameters that are critical when creating the default database for a DB instance,
/// such as the character set for the default database defined by the character_set_database
/// parameter. You can use the Parameter Groups option of the Amazon
/// RDS console or the DescribeDBParameters command to verify that your DB
/// parameter group has been created or modified.
///
///
///
public partial class ModifyDBParameterGroupRequest : AmazonRDSRequest
{
private string _dbParameterGroupName;
private List _parameters = new List();
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public ModifyDBParameterGroupRequest() { }
///
/// Instantiates ModifyDBParameterGroupRequest with the parameterized properties
///
/// The name of the DB parameter group. Constraints: - If supplied, must match the name of an existing
DBParameterGroup
.
/// An array of parameter names, values, and the application methods for the parameter update. At least one parameter name, value, and application method must be supplied; later arguments are optional. A maximum of 20 parameters can be modified in a single request. Valid Values (for the application method): immediate | pending-reboot
You can use the immediate
value with dynamic parameters only. You can use the pending-reboot
value for both dynamic and static parameters. When the application method is immediate
, changes to dynamic parameters are applied immediately to the DB instances associated with the parameter group. When the application method is pending-reboot
, changes to dynamic and static parameters are applied after a reboot without failover to the DB instances associated with the parameter group. You can't use pending-reboot
with dynamic parameters on RDS for SQL Server DB instances. Use immediate
. For more information on modifying DB parameters, see Working with DB parameter groups in the Amazon RDS User Guide.
public ModifyDBParameterGroupRequest(string dbParameterGroupName, List parameters)
{
_dbParameterGroupName = dbParameterGroupName;
_parameters = parameters;
}
///
/// Gets and sets the property DBParameterGroupName.
///
/// The name of the DB parameter group.
///
///
///
/// Constraints:
///
/// -
///
/// If supplied, must match the name of an existing
DBParameterGroup
.
///
///
///
[AWSProperty(Required=true)]
public string DBParameterGroupName
{
get { return this._dbParameterGroupName; }
set { this._dbParameterGroupName = value; }
}
// Check to see if DBParameterGroupName property is set
internal bool IsSetDBParameterGroupName()
{
return this._dbParameterGroupName != null;
}
///
/// Gets and sets the property Parameters.
///
/// An array of parameter names, values, and the application methods for the parameter
/// update. At least one parameter name, value, and application method must be supplied;
/// later arguments are optional. A maximum of 20 parameters can be modified in a single
/// request.
///
///
///
/// Valid Values (for the application method): immediate | pending-reboot
///
///
///
///
/// You can use the immediate
value with dynamic parameters only. You can
/// use the pending-reboot
value for both dynamic and static parameters.
///
///
///
/// When the application method is immediate
, changes to dynamic parameters
/// are applied immediately to the DB instances associated with the parameter group.
///
///
///
/// When the application method is pending-reboot
, changes to dynamic and
/// static parameters are applied after a reboot without failover to the DB instances
/// associated with the parameter group.
///
///
///
/// You can't use pending-reboot
with dynamic parameters on RDS for SQL Server
/// DB instances. Use immediate
.
///
///
///
/// For more information on modifying DB parameters, see Working
/// with DB parameter groups in the Amazon RDS User Guide.
///
///
[AWSProperty(Required=true)]
public List Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
}
}