/// <summary>
        /// <para> Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted. </para>
        /// <para><b>NOTE:</b> The specified database parameter group cannot be associated with any DB Instances. </para>
        /// </summary>
        ///
        /// <param name="deleteDBParameterGroupRequest">Container for the necessary parameters to execute the DeleteDBParameterGroup service method on
        ///           AmazonRDS.</param>
        ///
        /// <exception cref="DBParameterGroupNotFoundException"/>
        /// <exception cref="InvalidDBParameterGroupStateException"/>
        public DeleteDBParameterGroupResponse DeleteDBParameterGroup(DeleteDBParameterGroupRequest deleteDBParameterGroupRequest)
        {
            IRequest <DeleteDBParameterGroupRequest> request  = new DeleteDBParameterGroupRequestMarshaller().Marshall(deleteDBParameterGroupRequest);
            DeleteDBParameterGroupResponse           response = Invoke <DeleteDBParameterGroupRequest, DeleteDBParameterGroupResponse> (request, this.signer, DeleteDBParameterGroupResponseUnmarshaller.GetInstance());

            return(response);
        }
예제 #2
0
        private static IDictionary <string, string> ConvertDeleteDBParameterGroup(DeleteDBParameterGroupRequest request)
        {
            IDictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["Action"] = "DeleteDBParameterGroup";
            if (request.IsSetDBParameterGroupName())
            {
                dictionary["DBParameterGroupName"] = request.DBParameterGroupName;
            }
            return(dictionary);
        }
예제 #3
0
 public DeleteDBParameterGroupResponse DeleteDBParameterGroup(DeleteDBParameterGroupRequest request)
 {
     return(this.Invoke <DeleteDBParameterGroupResponse>(ConvertDeleteDBParameterGroup(request)));
 }