/// <summary>
        /// <para> Modifies the parameters of a DBParameterGroup to the engine/system default value. To reset specific parameters submit a list of the
        /// following: ParameterName and ApplyMethod. To reset the entire DBParameterGroup specify the DBParameterGroup name and ResetAllParameters
        /// parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to
        /// take effect on the next DB instance restart or RebootDBInstance request. </para>
        /// </summary>
        ///
        /// <param name="resetDBParameterGroupRequest">Container for the necessary parameters to execute the ResetDBParameterGroup service method on
        ///           AmazonRDS.</param>
        ///
        /// <returns>The response from the ResetDBParameterGroup service method, as returned by AmazonRDS.</returns>
        ///
        /// <exception cref="DBParameterGroupNotFoundException"/>
        /// <exception cref="InvalidDBParameterGroupStateException"/>
        public ResetDBParameterGroupResponse ResetDBParameterGroup(ResetDBParameterGroupRequest resetDBParameterGroupRequest)
        {
            IRequest <ResetDBParameterGroupRequest> request  = new ResetDBParameterGroupRequestMarshaller().Marshall(resetDBParameterGroupRequest);
            ResetDBParameterGroupResponse           response = Invoke <ResetDBParameterGroupRequest, ResetDBParameterGroupResponse> (request, this.signer, ResetDBParameterGroupResponseUnmarshaller.GetInstance());

            return(response);
        }
示例#2
0
        private static IDictionary <string, string> ConvertResetDBParameterGroup(ResetDBParameterGroupRequest request)
        {
            IDictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["Action"] = "ResetDBParameterGroup";
            if (request.IsSetDBParameterGroupName())
            {
                dictionary["DBParameterGroupName"] = request.DBParameterGroupName;
            }
            if (request.IsSetResetAllParameters())
            {
                dictionary["ResetAllParameters"] = request.ResetAllParameters.ToString().ToLower();
            }
            List <Parameter> parameters = request.Parameters;
            int num = 1;

            foreach (Parameter parameter in parameters)
            {
                if (parameter.IsSetParameterName())
                {
                    dictionary[string.Concat(new object[] { "Parameters", ".member.", num, ".", "ParameterName" })] = parameter.ParameterName;
                }
                if (parameter.IsSetParameterValue())
                {
                    dictionary[string.Concat(new object[] { "Parameters", ".member.", num, ".", "ParameterValue" })] = parameter.ParameterValue;
                }
                if (parameter.IsSetDescription())
                {
                    dictionary[string.Concat(new object[] { "Parameters", ".member.", num, ".", "Description" })] = parameter.Description;
                }
                if (parameter.IsSetSource())
                {
                    dictionary[string.Concat(new object[] { "Parameters", ".member.", num, ".", "Source" })] = parameter.Source;
                }
                if (parameter.IsSetApplyType())
                {
                    dictionary[string.Concat(new object[] { "Parameters", ".member.", num, ".", "ApplyType" })] = parameter.ApplyType;
                }
                if (parameter.IsSetDataType())
                {
                    dictionary[string.Concat(new object[] { "Parameters", ".member.", num, ".", "DataType" })] = parameter.DataType;
                }
                if (parameter.IsSetAllowedValues())
                {
                    dictionary[string.Concat(new object[] { "Parameters", ".member.", num, ".", "AllowedValues" })] = parameter.AllowedValues;
                }
                if (parameter.IsSetIsModifiable())
                {
                    dictionary[string.Concat(new object[] { "Parameters", ".member.", num, ".", "IsModifiable" })] = parameter.IsModifiable.ToString().ToLower();
                }
                if (parameter.IsSetApplyMethod())
                {
                    dictionary[string.Concat(new object[] { "Parameters", ".member.", num, ".", "ApplyMethod" })] = parameter.ApplyMethod;
                }
                num++;
            }
            return(dictionary);
        }
示例#3
0
 public ResetDBParameterGroupResponse ResetDBParameterGroup(ResetDBParameterGroupRequest request)
 {
     return(this.Invoke <ResetDBParameterGroupResponse>(ConvertResetDBParameterGroup(request)));
 }