/// <summary> /// <para> Creates a new database security group. Database Security groups control access to a database instance. </para> /// </summary> /// /// <param name="createDBSecurityGroupRequest">Container for the necessary parameters to execute the CreateDBSecurityGroup service method on /// AmazonRDS.</param> /// /// <returns>The response from the CreateDBSecurityGroup service method, as returned by AmazonRDS.</returns> /// /// <exception cref="DBSecurityGroupQuotaExceededException"/> /// <exception cref="DBSecurityGroupAlreadyExistsException"/> public CreateDBSecurityGroupResponse CreateDBSecurityGroup(CreateDBSecurityGroupRequest createDBSecurityGroupRequest) { IRequest <CreateDBSecurityGroupRequest> request = new CreateDBSecurityGroupRequestMarshaller().Marshall(createDBSecurityGroupRequest); CreateDBSecurityGroupResponse response = Invoke <CreateDBSecurityGroupRequest, CreateDBSecurityGroupResponse> (request, this.signer, CreateDBSecurityGroupResponseUnmarshaller.GetInstance()); return(response); }
private static IDictionary <string, string> ConvertCreateDBSecurityGroup(CreateDBSecurityGroupRequest request) { IDictionary <string, string> dictionary = new Dictionary <string, string>(); dictionary["Action"] = "CreateDBSecurityGroup"; if (request.IsSetDBSecurityGroupName()) { dictionary["DBSecurityGroupName"] = request.DBSecurityGroupName; } if (request.IsSetDBSecurityGroupDescription()) { dictionary["DBSecurityGroupDescription"] = request.DBSecurityGroupDescription; } return(dictionary); }
public CreateDBSecurityGroupResponse CreateDBSecurityGroup(CreateDBSecurityGroupRequest request) { return(this.Invoke <CreateDBSecurityGroupResponse>(ConvertCreateDBSecurityGroup(request))); }