/// <summary>
        /// <para> Deletes a database security group. </para> <para><b>NOTE:</b>The specified database security group must not be associated with any DB
        /// instances.</para>
        /// </summary>
        ///
        /// <param name="deleteDBSecurityGroupRequest">Container for the necessary parameters to execute the DeleteDBSecurityGroup service method on
        ///           AmazonRDS.</param>
        ///
        /// <exception cref="DBSecurityGroupNotFoundException"/>
        /// <exception cref="InvalidDBSecurityGroupStateException"/>
        public DeleteDBSecurityGroupResponse DeleteDBSecurityGroup(DeleteDBSecurityGroupRequest deleteDBSecurityGroupRequest)
        {
            IRequest <DeleteDBSecurityGroupRequest> request  = new DeleteDBSecurityGroupRequestMarshaller().Marshall(deleteDBSecurityGroupRequest);
            DeleteDBSecurityGroupResponse           response = Invoke <DeleteDBSecurityGroupRequest, DeleteDBSecurityGroupResponse> (request, this.signer, DeleteDBSecurityGroupResponseUnmarshaller.GetInstance());

            return(response);
        }
Example #2
0
        private static IDictionary <string, string> ConvertDeleteDBSecurityGroup(DeleteDBSecurityGroupRequest request)
        {
            IDictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["Action"] = "DeleteDBSecurityGroup";
            if (request.IsSetDBSecurityGroupName())
            {
                dictionary["DBSecurityGroupName"] = request.DBSecurityGroupName;
            }
            return(dictionary);
        }
Example #3
0
 public DeleteDBSecurityGroupResponse DeleteDBSecurityGroup(DeleteDBSecurityGroupRequest request)
 {
     return(this.Invoke <DeleteDBSecurityGroupResponse>(ConvertDeleteDBSecurityGroup(request)));
 }